Business & SaaS

Markup ↔ Margin Calculator

What this does

Convert between markup on cost and gross margin on price in either direction, with the implied selling price or unit cost shown alongside.

Enter your details

Runs in your browser

Calculator inputs

Unit cost for markup mode, selling price for margin mode.

Using the markup ↔ margin calculator

  1. 01

    Pick the direction

    Choose which percentage you already know: markup on cost, or margin on price.

  2. 02

    Enter the known percentage

    Use the figure from your quote, spreadsheet or supplier sheet.

  3. 03

    Optionally anchor an amount

    Add a unit cost or selling price to see the actual dollars behind the conversion.

Where the confusion costs money

Suppose you want to earn a 40% margin and your cost is $60. Guessing “add 40%” yields $84; a real margin of just 28.6%. The correct answer is $100, because a 40% margin requires a 66.7% markup. Teams that standardize on margins internally but buy based on markups (or vice versa) leak margin on every misread contract.

Quick mental anchors

  • 25% markup ≈ 20% margin.
  • 50% markup = 33.3% margin.
  • 100% markup = 50% margin; the famous “keystone” retail rule.

Notice margin is always smaller than markup for the same transaction; if your two numbers disagree about which is bigger, they were measured on different bases.

The math behind this calculator

Margin = Markup / (1 + Markup) Markup = Margin / (1 − Margin)

Markup divides profit by cost; margin divides the same profit by selling price. Because cost plus markup equals price, the two are linked by the algebra above; never by subtracting or adding a fixed amount. The conversion works identically in reverse, which is why one input field serves both directions.

Assumptions & limitations

  • Percentages refer to a single product’s unit economics.
  • The optional amount anchors the conversion to real prices for context.
  • Margins of 100% or more cannot exist; selling at zero margin-free price is impossible.

Worked example

A 50% markup on a $100 unit cost means selling at $150; which is only a 33.33% gross margin on that price.

Frequently asked questions

Which should my business use?
Finance teams prefer margin because it maps to income statements; buyers and merchandisers traditionally use markup. Know both, and always ask which basis a quoted percentage uses.
Can margin exceed 100%?
Never; a 100% margin would mean acquiring goods for free. If a calculation suggests otherwise, the percentage was actually a markup.
Does this work for services?
Yes. Treat contractor or delivery cost as “cost” and your client fee as the selling price; the algebra is identical.

Related calculators