Margin Calculator
Find the gross margin, markup and profit from a cost and a price — or the price for a target margin or markup, the most you can pay for a target margin, and margin ↔ markup conversions.
How to Use
- Choose what to solve for: margin and markup from a cost and price, a price from a target margin or markup, the maximum cost for a margin, or a straight margin ↔ markup conversion.
- Enter the known values. Money fields accept $ signs and commas; percentages can be typed with or without %.
- The answers appear in their own highlighted, read-only fields and in the readouts, with the profit per unit.
- Or press a preset — keystone retail, a 40% margin, a 50% markup, a restaurant plate — to load a worked case.
- Check the Show Work section for each step, and the table under Formulas for common margin ↔ markup pairs.
Worked Example
Margin and markup from a cost and a price. An item costs $60 and sells for $100. Profit = $100 − $60 = $40. Gross margin = $40 ÷ $100 = 40%. Markup = $40 ÷ $60 = 66.67%. Same $40, two different bases.
Pricing from a markup. A $80 cost with a 50% markup sells for $80 × 1.5 = $120. The profit is $40, which is a 33.33% margin.
The common mistake: adding the margin to the cost. To make a 40% margin on a $60 cost, many people add 40%: $60 × 1.4 = $84. But $24 ÷ $84 is only a 28.57% margin. The right price is $60 ÷ (1 − 0.40) = $100, which earns $16 more per unit.
Show Work
Formulas
| Gross margin | Markup | Price ÷ cost |
|---|---|---|
| 10% | 11.11% | 1.1111× |
| 15% | 17.65% | 1.1765× |
| 20% | 25% | 1.25× |
| 25% | 33.33% | 1.3333× |
| 30% | 42.86% | 1.4286× |
| 33.33% | 50% | 1.5× |
| 40% | 66.67% | 1.6667× |
| 50% | 100% | 2× |
| 60% | 150% | 2.5× |
| 75% | 300% | 4× |
Gross, Operating and Net Margin
This calculator works on one unit: price and the direct cost of that unit, which gives the gross margin — (revenue − cost of goods sold) ÷ revenue. It is the figure retailers and buyers use to compare products, and it is the top line of a company’s profitability.
Further down the income statement come the other margins. Operating margin subtracts the costs of running the business — rent, wages, marketing. Net margin subtracts everything, including interest and income tax. A shop with $500,000 of sales and $300,000 of cost of goods has a 40% gross margin; after $120,000 of operating costs its operating margin is 16%, and after $30,000 of interest and tax its net margin is 10%. A healthy-looking gross margin can still leave little profit, which is why a product priced at a thin gross margin rarely survives its overheads.
Markup is the retailer’s word, margin the accountant’s. “Keystone” pricing — doubling the wholesale cost — is a 100% markup and a 50% margin, which is why the two numbers are so easy to mix up.
About This Calculator
This calculator solves the margin and markup relationship in every direction: margin and markup from a cost and a price, the price for a target margin or markup, the highest cost that still meets a margin, and margin ↔ markup conversions. The answers appear in their own highlighted fields, the profit per unit is shown in every mode, and the diagram measures the same profit against the price and against the cost so the gap between the two percentages is visible.
Everything runs in your browser; nothing you enter is sent anywhere. It suits retail and wholesale pricing, menu costing, quotes and supplier negotiations. Estimates for planning and education — not financial, tax or legal advice.
Related tools: Discount Calculator, ROI Calculator, and Percentage Calculator.
Frequently Asked Questions
What is the difference between margin and markup?
Both describe the same profit against a different base. Margin is profit ÷ selling price; markup is profit ÷ cost. An item that costs $60 and sells for $100 makes $40: a 40% margin but a 66.67% markup. Margin is always the smaller number when the item makes a profit.
How do I price for a target margin?
Divide the cost by (1 − margin). For a 40% margin on a $60 cost: $60 ÷ 0.6 = $100. Adding 40% to the cost instead gives $84, which is only a 28.57% margin — the most common pricing mistake.
How do I convert markup to margin?
Margin = markup ÷ (1 + markup). A 50% markup is 0.5 ÷ 1.5 = 33.33% margin; a 100% markup (doubling the cost) is a 50% margin. The other way, markup = margin ÷ (1 − margin), so a 30% margin is a 42.86% markup.
Why can a markup be over 100% but a margin cannot?
Margin is a share of the price, and profit can never be more than the whole price unless the cost is negative. Markup is measured against the cost, so it has no ceiling: a $3.20 plate sold for $12 has a 275% markup but a 73.33% margin.
What is the difference between gross and net margin?
Gross margin = (revenue − cost of goods sold) ÷ revenue. Net margin is what is left after every expense — rent, wages, interest and tax. A business with $500,000 of sales and $300,000 cost of goods has a 40% gross margin; after $120,000 of operating costs and $30,000 of interest and tax, its net margin is 10%.
How do I use the Margin Calculator?
Just type your numbers. The answer shows up right away — there is no button to press. Change anything and it updates by itself.
Is it free? Does it work without internet?
Yes to both. It is free with no sign-up, and once the page has loaded it keeps working even with no internet.
Where does my data go?
Nowhere — every calculation runs on your own device. Nothing you enter is uploaded, logged, or stored.
Common Use Cases
Setting a retail price
A $60 wholesale cost and a 40% target margin need a $100 shelf price, a 66.67% markup.
Keystone pricing
Doubling a $25 cost to $50 is a 100% markup and a 50% margin, $25 profit per unit.
Menu costing
A dish with $3.20 of ingredients sold for $12 has a 73.33% gross margin before labour and rent.
Supplier price rise
If a $60 cost rises to $66 and the $100 price stays, the margin drops from 40% to 34%.
Discount check
Taking 10% off a $100 item that costs $60 leaves a $90 price and a 33.33% margin — a quarter of the profit is gone.
Reading a vendor quote
A quoted 25% markup is only a 20% margin, so compare offers on the same base.
Last updated: