Skip to content
Margin Calculator
Menu

Margin Calculator

Work out your profit margin and markup from cost and price, or start from the margin you want and get the selling price. Results update as you type.

Updated · Industry data: NYU Stern, January 2026

I know
$

What you pay to buy or make one unit.

$

Optional, for total profit.

Gross margin

40.00%

$40.00 profit on each sale · markup 66.67%

Cost
$60.00
Selling price
$100.00
Profit
$40.00
Gross margin
40.00%
Markup
66.67%

How to calculate margin: the formula

Example: you buy a lamp for $60 and sell it for $100. Profit is $40. Margin is 40% ($40 ÷ $100). Markup is 66.7% ($40 ÷ $60).

Selling price for a $60 item at common margins

Target marginPriceProfitMarkup
20%$75.00$15.0025.0%
30%$85.71$25.7142.9%
40%$100.00$40.0066.7%
50%$120.00$60.00100.0%
60%$150.00$90.00150.0%

A 50% margin needs a 100% markup: you have to double the cost. Pricing by adding a percentage to cost always produces a lower margin than the same number suggests.

Which margin are you calculating?

This calculator gives the gross margin on a single product: price minus the cost of the item itself. A business also has rent, wages and other expenses. To see margins after those, use the profit margin calculator, which shows gross, operating and net margin from an income statement. For per-unit break-even, try the contribution margin calculator.

Wondering if your margin is good? Compare it with 30 industries in what is a good profit margin.

Other margin calculators

Questions people ask

How do you calculate margin?

Margin = (price − cost) ÷ price × 100. Cost $60, price $100: $40 profit ÷ $100 = 40%.

How do I find the selling price from a margin?

Price = cost ÷ (1 − margin). For 40% on $60: 60 ÷ 0.6 = $100. Adding 40% to cost gives $84, which is only a 28.6% margin. That's the most common pricing mistake.

What's the difference between margin and markup?

Same profit, different base. Margin divides by price, markup by cost. $40 profit on a $60 item sold for $100: 40% margin, 66.7% markup. More in markup vs margin.

Can a margin be over 100%?

No; profit can't exceed the price. Markup can: a $10 item sold for $50 is a 400% markup and an 80% margin.

Sources

More margin calculators