How to Calculate Profit Margin: Margin vs Markup With Worked Examples

Ask two shopkeepers what they make on the same $100 sale and you can get two honest answers — 20% and 25% — because one is quoting margin and the other markup. They are the same $20 profit measured against two different bases, and confusing them is not a vocabulary slip: it quietly underprices products by whole percentage points. This guide explains how to calculate profit margin step by step, works the classic $80-to-$100 example both ways, and exposes the pricing trap that costs sellers real money — with our profit margin calculator returning profit, margin and markup together so the two can never be mixed up again.

How to Calculate Profit Margin, Step by Step

1. Establish the true cost per unit. Start with the purchase price, then add the per-unit costs sellers forget: delivery, packaging, card fees. An $800 item with $50 of delivery really costs $850, and every margin built on $800 is fiction. 2. Subtract cost from selling price. That difference is profit per unit, in plain dollars — the number both percentages are built from. 3. Divide by the right base. For margin, divide profit by the selling price; for markup, divide the same profit by the cost. Multiply by 100 for the percentage. 4. Read all three numbers together. The calculator returns profit, margin and markup at once, and it is honest about bad news: a selling price below cost shows a negative profit labelled as a loss, and a zero cost — a free item you resell — reports markup as undefined rather than inventing a number. Keep the two questions separate in your head from here on: margin asks “of every dollar the customer pays me, how much do I keep?”, markup asks “by what percentage did I raise the price above cost?”

Worked Example: An $80 Shirt Sold for $100

A store owner buys a shirt for $80 and sells it for $100. Profit is 100 − 80 = $20. Margin is that profit over the selling price: 20 ÷ 100 × 100 = 20%. Markup is the same profit over cost: 20 ÷ 80 × 100 = 25%. Same shirt, same $20, two percentages — and a quick conversion proves they agree: markup = margin ÷ (1 − margin), so 0.20 ÷ 0.80 = 0.25, the 25% markup. Run the relationship the other way — margin = markup ÷ (1 + markup) — and 0.25 ÷ 1.25 returns the 20% margin. The owner who says “I make 25%” is quoting markup; the one who says “I make 20%” is quoting margin. Both are correct. The danger is not in either number; it is in comparing one business's markup against another's margin, or — worse — setting prices with the wrong one, which is where the real money leaks. If percentages themselves ever feel slippery, our percentage calculator handles the three standard percent questions behind all of this arithmetic.

The Pricing Trap: Wanting 30% and Getting 23.08%

Here is the mistake in its natural habitat. You want a 30% margin, so you add 30% to cost: a $1,000 cost becomes a $1,300 price. But check the margin you actually got: (1,300 − 1,000) ÷ 1,300 = 23.08% — nearly 7 points short of target, because you applied a markup while aiming at a margin. The same trap at other targets: adding 20% delivers only a 16.7% margin, and adding 40% delivers 28.6%. The fix is one formula: to hit a target margin, price at cost ÷ (1 − margin). For 30%, that is 1,000 ÷ 0.70 = $1,428.57, which requires a 42.86% markup — the honest price of a 30% margin. For a 20% margin the required markup is 25% and the price $1,250; for 40% it is 66.67% and $1,666.67; for a 50% margin you must double the cost to $2,000, a 100% markup. Memorise cost ÷ (1 − margin) and you will never underprice by accident again. The mirror-image discipline applies when you discount from a correct price: a sale percentage comes off the selling price, not the margin, so run promotions through our discount calculator and then recheck the margin on the discounted price before the sale goes live.

Common Mistakes

Pricing with markup while targeting margin. The 30%-becomes-23.08% trap above — the single most expensive arithmetic error in small retail, repeated daily because “add 30%” feels like “make 30%”. Forgetting hidden unit costs. Delivery, packaging and processing fees belong in cost; leaving out $50 on an $800 item overstates every margin you quote from it. Mistaking gross margin for money in the bank. This calculator works per unit and stops at unit cost and price: rent, salaries, utilities, taxes, wastage, discounts and returns all eat further into the real figure, and a healthy 30% gross margin can become a 5% net margin after expenses. Treat the result as a pricing starting point, not a business verdict. Comparing unlike numbers. A supplier's “40%” and your accountant's “40%” may be markup and margin respectively — a 40% markup is only a 28.6% margin, so always ask which base a percentage was divided by. Assuming margin can pass 100%. It cannot; only markup is unbounded. Any spreadsheet showing a 140% margin has divided by cost while labelling it margin — which is the original confusion, wearing a tie.

Frequently Asked Questions

What is the difference between profit margin and markup?
Margin is profit as a percentage of the selling price; markup is profit as a percentage of the cost price. They describe the same profit over two different bases. On an $80 cost sold for $100, the $20 profit is a 20% margin (20 ÷ 100) but a 25% markup (20 ÷ 80). Because the selling price is always the larger base, the margin is always the smaller number — and markup is always higher.
How do I calculate profit margin?
Subtract the cost price from the selling price to get profit, divide that profit by the selling price, and multiply by 100. For example, an item costing $80 and selling for $100 gives (100 − 80) ÷ 100 × 100 = 20% margin. Margin answers the question: of every dollar the customer pays me, how much do I keep before overheads?
How do I calculate markup?
Subtract the cost price from the selling price to get profit, divide that profit by the cost price, and multiply by 100. The same $80-to-$100 example gives (100 − 80) ÷ 80 × 100 = 25% markup. Markup answers a different question from margin: by what percentage did I raise the price above what the item cost me?
Can profit margin be more than 100%?
No. Margin is profit divided by the selling price, and profit can never exceed the selling price itself unless the cost was negative — so margin is capped below 100%. Markup has no ceiling: selling at triple the cost is a 200% markup, which sounds dramatic but is only a 66.7% margin. Quoting markup where margin is expected is how businesses overstate their profitability.
If I want a 30% margin, what markup should I use?
A 30% margin needs a 42.86% markup. The conversion is markup = margin ÷ (1 − margin), so 0.30 ÷ 0.70 = 0.4286. Equivalently, price at cost ÷ (1 − margin): on a $1,000 cost, 1,000 ÷ 0.70 = $1,428.57. Simply adding 30% to cost gives a $1,300 price and only a 23.08% margin — nearly 7 points short of the target.

More guides from ToolNest

How to Calculate a Discount: Sale Price, Savings and the Stacked-Discount Trick

Final price and savings from any %, why stacked 20% + 20% is really 36% off, and how to check a claimed was price.

How to Calculate Percentages: The Three Formulas Behind Every Percent Question

The three formulas for X% of Y, what percent X is of Y, and percent change — with salary, sale and quiz examples.

How to Calculate Loan Payments: The Formula, a Worked Example and the Amortization Trap

A $25,000 loan at 7.5% worked in full — $500.95 a month, $5,056.92 interest — and why early payments are mostly interest.