Margin vs Markup (and Converting Between)

Excel Formulas › Retail & Inventory

All versions

Margin and markup are different percentages of different bases — confusing them mis-prices products. Margin is profit over price; markup is profit over cost. Here’s both, and how to convert.


Quick formula: gross margin from price and cost:
=(price - cost) / price
Profit divided by price is margin; profit divided by cost is markup. A 50% markup is only a 33% margin.

The example

$60 price, $40 cost.

AB
1ItemValue
2Margin33.3%
3Markup50.0%

The formula

The formula:

=(B2 - B3) / B2 // profit ÷ price = margin

How it works

How it works:

  1. Margin = (price − cost) ÷ price — profit as a share of the selling price.
  2. Markup = (price − cost) ÷ cost — profit as a share of cost.
  3. Convert markup→margin: markup / (1 + markup); margin→markup: margin / (1 - margin).
  4. Price from cost and a target margin: cost / (1 - margin); from a markup: cost * (1 + markup).

The classic pricing error: applying a 30% markup when you meant a 30% margin leaves money on the table. A 30% markup on $70 cost gives a $91 price — but that’s only a 23% margin. To actually earn a 30% margin, price at cost / (1 - 0.30) = $100. Always be clear which base you mean.

Try it: interactive demo

Live demo

Price and cost.

Margin · Markup

Variations

Markup

Over cost:

=(price - cost) / cost

Price from margin

Target margin:

=cost / (1 - target_margin)

Markup to margin

Convert:

=markup / (1 + markup)

Pitfalls & errors

Different bases. Margin uses price, markup uses cost — the same dollar profit gives two different percentages.

Margin < markup. A 50% markup is only a 33% margin — never interchange them.

Don’t divide by zero. A zero price or cost breaks the respective formula.

Practice workbook

📊
Download the free Margin vs Markup (and Converting Between) practice workbook
A margin-vs-markup sheet with the markup, price-from-margin, and conversion variants, plus 4 challenges with answers. No sign-up required.

Frequently asked questions

What's the difference between margin and markup in Excel?
Margin = (price - cost)/price (profit over price); markup = (price - cost)/cost (profit over cost). A 50% markup equals a 33% margin.
How do I price for a target margin?
Use =cost / (1 - target_margin). For a 30% margin on $70 cost, price = 70 / 0.70 = $100.
How do I convert markup to margin?
Use =markup / (1 + markup); to go the other way, =margin / (1 - margin).

Stop fighting formulas. Learn them in a day.

This recipe is one of hundreds of real-world formulas we teach. Our Excel Formulas & Functions class covers lookups, logic, text, and dynamic arrays hands-on — live in Dallas–Fort Worth, Houston, Austin, Oklahoma City, Denver, or online.

See the Formulas & Functions Class

Related formulas: Profit margin & markup · Markup chain · Discount markdown pricing