Skip to content
ToolShelf

Profit margin calculator

Find the profit, the margin and the markup from a cost and a selling price, or work backwards to the price a target margin or markup needs.

What do you want to work out?

The margin and markup on a cost and a selling price

What it cost you to buy or make

Profit margin

—

Fill in both fields to see the answer.

The same profit, two different numbers

Buy something for 40, sell it for 50, and you have made 10. Whether that is “20% ” or “25%” depends on what you measure it against. Against the 50 you took, it is a 20% margin. Against the 40 you paid, it is a 25% markup. Both are correct and they are not interchangeable.

Margin is the figure accountants and investors use, because it answers “how much of each sale do we keep?”. Markup is the figure buyers and pricing sheets use, because it answers “what do I add to the cost?”. Trouble starts when one is written down and the other is read.

The mistake this tool exists to prevent

Told to price at a 30% margin, adding 30% to the cost gives a 23% margin instead, about a third less profit than intended. Repeated across a price list, that is the difference between a business that works and one that does not, and it is invisible until the year end.

The correct sum is to divide by 1 minus the margin, not to multiply by 1 plus it. A 30% margin on a cost of 40 needs a price of 40 / 0.7 = 57.14, not 52. Both percentages are always shown above, whichever one you enter, so the two can be compared before a price goes out.

Why margin has a ceiling and markup does not

A margin of 100% would mean every penny of the selling price is profit, which is only true if the goods cost nothing. As the target approaches 100% the price climbs away: 50% needs double the cost, 90% needs ten times it, 99% needs a hundred times. Markup has no such limit, a 900% markup is just a price ten times the cost, which is a 90% margin.

That asymmetry is why the two diverge so sharply at the top end and stay close at the bottom. At 5% they are barely distinguishable; at 50% one of them is half as much profit as the other.

This is gross margin, not profit

Everything here compares one item’s cost against its price. Rent, wages, shipping, packaging, returns, payment processing, advertising and tax all come out of what is left, and for most businesses they come to more than people expect. A 30% gross margin can easily be a loss once they are paid.

There is also no sensible universal answer to “what margin should I aim for”. Supermarkets survive on a few percent because they sell enormous volumes; specialist goods carry several times that because they do not. Compare against others selling something similar, and against what your own overheads actually require.

Questions

What is the difference between margin and markup?
Both describe the same profit; they differ in what it is measured against. Margin is profit as a share of the selling price, markup is profit as a share of the cost. Buy at 40 and sell at 50: the 10 of profit is a 20% margin (10 out of 50) and a 25% markup (10 out of 40). The same trade, two different numbers.
How do I calculate profit margin?
Subtract the cost from the selling price, divide by the selling price, then multiply by 100. Selling at 50 something that cost 40 gives (50 - 40) / 50 = 0.2, which is a 20% margin. Dividing by the cost instead gives the markup, and that is the mistake to watch for.
What price do I need for a given margin?
Divide the cost by 1 minus the margin as a decimal. For a 20% margin on a cost of 40: 40 divided by 0.8 = 50. Adding 20% to the cost gives 48, which is a 20% markup and only a 16.7% margin, the gap between the two is what catches people out.
Why can a margin never reach 100%?
Because a 100% margin would mean the entire selling price is profit, which can only happen if the goods cost nothing. As the target margin approaches 100% the price needed rises steeply, a 90% margin needs a price ten times the cost, and a 99% margin needs a hundred times. Markup has no such ceiling; a 900% markup is simply a price ten times the cost.
Is this gross margin or net margin?
Gross. It compares one item's cost against its selling price and nothing else. Rent, salaries, shipping, packaging, returns, payment processing fees, advertising and tax all sit below that line. A healthy gross margin can still leave a business losing money once those are paid, so treat this as a pricing figure rather than a measure of profitability.
What margin should I aim for?
It depends entirely on the trade, and nobody should take a number from a calculator for this. Grocery retail runs on single-digit margins and high volume; software and jewellery run on very high ones. The useful comparison is against others selling the same sort of thing, and against what your overheads need you to cover.
Can a margin be negative?
Yes, and it is sometimes deliberate. Selling below cost gives a negative margin: clearance stock, loss leaders that bring people in for other purchases, and introductory pricing all do it on purpose. Enter a price below the cost, or a negative target, and the result is shown as a loss rather than rejected.
How do I convert a markup into a margin?
Margin = markup / (1 + markup), with both as decimals. A 25% markup is 0.25 / 1.25 = 0.2, a 20% margin. Going the other way, markup = margin / (1 - margin): a 20% margin is 0.2 / 0.8 = 0.25, a 25% markup. This tool shows both at once so the conversion is never needed.

More tools