How do I calculate profit margin?
A margin calculator shows profit, gross margin and markup from a cost and a selling price, or the price needed to reach a target margin or markup. This margin calculator makes the difference between margin and markup clear and runs entirely in your browser.
Margin and markup both describe profit, but they divide by different things. Gross margin is profit divided by the selling price. Markup is profit divided by cost. A product that costs 60 and sells for 100 has a margin of 40% and a markup of about 66.7%, which is why a quoted margin always looks smaller than the matching markup.
Pick what you already know. With cost and selling price the calculator returns profit, margin and markup. With cost and a target margin it returns the price you need, which is cost divided by one minus the margin. With cost and a target markup it multiplies cost by one plus the markup. Margin can approach but never reach 100%, so that input is rejected.
The figures are gross, meaning they ignore tax, shipping, fees and overheads. Use them to set a price before those costs, then check that what remains still covers them. Calculations run in your browser and nothing is sent anywhere.
Page updated .
How to use the Margin Calculator
- Choose whether you know the selling price, a target margin or a target markup.
- Enter the cost and that value.
- Read the selling price, profit, margin and markup, and compare them with your target.
Examples
Cost 60, price 100
Profit 40, margin 40%, markup 66.67%
Cost 60, margin 40%
Price 100
Cost 60, markup 50%
Price 90, margin 33.33%
Tips
- To protect a margin target, do not use markup for the same percentage; a 30% markup is only a 23% margin.
- Add shipping and fees to the cost box if you want the margin to reflect real take-home profit.
- Round prices after calculating, then re-enter the rounded price to see the margin you will actually get.
Specs & limits
- Inputs
- Cost plus price, margin or markup
- Outputs
- Price, profit, margin %, markup %
- Scope
- Gross figures before tax and overheads
- Processing
- In your browser
Troubleshooting
›No result appears
Cause: A box is empty, or the target margin is 100% or more.
Fix: Enter numbers in both boxes and keep the margin below 100.
›My margin looks lower than my markup
Cause: They use different bases, so the margin is always the smaller figure.
Fix: Compare like with like: margin with margin, markup with markup.
Frequently asked questions
›What is the formula for gross margin?
Margin % = (selling price − cost) ÷ selling price × 100.
›What is the formula for markup?
Markup % = (selling price − cost) ÷ cost × 100.
›How do I convert markup to margin?
Margin = markup ÷ (1 + markup). A 50% markup is 0.5 ÷ 1.5, which is a 33.3% margin.
›What selling price gives a 30% margin on a cost of 70?
Divide the cost by 1 − 0.30, so 70 ÷ 0.70 = 100.
›Can margin be negative?
Yes. If the price is below cost the profit and margin are negative, and the profit box turns red.
›Why is a 100% margin not allowed?
It would need an infinite price, because profit would have to equal the entire selling price.