Profit Margin Calculator
This profit margin calculator works out your profit, margin and markup from what an item costs you and what you sell it for. Or switch to “Price for a margin” to find what to charge. Enter the amounts and press Calculate.
Profit Margin Calculator
Profit margin formula
Profit is what's left of the selling price after the cost. Margin is that profit as a percentage of the selling price. Markup is the same profit as a percentage of the cost.
Profit = price − cost Margin % = profit ÷ price × 100 Markup % = profit ÷ cost × 100Example, using the calculator's starting numbers: you buy an item for $60 and sell it for $80.
- Profit: $80 − $60 = $20
- Margin: $20 ÷ $80 × 100 = 25%
- Markup: $20 ÷ $60 × 100 = 33.33%
So the same $20 of profit is a 25% margin and a 33.33% markup. If you enter a total for revenue and a total for costs (a month's sales and a month's costs, say), the answer is the margin for the whole period.
Price to charge for a target margin
To hit a margin, divide the cost by what's left after the margin. Don't add the margin percentage to the cost, because that's a markup and gives a smaller margin than you wanted.
Price = cost ÷ (1 − margin % ÷ 100)Example: a $60 item and a 25% target margin. $60 ÷ (1 − 0.25) = $60 ÷ 0.75 = $80. Check: $20 profit ÷ $80 = 25%. Adding 25% to the cost instead gives $75, and $15 ÷ $75 is only a 20% margin.
Margin vs markup: why 25% markup isn't 25% margin
Both numbers start from the same profit, but they divide it by different things. Markup divides by the cost, which is the smaller number, so markup is always higher than margin on a profitable sale. Mixing them up is one of the most common pricing mistakes. Someone who wants a 40% margin and adds 40% to cost ends up with 28.57%.
To convert between them:
Markup % = margin ÷ (100 − margin) × 100 Margin % = markup ÷ (100 + markup) × 100Margin to markup conversion table
| Margin | Markup needed | Price for a $100 cost |
|---|---|---|
| 10% | 11.11% | $111.11 |
| 15% | 17.65% | $117.65 |
| 20% | 25% | $125.00 |
| 25% | 33.33% | $133.33 |
| 30% | 42.86% | $142.86 |
| 35% | 53.85% | $153.85 |
| 40% | 66.67% | $166.67 |
| 45% | 81.82% | $181.82 |
| 50% | 100% | $200.00 |
| 60% | 150% | $250.00 |
| 70% | 233.33% | $333.33 |
| 75% | 300% | $400.00 |
Markup to margin conversion table
| Markup | Margin you get |
|---|---|
| 10% | 9.09% |
| 20% | 16.67% |
| 25% | 20% |
| 30% | 23.08% |
| 40% | 28.57% |
| 50% | 33.33% |
| 75% | 42.86% |
| 100% | 50% |
| 200% | 66.67% |
Notes and assumptions
- Gross or net is up to you. Enter the cost of the item for gross margin. Enter all your costs (item, shipping, fees, overheads) for net margin.
- Sales tax isn't revenue. Use the price before sales tax, since the tax goes to the state, not to you. The sales tax calculator can split a total that includes tax.
- Discounts cut margin fast. 20% off an $80 item with a $60 cost leaves $64, a $4 profit and a 6.25% margin. Check sale prices with the percent off calculator, then run them through here.
- Prices are rounded to the nearest cent, so the margin on a rounded price can differ from the target in the second decimal place. The calculator shows the actual margin.
Frequently asked questions
What is a 30% margin on $100?
It depends on what the $100 is. If $100 is the selling price, a 30% margin means $30 profit and a $70 cost. If $100 is your cost, the price for a 30% margin is $100 ÷ 0.70 = $142.86, which is $42.86 profit. Adding 30% to the cost ($130) only gives a 23.08% margin.
Is markup the same as margin?
No. Both use the same profit, but markup divides it by the cost and margin divides it by the selling price. Buy at $60 and sell at $80, and the $20 profit is a 33.33% markup but a 25% margin. Markup is always the bigger number when you make a profit.
What is a good profit margin?
There's no single answer, because it depends on the business. Grocery stores often run on a few percent net margin, while software and services can be far higher. Compare your margin with businesses like yours, and check that your gross margin covers rent, wages and other running costs with something left over.
What's the difference between gross and net profit margin?
Gross margin only takes off the cost of the goods you sold. Net margin takes off every expense: rent, wages, marketing, interest and taxes as well. This calculator works out whichever one you feed it. Enter the item cost for gross margin, or your total costs for net margin.
Can a profit margin be over 100%?
No. Margin is profit as a share of the price, and profit can't be more than the price unless the cost is negative. It reaches 100% only when the cost is zero. Markup has no ceiling: a $5 item sold for $20 has a 300% markup and a 75% margin.
See also
- Percentage Calculator: Percent of a number, percent change, and increase or decrease by a percent.
- Percent Off Calculator: Sale price and savings at any % off, extra % off and tax.
- Sales Tax Calculator: Tax and total for a price, or the price before tax from a total.
Last updated: November 23, 2026