Profit Margin Calculator
Calculate gross margin and markup from cost and price, or find the selling price you need to hit a target margin or markup.
How to use it
- 01
Choose what to calculate: the margin on a sale, or the price you need to reach a target margin or markup.
- 02
Enter your unit cost, before sales tax.
- 03
Enter the selling price, the target margin or the markup, depending on the mode.
- 04
You’ll get the price, the profit per unit, and the matching margin and markup.
How it works
Gross margin is measured against the selling price: margin = (price − cost) ÷ price. Markup is measured against the cost: markup = (price − cost) ÷ cost.
Mixing the two up is the classic pricing mistake. Add 40% to a $60 cost and you sell at $84, which is only a 28.6% margin. To actually earn a 40% margin, divide instead: $60 ÷ (1 − 0.40) = $100.
Keep all your numbers on the same footing. In the US, sales tax is collected on top of the price and sent on to the government, so it isn’t revenue: leave it out of both cost and price.
Examples
- Margin on a sale
Buy at $60 and sell at $100 and you keep $40 in profit: a 40% margin and a 66.67% markup.
- Setting a price
To make a 25% margin on a $30 cost, you need to charge $40.
- Fixed markup
A 50% markup on a $30 cost gives a $45 price, which is a 33.33% margin.
- Keystone pricing
Retailers often double the wholesale cost. A $25 item sold at $50 is a 100% markup but a 50% margin.
Frequently asked questions
Is markup the same as margin?
No. For the same profit, markup is always the bigger percentage, because you divide by the cost (the smaller number) instead of the price. A 50% margin equals a 100% markup.
Can a margin be negative?
Yes, if you sell below cost. Selling something for $40 that cost you $50 is a −25% margin.