Calculator guide

How to Calculate Profit Margin, Markup, and Break-Even Correctly

Margin, markup, and break-even are three of the most confused numbers in small business. They are related, but they answer different questions and use different denominators. By the end of this guide you will know exactly how each one is calculated, why a 40% markup is not a 40% margin, and how many units you actually need to sell to cover your costs.

Written and maintained by Jay Sudha · Last reviewed 2 July 2026

Profit margin and markup are not the same number

Both margin and markup start from the same gross profit: selling price minus cost. What differs is what you divide that profit by. Margin divides profit by the selling price. Markup divides the same profit by the cost. Because the price is always larger than the cost, margin is always a smaller percentage than markup for the same sale.

That single difference in denominator is where most pricing mistakes come from. Someone hears "we run a 40% markup" and assumes 40 cents of every dollar is profit. It is not. Once you see both formulas side by side, the gap is obvious and easy to control.

Margin % = (Price − Cost) ÷ Price × 100 Markup % = (Price − Cost) ÷ Cost × 100

A worked example: 40% markup is a 28.6% margin

Take the default example built into the Markup Calculator: a product that costs $50, sold with a 40% markup. The markup adds 40% of the cost on top, so the price is 50 × 1.40 = $70. Gross profit is 70 − 50 = $20.

Now measure that same $20 two ways. As a markup it is 20 ÷ 50 = 40%, which is what you entered. As a margin it is 20 ÷ 70 = 28.57%. The profit did not change — only the denominator did. That is why the calculator shows margin as the honest twin of markup on the same screen, so you never quote one thinking it is the other.

If you genuinely want a 40% margin, you have to work backwards. The markup needed to produce a given margin is m ÷ (100 − m). For a 40% margin that is 40 ÷ 60 = 66.67% markup, which prices the $50 item at 50 × 1.6667 = $83.33. At that price, profit is $33.33, and 33.33 ÷ 83.33 really is 40%.

Markup needed for a target margin = margin ÷ (100 − margin) × 100

Worked example

Cost = $50, target margin = 40% Markup needed = 40 ÷ (100 − 40) = 66.67% Price = 50 × (1 + 0.6667) = $83.33 Profit = 83.33 − 50 = $33.33 Margin check = 33.33 ÷ 83.33 = 40.0% ✓

Keystone pricing and quick mental benchmarks

Keystone pricing — doubling the cost to set the retail price — is a widely used retail shorthand precisely because it's a round, memorable number: a 100% markup. Run it through the margin formula and a 100% markup is exactly a 50% margin, since profit and cost are equal, and profit divided by a price that's double the cost is always one-half. This is one of the rare cases where a simple round-number markup translates to an equally clean margin, which is likely why the convention stuck in retail.

Away from keystone, round markups rarely give round margins: a 50% markup is a 33.3% margin, a 25% markup is a 20% margin, a 200% markup is a 66.7% margin. A quick mental check worth memorizing: at low-to-moderate markups (under roughly 50%), the margin percentage is noticeably smaller than the markup percentage; the gap between them narrows as the markup climbs higher, but never fully closes except at the mathematical extremes.

Gross margin vs net margin

The margin from price minus cost is a gross margin. It only accounts for the direct cost of the thing you sold. Your business also carries payment fees, platform commissions, advertising, rent, salaries, and tax. Net margin is what survives after all of those.

The Profit Margin Calculator walks revenue down a waterfall to show this: gross revenue, minus discounts and refunds gives net revenue, minus direct costs gives gross profit, minus variable fees gives contribution profit, minus operating expenses gives operating profit, minus interest and estimated tax gives net profit. A product can show a healthy 45% gross margin and still finish the month at a thin net margin once fees and overhead are taken out.

This is why quoting a single margin figure without saying which one you mean causes confusion between a founder and their accountant. Always name the line: gross, contribution, operating, or net.

Break-even: how many units cover your costs

Break-even answers a different question entirely: at this price and cost structure, how many units must I sell before I stop losing money? It splits costs into fixed (rent, salaries, software — costs that do not move with each sale) and variable (materials, shipping, per-sale fees).

The engine behind the Break-Even Calculator uses the standard cost-volume-profit identities. Contribution margin per unit is price minus variable cost. Break-even units is fixed costs divided by that contribution margin. Each unit sold beyond break-even adds exactly one contribution margin of profit.

Contribution margin = Price − Variable cost Break-even units = Fixed costs ÷ Contribution margin Break-even revenue = Break-even units × Price

Worked example

Fixed costs = $18,000/mo, Price = $80, Variable cost = $35 Contribution margin = 80 − 35 = $45 per unit Break-even = 18,000 ÷ 45 = 400 units Break-even revenue = 400 × $80 = $32,000 At 500 units sold: profit = 500 × 45 − 18,000 = $4,500

Margin of safety and target profit

Break-even is the floor, not the goal. Two more numbers make it useful for planning. Margin of safety is how far sales can fall before you drop below break-even. If you break even at 400 units and expect to sell 500, the margin of safety is (500 − 400) ÷ 500 = 20%. Sales can slip a fifth before the plan turns into a loss.

