This profit margin calculator shows your gross margin, markup and profit from a cost and a selling price. Switch to Cost & target margin and it works backwards to the selling price you need, using price = cost ÷ (1 − margin). Margin and markup are different numbers for the same sale, and mixing them up is a common reason prices end up too low.
How to use the profit margin calculator
- Choose a mode. Cost & price tells you the margin on a price you already have. Cost & target margin tells you what to charge.
- Enter the cost of the item: what you paid for it or what it cost to make.
- Enter either the selling price or your target margin, depending on the mode.
- Pick your currency if you want the right symbol.
- Read the result: selling price, profit, gross margin and markup.
The formula
Profit = Price − Cost
Gross margin = Profit ÷ Price × 100
Markup = Profit ÷ Cost × 100
Price for a target margin = Cost ÷ (1 − m), where m is the margin as a decimal (40% = 0.40)
Margin compares profit with the selling price. Markup compares the same profit with the cost. Because the price is always larger than the cost when you make a profit, the margin is always the smaller of the two percentages.
Worked example
Finding the margin. You buy a product for $32 and sell it for $50.
- Profit: $50 − $32 = $18.00
- Gross margin: $18 ÷ $50 = 36%
- Markup: $18 ÷ $32 = 56.25%
Finding the price. The same $32 product, but you want a 40% margin.
- Price: $32 ÷ (1 − 0.40) = $32 ÷ 0.60 = $53.33
- Profit: $53.33 − $32 = $21.33
If you had added 40% to the cost instead ($32 × 1.40 = $44.80), you would have a 40% markup but only a 28.6% margin.
Margin and markup side by side
This table shows the markup you need to reach common margins. Use it to check a price quickly or to translate between a supplier talking in markup and an accountant talking in margin.
| Gross margin | Markup needed | Price for a $100 cost |
|---|---|---|
| 10% | 11.1% | $111.11 |
| 20% | 25.0% | $125.00 |
| 25% | 33.3% | $133.33 |
| 30% | 42.9% | $142.86 |
| 40% | 66.7% | $166.67 |
| 50% | 100.0% | $200.00 |
| 60% | 150.0% | $250.00 |
A margin can never reach 100%, because that would mean the cost was zero. Markup has no such ceiling. Gross margin also ignores overheads such as rent, wages, payment fees and advertising, so your net margin will be lower. If your prices include VAT or sales tax, remove the tax first with the sales tax and VAT calculator, since tax is not profit. To see what a planned sale does to your margin, run the sale price through the discount calculator and then back through this one.
Frequently asked questions
What is the difference between margin and markup?
Both use the same profit. Margin divides it by the selling price; markup divides it by the cost. A product that costs $50 and sells for $100 has a 50% margin and a 100% markup.
How do I price a product for a 30 percent margin?
Divide the cost by 0.70. A product that costs $70 should sell for $100. Choose Cost & target margin in the calculator and enter 30.
Can profit margin be more than 100 percent?
No. Margin is profit as a share of the price, and profit can never be larger than the price. Markup can be well above 100 percent.
What is a good gross margin?
It depends heavily on the industry. Grocery and fuel often run on thin margins, while software and services can be much higher. Compare yourself with businesses like yours, and make sure the margin covers your overheads.
Should the cost include shipping and packaging?
Yes, if you pay them for each item sold. Include every cost that rises with each unit you sell, so the gross margin reflects what each sale really earns.
This calculator gives estimates for education only and is not financial advice.
