StringToolsStringTools

Profit Margin & Markup Calculator (They Are Not the Same Thing)

Enter any two of cost, price, margin or markup and the calculator solves the rest — and it always shows margin and markup together, because a 50% markup is only a 33.3% margin. Add marketplace fees for the net figure, or switch to the multi-product tab for a revenue-weighted blended margin. Nothing you type leaves your browser.

Marketplace commission, payment charge, postage — anything taken out of a sale but not part of the unit cost.

Margin (of price)

60%

$27 of $45

Markup (on cost)

150%

$27 on $18

Gross profit / unit

$27.00

before selling fees

Net margin

60%

no fees entered

Where every $45 of price goes

Cost $18.00(40%)Profit $27.00(60%)

Across 1 unit

Revenue$45.00
Cost of goods-$18.00
Net profit$27.00

Price needed for a 30% net margin

$25.71 — that is $19.29 less than your current price.

What these numbers mean

  • A 150% markup on cost is a 60% margin on price. Same profit, two different denominators — markup divides by cost, margin divides by price.
  • Anything above a 50% margin needs a markup of more than 100% — here it is 150%. This is where quoting the wrong one does the most damage.
  • This is gross margin. Rent, salaries, software, marketing and tax all come out of what is left, so the figure a business keeps is smaller.

Margin ↔ markup at a glance

Tap a margin to price your $18.00 cost at it. The two percentages are never the same number.

Margin10%15%20%25%30%33.3%40%50%60%66.7%75%80%
Markup11.1%17.6%25%33.3%42.9%50%66.7%100%150%200%300%400%
Your price

Everything you type stays in this browser — nothing is uploaded. These are gross-margin figures before overheads, salaries and tax; general information, not accounting advice.

TL;DR

Margin and markup describe the same pile of profit measured against two different things. Margin divides profit by the price; markup divides it by the cost. Because price is always bigger than cost, markup is always the bigger percentage. A 50% markup is a 33.3% margin. To get a 50% margin you need a 100% markup. If you price by multiplying cost by 1.5 while budgeting as though you keep half the revenue, you are planning on a third more gross profit than you will ever collect — on every sale, forever. This page gives you the conversion both ways, the price for any target margin, the net margin once selling fees come out, and a blended margin across a whole product list.

One profit, two denominators

Buy something for 40, sell it for 60, and you have made 20. That part is not in dispute. The argument starts when someone asks what percentage that is, because there are two honest answers and they are different numbers.

Measured against the selling price, 20 out of 60 is 33.3%. That is the margin, and it is the retail, accounting and investor view: of every pound, dollar or rupee that comes through the till, a third stays with you. Measured against the cost, 20 on top of 40 is 50%. That is the markup, and it is the buyer’s and wholesaler’s view: the amount you added to what you paid.

Neither is wrong. What is wrong — and extremely common — is quoting one and acting on the other. Suppliers talk in markup because they start from cost. Accountants, lenders and investors talk in margin because they start from revenue. A founder who hears “we run at 40%” in a supplier meeting and repeats it in a bank meeting has just promised a number that is nearly a third larger than reality. That is why this calculator refuses to show one without the other.

A useful memory hook: markup is always the louder number. If someone quotes you an impressive-sounding percentage and you are not sure which one it is, assume markup until told otherwise, and convert before you plan anything around it.

The six formulas, written out

Every result on this page comes from one of these. They are worth keeping somewhere you can find them, because between them they answer every pricing question that starts with “what if”.

margin % = (price − cost) ÷ price × 100
markup % = (price − cost) ÷ cost × 100
price from margin = cost ÷ (1 − margin ÷ 100)
price from markup = cost × (1 + markup ÷ 100)
markup from margin = margin ÷ (100 − margin) × 100
margin from markup = markup ÷ (100 + markup) × 100

Look at the third and fourth lines together, because that pair is where the money is lost. Pricing to a target margin is a division. Pricing to a markup is a multiplication. Cost 18 at a 40% target: divide by 0.60 and you get 30, a genuine 40% margin. Multiply by 1.40 instead and you get 25.20, which is a margin of 28.6%. Same intention, same input, 4.80 of missing profit per unit.

Notice also what the fifth formula does as margin climbs. At 50% the denominator is 50 and the markup is 100%. At 75% the denominator is 25 and the markup is 300%. At 100% the denominator is zero, which is why a 100% margin is impossible unless the goods were free — and why this calculator shows a written explanation instead of an infinity symbol when you ask for one.