To hit a target profit, add it to fixed costs before dividing. To make $5,000 on top of the $18,000 fixed base at a $45 contribution margin, you need (18,000 + 5,000) ÷ 45 = 511.1 units, so 512 in practice. Rounding up matters here — 511 units leaves you a few dollars short of the target.

Margin of safety % = (Expected units − Break-even units) ÷ Expected units × 100 Units for target profit = (Fixed costs + Target profit) ÷ Contribution margin

Break-even in a business with multiple products

The break-even formula above assumes a single product with one price and one variable cost. A business selling several products at once needs a weighted-average contribution margin instead — blending each product's contribution by its share of total unit sales — before dividing into fixed costs.

For example, if Product X (price $80, variable cost $35, contribution $45) makes up 60% of unit sales and Product Y (price $50, variable cost $30, contribution $20) makes up the other 40%, the weighted-average contribution margin is (0.60 × $45) + (0.40 × $20) = $27 + $8 = $35 per unit — lower than X's own contribution, because Y drags the average down. Dividing the same $18,000 of fixed costs by that $35 blended contribution gives a break-even of about 515 total units (18,000 ÷ 35 = 514.3, rounded up), split roughly 309 units of X and 206 of Y at the assumed sales mix.

How the three fit together

Think of them as three lenses on one set of numbers. Markup is a pricing rule you apply going up from cost. Margin is a profitability check you read coming down from price. Break-even is a volume test that tells you whether your margin, at your fixed-cost base, is enough to survive at your expected sales.

A useful sequence is to price with markup, sanity-check the result as a margin, then feed the price and per-unit variable cost into a break-even model with your real fixed costs. If break-even sits close to or above the volume you can realistically sell, the price is too low or the cost base is too heavy — no amount of extra volume fixes a non-positive contribution margin.

Common mistakes

  • Quoting a markup percentage as if it were a margin. A 40% markup is only a 28.6% margin — treating them as equal overstates profitability on every sale.
  • Stopping at gross margin. Price minus cost ignores payment fees, ads, and overhead; a strong gross margin can collapse to a thin or negative net margin.
  • Forgetting that break-even needs a positive contribution margin. If variable cost meets or exceeds the price, no sales volume ever breaks even — more units only deepen the loss.
  • Rounding break-even units down. If the exact figure is 511.1 units, selling 511 leaves you short of the target; you almost always need to round volume up.
  • Mixing per-order and monthly figures. Contribution per order tells you the floor per sale, but fixed costs are monthly — compare them on the same time basis before drawing conclusions.
  • Assuming volume cures a pricing problem. If each unit loses money before fixed costs, the fix is price, cost, or fees, not selling more.
  • Using your best (or only) product's contribution margin to estimate break-even for a multi-product business. A weighted average across the actual sales mix gives a materially different, usually higher, break-even unit count when margins vary across products.

When not to rely only on the calculator

Try it with your own numbers

Open the Profit Margin Calculator to run this calculation for your own situation — the formula and assumptions are shown on the page.

Try the Profit Margin Calculator

Related calculators

Browse the full set in Business & Ecommerce Calculators.

Frequently asked questions

Is markup or margin the bigger number?

For any profitable sale, markup is always the larger percentage. Both use the same gross profit, but markup divides it by the smaller cost while margin divides it by the larger price. A 40% markup, for example, is only a 28.6% margin.

How do I turn a target margin into a markup?

Use markup = margin ÷ (100 − margin), then multiply by 100. For a 40% target margin that is 40 ÷ 60 = 66.67% markup. Applied to a $50 cost, that prices the item at $83.33, which really does return a 40% margin.

What is contribution margin in break-even?

Contribution margin is the selling price minus the variable cost of one unit — the amount each sale contributes toward fixed costs and then profit. Break-even units equal fixed costs divided by the contribution margin. If it is zero or negative, break-even is impossible.

Why does my gross margin look fine but net margin is thin?

Gross margin only subtracts direct product cost. Net margin also subtracts payment fees, platform commissions, ads, rent, salaries, interest, and tax. Those extra layers can turn a 45% gross margin into a single-digit net margin, which is why naming the specific line matters.

How many units do I need for a specific profit?

Add the target profit to fixed costs, then divide by the contribution margin. With $18,000 fixed costs, a $45 contribution margin, and a $5,000 profit goal, you need (18,000 + 5,000) ÷ 45 = 511.1, so 512 units in practice. Round up, since a partial unit will not close the gap.

What is keystone pricing?

Keystone pricing means doubling your cost to set the retail price — a 100% markup. It's popular because it's the rare case where a round markup number also produces a round margin: a 100% markup is exactly a 50% margin, since profit and cost are equal.

How does break-even work with more than one product?

Blend each product's contribution margin by its share of total unit sales to get a weighted-average contribution margin, then divide your total fixed costs by that blended figure. A product with a thinner margin pulls the average down, raising the total units needed to break even compared to using your best-selling product's contribution margin alone.

Related guides

Written and maintained by Jay Sudha · Last reviewed 2 July 2026.

See a formula issue or unclear assumption? Report it through the contact page.

Educational estimate only. Not financial, tax, legal, investment, or professional advice.