How to use Profit margin calculator
- Type your cost in the "Cost" box of the profit margin calculator - what you paid to buy or make the item.
- Type the selling price in "Revenue (selling price)".
- Read the gross margin as the large figure, then gross profit and markup underneath.
- Change either number to test a new price. Copy the margin percentage when you are done.
Features
- Gross profit in money terms
- Gross margin as a percentage of revenue
- Markup as a percentage of cost
- Negative results when the price is below cost, so a loss is clearly visible
- Plain numbers, so it works with any currency
- Runs in your browser with no daily limit
Examples
| Input | Result |
|---|---|
| Cost 60, revenue 100 | Profit 40, margin 40 %, markup 66.67 % — 40 / 100 = 40 % margin, 40 / 60 = 66.67 % markup. |
| Cost 12.50, revenue 20 | Profit 7.50, margin 37.5 %, markup 60 % — 7.50 / 20 = 37.5 %, 7.50 / 12.50 = 60 %. |
| Cost 80, revenue 100 | Profit 20, margin 20 %, markup 25 % — A 25 % markup gives only a 20 % margin. |
| Cost 120, revenue 100 | Profit -20, margin -20 %, markup -16.67 % — Selling below cost is a loss. |
Limitations
- Informational only. It is gross profit - rent, wages, tax and other overheads are not subtracted.
- Revenue must be greater than zero, and markup is not shown when the cost is zero.
- Margin is calculated on one item or one total, so it does not consider volume or discounts unless you include them in the numbers.
- Results are rounded to two decimals.
This calculator is for information only and is not financial, medical or legal advice.
Learn more
Margin and markup measure the same profit from two angles. Gross profit is revenue minus cost. Gross margin divides that profit by revenue, so it shows how many cents of each sale you keep. Markup divides the profit by cost, so it shows how much you add on top of what you paid.
Because revenue is always larger than cost when you make a profit, markup is always the bigger percentage. A 100 % markup, which means doubling the cost, is only a 50 % margin. Mixing them up is a common pricing mistake - a shop aiming for a 30 % margin that marks up by 30 % ends up with only 23 %.
To convert, margin = markup / (1 + markup) and markup = margin / (1 - margin). To find a price from a target margin, divide the cost by (1 - margin).
Gross margin ignores overheads, so a healthy gross margin does not guarantee a net profit. For net margin, add your other costs into the cost field. If you want to compare a change in price, use the percentage calculator.
Frequently asked questions
How do I calculate profit margin?
Subtract cost from revenue to get profit, divide by revenue and multiply by 100. With a cost of 60 and revenue of 100, the margin is 40 / 100 = 40 %.
What is the difference between margin and markup?
Margin is profit divided by revenue and markup is profit divided by cost. The same 40 of profit on a cost of 60 is a 40 % margin but a 66.67 % markup.
What price do I need for a target margin?
Divide the cost by (1 - margin). For a 40 % margin on a cost of 60, the price is 60 / 0.6 = 100.
How do I convert markup to margin?
Margin = markup / (1 + markup). A 25 % markup is 0.25 / 1.25 = 20 % margin.
Is this a gross or net profit margin calculator?
It gives the gross figure, which subtracts only the cost you type. For net margin, include all expenses in the cost.
Sources
Last reviewed: September 29, 2026