How to Calculate Profit Margin vs Markup

Margin and markup describe the same profit dollars with two different denominators — and pricing from one while expecting the other quietly misstates every sale. Here are both formulas, the conversions between them, and the trap in worked numbers.

Profit margin divides profit by revenue; markup divides the same profit by cost. On a $48 sale with a $30 cost, the $18 profit is a 37.50% margin and a 60.00% markup — both correct, never interchangeable. The Profit Margin Calculator shows both figures side by side on your own numbers; this guide explains why there are two, and how to convert between them without a table.

The two formulas

  • Gross profit = revenue − cost. This is the dollar amount both percentages describe.
  • Margin = gross profit ÷ revenue × 100. Margin looks from the selling side: of each revenue dollar, how much is profit?
  • Markup = gross profit ÷ cost × 100. Markup looks from the buying side: by what percentage was the cost increased to reach the price?

Because cost is smaller than revenue whenever there is a profit, the markup percentage is always the larger of the two — and the gap widens as profit grows. The definitions also fix each measure's range: margin on a profitable sale always sits between 0% and 100%, because profit is a part of revenue; markup has no ceiling, because profit can exceed the cost many times over. (Assumptions used throughout this guide: "cost" means the direct cost of what was sold — cost of goods sold — and margin and markup are figured before operating expenses, interest, and tax, exactly as the linked tool figures them. The worked example adds operating expenses separately to show the net figure.)

Worked example — a $48 sale with a $30 cost

Sofia sells a product for $48.00. Each unit costs her $30.00 to buy and package. Per unit:

  • Gross profit: $48.00 − $30.00 = $18.00
  • Margin: $18.00 ÷ $48.00 × 100 = 37.50%
  • Markup: $18.00 ÷ $30.00 × 100 = 60.00%

The same percentages survive scaling to a period, because every figure scales together. In a month when Sofia sells 250 units:

  • Revenue: 250 × $48.00 = $12,000; cost of goods sold: 250 × $30.00 = $7,500
  • Gross profit: $12,000 − $7,500 = $4,500 — still a 37.50% margin and a 60.00% markup
  • After $2,700 of operating expenses (rent, software, marketing): net profit $4,500 − $2,700 = $1,800, a net margin of $1,800 ÷ $12,000 = 15.00%

Notice what changed and what didn't. Gross margin and markup describe the pricing step alone, so they are identical per unit and per month. Net margin is a different figure — it nets the operating expenses in as well — and quoting gross where net is expected is the same species of error as quoting markup where margin is expected: a true number attached to the wrong definition.

Try it with your own numbers

This mini-calculator is prefilled with the worked example above and runs the same gross-profit formulas as the full tool. The full calculator also adds operating expenses for the net profit and net margin.

Result

—

Gross profit—
Markup (profit ÷ cost)—

Open the full calculator — the Profit Margin Calculator runs the complete version of this calculation.

Converting between margin and markup

Because both measures share the same profit, each can be derived from the other with no other information. Using decimals:

  • Margin = markup ÷ (1 + markup) — Sofia's 60% markup: 0.60 ÷ 1.60 = 0.375, a 37.50% margin.
  • Markup = margin ÷ (1 − margin) — her 37.50% margin in reverse: 0.375 ÷ 0.625 = 0.60, a 60.00% markup.

A few anchor pairs worth recognizing on sight: a 25% markup is a 20.00% margin; a 50% markup is a 33.33% margin; a 100% markup — doubling the cost — is a 50.00% margin. Run the conversions backward and they reconcile exactly, which is the quickest check that a quoted percentage is the measure its speaker thinks it is.

The pricing trap: setting a price from the wrong measure

The conversion matters most at the moment a price is set. Suppose Sofia wants a 40% margin on that $30 cost. The price that delivers it is cost ÷ (1 − margin) = $30 ÷ 0.60 = $50.00: at $50, the profit is $20, and $20 ÷ $50 is exactly 40%. The tempting shortcut — "add 40% to the cost" — sets $30 × 1.40 = $42.00 instead. The profit is $12, and $12 ÷ $42 is a 28.57% margin: 11.43 points short of the target, and $8 less profit on every unit, from a one-word confusion between adding a markup and earning a margin. Whenever a target is stated as a margin, the divisor formula above is the price; whenever it is stated as a markup, the multiplier is. Keeping the two apart at pricing time is the whole discipline.

Where the same margin idea shows up next

The per-unit figure in the worked example — price minus the direct cost of one sale — is also the starting point of break-even arithmetic, where it is called the contribution margin: each sale's $18 is what that sale contributes toward covering fixed costs, and dividing the fixed costs by it gives the number of sales needed to break even. That is the calculation the Break-Even Calculator runs. For a service business the same discipline applies to time rather than units: a freelancer's price is an hourly rate, and the "cost" side has to be rebuilt from income goals, expenses, taxes, and billable hours before any margin thinking applies — which is the build the Freelancer Hourly Rate Calculator works through. In both cases the habit is the one this guide is really about: name the denominator before trusting the percentage.

For educational and planning purposes only — not professional advice. This guide explains standard margin and markup definitions with a simplified example (direct cost only at the gross line; the net figure is before interest and tax and is not a full income statement). It is not professional financial or tax advice, and it does not set a price for any real product. Verify your figures against your own sales records and cost invoices, and review significant pricing or reporting decisions with a qualified accounting professional.

Frequently asked questions

What is the difference between profit margin and markup?

The same profit measured against two different denominators. Margin divides profit by revenue (the selling price); markup divides it by cost. A $48 sale with a $30 cost makes $18 of profit: that is a 37.50% margin ($18 ÷ $48) and a 60.00% markup ($18 ÷ $30). Both are correct — they simply answer different questions.

How do you convert markup to margin?

Margin = markup ÷ (1 + markup), using the markup as a decimal. A 60% markup converts as 0.60 ÷ 1.60 = 0.375, a 37.50% margin. The reverse conversion is markup = margin ÷ (1 − margin): a 37.50% margin gives 0.375 ÷ 0.625 = 0.60, back to a 60.00% markup.

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

No — and the gap is expensive. Marking a $30 cost up by 40% sets a $42 price, and the $12 profit on $42 of revenue is a 28.57% margin, not 40%. To actually earn a 40% margin on a $30 cost, the price must be $30 ÷ (1 − 0.40) = $50, where the $20 profit is 40% of the revenue.

Can markup exceed 100% while margin cannot?

Yes. Markup divides by cost, which has no ceiling relative to profit: a $10 cost sold at $30 is a $20 profit, a 200.00% markup. Margin divides by revenue, and profit is only ever a part of revenue, so margin on a profitable sale is always below 100% — that same sale is a 66.67% margin. A margin above 100% on positive revenue is a sign the two have been mixed up.

Related tools