KKwikfig.

Profit Margin Calculator

Calculate profit margin and markup together from cost and price, and finally separate the two numbers that business conversations constantly confuse with each other. Runs entirely in your browser — your numbers never leave this device.

Profit margin
40%
$40.00 of the $100.00 price is profit; the rest is cost.
Profit
$40.00
Margin
40%
Markup
66.67%
Price needed for a target margin (at this cost)
Target marginRequired priceProfit per sale
10%$66.67$6.67
20%$75.00$15.00
30%$85.71$25.71
40%$100.00$40.00
50%$120.00$60.00
Price from a markup on cost — and the margin it really gives
MarkupPriceResulting margin
10%$66.009.09%
25%$75.0020%
50%$90.0033.33%
75%$105.0042.86%
100%$120.0050%

Margin and markup are not the same number: margin is profit as a share of the price, markup is profit as a share of the cost. A 50% markup is only a 33.33% margin.

How it works

Profit = Price − Cost | Margin = Profit / Price × 100 | Markup = Profit / Cost × 100 | Price needed for a target margin = Cost / (1 − Margin as a decimal)

Margin and markup measure the same profit against two different bases, and confusing them is one of the most expensive small mistakes in pricing. Margin divides the profit by the selling price — it answers 'what share of each sale is profit?' Markup divides the same profit by the cost — it answers 'by what percentage did I mark the cost up?' Because the price is always larger than the cost, the margin is always the smaller percentage of the pair, and the calculator always displays both so neither can be mistaken for the other.

The difference is not pedantry. If you want a 40% margin on an item costing $60 and you mistakenly apply a 40% markup instead, you price at $84 rather than $100 and surrender $16 of profit on every sale. The third example runs that exact pair both ways, and the reverse formula — price equals cost divided by (1 minus the target margin) — is included so you can start from the margin you need and get the price that delivers it.

This calculator works at the level of a single product or transaction (gross margin: price minus the direct cost of the item). It does not subtract overheads, rent or taxes, which belong to net margin at the whole-business level. Mixing the two is another classic error: a healthy product margin can still leave a thin net margin once fixed costs take their share, which the Break-Even Calculator helps you see.

Worked examples

Cost $60, price $100 — the dual pair

Input
Cost = $60, Selling price = $100
Working
Profit = 100 − 60 = $40. Margin = 40 / 100 × 100 = 40%. Markup = 40 / 60 × 100 = 66.67%. Same $40 of profit, two percentages — because margin measures it against the $100 price and markup against the $60 cost.
Result
Profit = $40; margin = 40%; markup = 66.67%

Cost $80, price $100 — a thinner margin

Input
Cost = $80, Selling price = $100
Working
Profit = 100 − 80 = $20. Margin = 20 / 100 × 100 = 20%. Markup = 20 / 80 × 100 = 25%. Halving the profit from the first example halved the margin exactly (40% → 20%) but cut the markup by more than half (66.67% → 25%), because the bases differ.
Result
Profit = $20; margin = 20%; markup = 25%

Pricing backwards: cost $45, target margin 30%

Input
Cost = $45, Target margin = 30%
Working
Price = Cost / (1 − margin) = 45 / (1 − 0.30) = 45 / 0.70 = $64.29 (rounded). Profit = 64.29 − 45 = $19.29. Check the margin: 19.29 / 64.29 × 100 = 30%. Note the trap avoided: a 30% markup on $45 would price at 45 × 1.30 = $58.50, whose margin is only 13.50 / 58.50 = 23.08% — not the 30% intended.
Result
Price for a true 30% margin = $64.29 (a 30% markup would give only $58.50 and a 23.08% margin)

Frequently asked questions

What is the difference between margin and markup?

Same profit, different denominator. Margin divides profit by the selling price; markup divides profit by the cost. On a $60 cost and $100 price, the $40 profit is a 40% margin and a 66.67% markup. Whenever someone quotes a percentage on a deal, knowing which of the two it is changes what the number means entirely.

Why can markup exceed 100% but margin cannot?

Markup is measured against the cost, which profit can exceed several times over — a $10 cost sold at $100 carries a $90 profit and a 900% markup ((100 − 10) / 10 × 100 = 900%). Margin is measured against the price, and profit is a part of the price, so it can approach but never reach 100% (that would require a cost of zero). A margin quote and a markup quote are therefore not interchangeable at any size.

Which should I use for pricing?

Margin, if your targets are expressed as shares of revenue (as most financial reporting does); markup, if your habit is adding a percentage to supplier prices. The safe practice is to compute both, as this calculator does, and to state explicitly which one a quote, a target or a negotiation is using — most margin disputes turn out to be the two sides using different measures.

Is this gross margin or net margin?

Gross, at product level: price minus the direct cost of what was sold. Net margin subtracts all the business's other costs — rent, wages, marketing, tax — from total profit before dividing by total revenue, and is always lower. This calculator gives the per-item gross pair; combine it with your fixed costs in the Break-Even Calculator to see how product margins translate into business profit.

What margin is a good margin?

There is no universal figure: it varies enormously by industry, from a few percent in high-volume grocery retail to well over half the price in software and services. Any page quoting one right answer is selling something. What this calculator can do is make your own margin exact and comparable — against your other products, your past prices and your break-even requirement.

Related tools

More in Finance Calculators · Browse all tools