Margin to markup: the conversion table to keep

This is the table to screenshot. The left column is the margin you want to end up with; the middle is the markup that produces it; the right is what you would charge for something that cost you exactly 100, in any currency. Every row is generated by the same code the calculator runs, and each one round-trips exactly: convert the markup back and you land on the margin you started from.

Margin (of price)Equivalent markup (on cost)Price when cost = 100
10%11.1%111.11
15%17.6%117.65
20%25%125
25%33.3%133.33
30%42.9%142.86
33.3%50%150
40%66.7%166.67
50%100%200
60%150%250
66.7%200%300
75%300%400
80%400%500

Three rows are worth memorising on their own. A 33.3% margin is a 50% markup . A 50% margin is a 100% markup — doubling the cost, the true keystone. And a 66.7% margin is a 200% markup, , the kind of multiple a product with very low unit costs can carry.

What the mix-up actually costs

Abstract percentages are easy to shrug at, so here is the same confusion in money. Each row takes one percentage, applies it as a markup and as a margin to an item costing 100, and shows the gap. The fourth column is the margin you actually achieve when you meant to hit the number in the first column.

You sayPriced as markupPriced as marginMargin you gotPer-unit shortfall
20%12012516.7%5
25%125133.3320%8.33
30%130142.8623.1%12.86
40%140166.6728.6%26.67
50%15020033.3%50
60%16025037.5%90

The shortfall column grows faster than the percentage does. At 20% the mistake costs 5 per unit; at 50% it costs 50, because the correct margin price is double the cost while the markup price is only one and a half times it. A business selling ten thousand units a year at a 40% intention has, on these figures, mislaid a six-figure sum without a single thing going wrong operationally. Nobody notices, because the accounts are internally consistent — they are simply consistent with the wrong price.

Gross margin is not the margin you keep

Every formula above deals in gross margin: price minus the direct cost of the thing. Anyone selling through a marketplace, a card terminal or a courier knows that is not the end of the story. Commission is charged on the selling price, not on your profit, so it comes out of the margin at full strength.

Take an item costing 18 and selling for 45 — a 60% gross margin, which sounds comfortable. Apply a 15% platform commission and a 3.50 fixed packing-and-postage charge and the fees come to 10.25. Profit falls from 27 to 16.75, and the margin from 60% to 37.2%. Nothing about the product changed; the whole difference was collected by somebody else. Enter both numbers in the fees row of the calculator and it will show the gross and net figures next to each other on every result.

Which raises the obvious follow-up: what would you have to charge to keep a particular net margin? The calculator answers that too, and the formula is worth understanding because the naive version is wrong. You cannot simply add the fee to the price, since raising the price raises the percentage fee as well. Solving properly:

price = (cost + fixed fee) ÷ (1 − fee% ÷ 100 − target margin ÷ 100)

For the same item with a 25% net-margin target: (18 + 3.50) ÷ (1 − 0.15 − 0.25) = 21.50 ÷ 0.60 = 35.83. Note what happens if the fee percentage and the target together reach 100 — the denominator hits zero and no price works at all, because each extra unit of price is entirely consumed by the fee and the target. The calculator says so in words rather than returning a meaningless number.

Why you cannot average your margins

Most free calculators stop at one product. Real businesses sell several, at different margins, in wildly different quantities — and the instinct to average the percentages produces a number that can be off by a factor of six.

Here is the case that makes it obvious. You sell 10,000 units of a commodity line costing 9.50 and priced at 10 — a 5% margin. You also sell 25 units of a premium line costing 20 and priced at 80 — a 75% margin. Average those two percentages and you get 40%, a figure you might happily put in a plan. The reality: revenue of 102,000, cost of 95,500, gross profit of 6,500. The blended margin is 6.4%. The premium line is beautiful and almost irrelevant, because it is a quarter of one percent of revenue.

blended margin % = total gross profit ÷ total revenue × 100

That is the figure your profit-and-loss account will show, and the one a lender or buyer will calculate from your statements regardless of what you tell them. The multi-product tab computes it from your own list, shows each line’s share of revenue beside its own margin, and deliberately prints the plain average next to it so you can see how far apart they are.

