Margin Calculator
Calculate profit margin, cost, or selling price from any two values
About Profit Margin
Profit margin = (Revenue - Cost) / Revenue. Markup = (Revenue - Cost) / Cost. A 50% markup equals a 33.3% margin.
About This Tool
Markup, margin, profit — three terms used interchangeably, two of which mean different things, and the confusion costs real money. A 50% markup is not a 50% margin (it's 33%). A product priced "at cost plus 30%" has a margin of about 23%, which is the number that matters for your bottom line.
Give any two of cost, selling price, and margin (or markup) and the calculator returns the third, with both margin and markup shown so you can see which is which. Useful for retail pricing, freelance quoting, and resale arbitrage where the difference between a 30% markup and a 30% margin decides if a sale actually puts money in your pocket.
The formulas: margin = (price − cost) / price, markup = (price − cost) / cost. Margin is always the smaller number for any non-zero markup, which is why "margin" sounds less impressive when sellers quote it and "markup" sounds more impressive when calculators feed it back.
Why the two formulas exist at all is historical: markup is the seller's perspective (cost is what I paid; price adds margin on top), margin is the buyer's or accountant's perspective (price is what was paid; profit is the fraction). They're describing the same dollar gap with different denominators, and both forms are correct — the failure is mixing them up in the same conversation. A reseller saying "I make 40% on this" usually means 40% markup, which is 28.6% margin. The 40% sounds healthier than the 28.6% does, which is why sales pitches gravitate toward markup language and accounting reports use margin language.
Worked example: you buy widgets at $40 cost and sell at $60. Markup = (60 − 40) / 40 = 50%. Margin = (60 − 40) / 60 = 33.3%. Same $20 gap, two valid percentages. Now flip it — your accountant says target a 50% gross margin. To hit that with a $40 cost, price = cost / (1 − margin) = 40 / 0.5 = $80, which is a 100% markup. The relationship: margin = markup / (1 + markup), so a 100% markup is a 50% margin and a 50% markup is a 33% margin.
Limits worth flagging: gross margin is what these formulas compute. Net margin (after operating expenses, taxes, etc.) is what determines whether the business actually makes money. A 50% gross margin sounds great until you find out the company has 60% operating expenses, leaving negative net margin. For pricing decisions on individual products, gross margin is the right tool. For evaluating overall business health, you need to walk down the income statement past gross margin to operating margin and net margin.
A related trap is "blended margin" math. A retailer's overall gross margin is the weighted average of per-product margins by revenue mix. A 30% blended margin can hide products at 60% margin propping up products at 0% margin, or one high-volume product at exactly 30% with no variation. The aggregate number tells you about the business; the per-product numbers tell you what to fix. Drilling into per-product margins is often where pricing decisions actually live, even when the headline metric is the blended figure.
The about text and FAQ on this page were drafted with AI assistance and reviewed by a member of the Coherence Daddy team before publishing. See our Content Policy for editorial standards.