100% free no uploads no sign-up

margin calculator

Find your profit margin from cost and price — or the price you need to hit a target margin. Markup and profit are shown alongside.

margin40%
profit$40.00
gross margin40%
markup66.67%
selling price$100.00

How to calculate margin

Gross margin is the share of the selling price that's profit. Subtract the cost from the price, then divide by the price. Because it's measured against the price, a margin can never reach 100% while the item costs anything.

margin % = (price − cost) ÷ price × 100 · price = cost ÷ (1 − margin %) · profit = price − cost

Example: you buy a product for $60 and want a 40% margin. Price = 60 ÷ (1 − 0.40) = $100. Profit = $40, which is 40% of $100 — but it's 66.7% of the $60 cost, which is the markup.

Margin to markup table

The same profit looks bigger as a markup than as a margin. Use this table to convert, or to set prices quickly by multiplying your cost:

Gross marginEquivalent markupPrice for a $60 costMultiply cost by
10%11.1%$66.67×1.111
15%17.6%$70.59×1.176
20%25%$75.00×1.25
25%33.3%$80.00×1.333
30%42.9%$85.71×1.429
33.3%50%$90.00×1.5
35%53.8%$92.31×1.538
40%66.7%$100.00×1.667
45%81.8%$109.09×1.818
50%100%$120.00×2
60%150%$150.00×2.5
70%233.3%$200.00×3.333
75%300%$240.00×4
80%400%$300.00×5

Common margin mistakes

Heads up: results are estimates for planning, not financial or accounting advice. Include every cost that applies to you — platform and payment fees, shipping, packaging, returns and tax. Last reviewed November 2026.

Frequently asked questions

How do I calculate profit margin?

Margin = (price − cost) ÷ price × 100. An item that costs $60 and sells for $100 has a $40 profit and a 40% margin.

How do I find the price for a target margin?

Price = cost ÷ (1 − margin). For a 40% margin on a $60 cost: 60 ÷ 0.6 = $100.

Is margin the same as markup?

No. Margin divides profit by the price; markup divides profit by the cost. A 40% margin is a 66.7% markup.

Can margin be over 100%?

No — margin can't reach 100% unless the cost is zero. Markup can be any size.

Is my data stored?

No. Everything is calculated in your browser.