The practical use of a blended view is that it shows you two levers rather than one. You can raise prices, which is hard and risky. Or you can shift the sales mix toward the lines that already earn well, which changes the blended margin without changing a single price tag. Seeing revenue share next to margin usually makes it obvious which lines are worth promoting — and which high-margin darling is contributing almost nothing. If you are working out whether a price rise is worth the volume it might cost, the percentage calculator handles the increase-and-decrease arithmetic, and the discount calculator shows what a promotion does to the same margin from the other direction.

Is your margin any good? It depends entirely on the model

There is no universal good margin, and anyone who quotes one without asking what you sell is guessing. A high-volume grocer lives on very thin net margins and survives because it turns its stock over constantly; a service business may run far higher and still struggle, because the cost of delivery is people and people do not scale like inventory. Gross margin has to be read against three things: how often you turn the stock over, how much of the gross is eaten by fixed overheads, and how much working capital sits idle between paying the supplier and being paid yourself.

A better question than “is 30% good?” is “does the gross profit per unit, multiplied by the units I realistically sell, cover my fixed costs with something left over?” That reframing is what turns a percentage into a decision. Forty percent on two hundred units a month is a hobby; eight percent on forty thousand is a business. Use the units field on the single-product tab to see the annual figure rather than the per-unit one — it changes how the same percentage feels.

Finally, keep the vocabulary straight when you talk to anyone outside your own business. Gross margin is revenue minus the direct cost of goods. Operating margin takes out rent, salaries, software and marketing as well. Net margin takes out interest and tax on top, and is what genuinely remains. This calculator produces the first of those, plus a net-of-selling-fees version; it does not know your overheads, your payroll or your tax position, and it is not trying to.

Frequently asked questions

What is the difference between margin and markup?

They measure the same profit against different bases. Margin divides profit by the selling price, so it answers ‘what share of my revenue do I keep?’. Markup divides the same profit by the cost, so it answers ‘how much did I add on top of what I paid?’. Because the price is always larger than the cost, the markup percentage is always the bigger number. A product costing 40 and selling for 60 has a profit of 20, which is a 33.3% margin (20 divided by 60) and a 50% markup (20 divided by 40).

Is a 50% markup the same as a 50% margin?

No, and the gap is expensive. A 50% markup produces a 33.3% margin: multiply the cost by 1.5 and the profit is a third of the resulting price. To actually achieve a 50% margin you need a 100% markup, which means doubling the cost. A shop that quotes ‘we work on 50%’ and applies it as a markup while budgeting as though it were a margin is planning on a third more gross profit than it will receive, on every single sale.

How do I calculate the selling price from a target margin?

Divide the cost by one minus the margin expressed as a decimal: price = cost / (1 - margin/100). For a cost of 18 and a target margin of 40%, that is 18 / 0.60 = 30. Do not multiply the cost by 1.40 — that is a markup, and it would give you 25.20, a margin of only 28.6%. The division is what makes the target a true margin, and it is the single most common pricing mistake this calculator is built to prevent.

What is a blended or weighted margin, and why is it different from an average?

Blended margin is total gross profit divided by total revenue across everything you sell. A plain average of the individual margins treats a product you sell three times as equal to one you sell three thousand times, so it can be wildly optimistic. If you sell 10,000 units at a 5% margin and 25 units at a 75% margin, the plain average is 40% but the blended margin is about 6.4%. The blended figure is the one your profit-and-loss account will show.

Why is my margin lower than expected after marketplace fees?

Because commission is charged on the selling price, not on your profit, so it comes straight out of the margin. A product costing 18 and selling for 45 has a 60% gross margin, but a 15% commission plus a 3.50 fixed charge takes 10.25 of that price, leaving 16.75 of profit and a net margin of 37.2%. Enter both the percentage and the fixed per-unit cost in the fees row and the calculator shows the gross and net figures next to each other.

Can a profit margin be more than 100%?

No. Margin is profit as a share of the price, and profit can never exceed the price you charged, so margin has a ceiling of 100% which is only reached if the item cost you nothing. Markup has no ceiling at all: an item costing 1 and selling for 20 is a 1,900% markup and a 95% margin. If a calculator returns a margin above 100%, or infinity, the inputs have been mixed up — this one shows a plain explanation instead of a broken number.

This calculator gives general business information, not accounting, tax or financial advice. Every figure it produces is a grossmargin — it excludes rent, salaries, marketing, interest, depreciation and tax, so the amount a business actually keeps is smaller. All example amounts on this page are illustrative and are not quoted rates, commissions or prices from any real platform. For the numbers that go on a tax return or a set of statutory accounts, work from your own records with a qualified accountant.

Related Tools