Margin & Markup Calculator

: Enter any two of cost, price, profit, margin or markup and get the rest, with margin to markup conversion
Any two of these
Enter any two: the other three are worked out, and the two you edited last are the ones used. Amounts are plain numbers in any currency, in whole cents; use a negative profit or percentage for a loss. Gross figures only: no tax, VAT or fixed costs.
Result
Cost
80.00
Selling price
100.00
Profit
20.00
Gross margin
20.00%
Markup
25.00%
In words
A 20.00% margin is a 25.00% markup.
Margin to markup
MarginMarkup
10.00%11.11%
15.00%17.65%
20.00%25.00%
25.00%33.33%
30.00%42.86%
33.33%49.99%
40.00%66.67%
50.00%100.00%
60.00%150.00%

Enter any two of cost, selling price, profit, gross margin and markup, and the other three are worked out. Margin and markup are easy to mix up because both start from the same profit but divide by different amounts; the result shows both, plus the conversion between them, so you can price a product or check a quote.

  1. Type any two values into Cost, Selling price, Profit, Gross margin % or Markup %.
  2. The other three fields fill in and are marked calculated. The two fields you edited last are the ones used, so typing a third value replaces the older of your two.
  3. To find a price from a cost and a margin, enter the Cost and Gross margin %. To go the other way, enter the Selling price and the Cost.
  4. Read the five figures and the line that converts margin to markup. Use Copy all or Download (CSV or text) to take them elsewhere, or Clear to start again.

A product that costs 80.00 and sells at 100.00, then the same cost priced for a 40% margin. Margin is measured on the price and markup on the cost, so the same 20.00 profit is a 20% margin but a 25% markup.

Input
Cost: 80.00
Selling price: 100.00
Output
Profit:               20.00
Gross margin:         20.00%
Markup:               25.00%
Conversion:           A 20.00% margin is a 25.00% markup.

Cost 80.00 at a 40% margin: price 133.33, markup 66.66%
Cost 80.00 at a 40% markup: price 112.00, margin 28.57%

What is the difference between margin and markup?

Margin is profit as a share of the selling price; markup is profit as a share of the cost. The same sale can be both: a cost of 80.00 sold at 100.00 gives the result "A 20.00% margin is a 25.00% markup."

How do I convert markup to margin?

Divide the markup by 1 plus the markup: a 50% markup is 0.5 ÷ 1.5, a 33.33% margin. Type the markup alone and the margin is shown at once; add any cost or price to get the amounts too.

How do I find the selling price from cost and margin?

Enter the Cost and the Gross margin %. The price is cost ÷ (1 − margin): a cost of 60.00 at a 25% margin sells for 80.00. Adding 25% to the cost would give 75.00, which is only a 20.00% margin.

Why can't margin be 100%?

A 100% margin means the whole price is profit, which needs a cost of zero. Above 100% the cost would be negative, so the tool rejects it. Markup has no such limit.

What is the formula for gross profit margin?

(selling price − cost) ÷ selling price × 100. With a price of 100.00 and a cost of 80.00 that is 20.00 ÷ 100.00, 20.00%.

Runs entirely in your browser. Nothing is uploaded.