Margin and Markup Calculator

Enter any two of cost, selling price, margin % or markup %. The calculator works out the rest, plus the profit. It runs in your browser.

What do you know?

Gross margin
40.00%
profit ÷ selling price
Markup
66.67%
profit ÷ cost
Selling price
$100.00
Cost
$60.00
Profit
$40.00
price minus cost

Convert between margin and markup

30% margin equals
42.86% markup
30% markup equals
23.08% margin

How to use the margin and markup calculator

  1. Choose which two values you already know.
  2. Enter them. The margin, markup, price, cost and profit update as you type.
  3. Use the converter to turn a target margin into the markup you need to charge.

The formulas

  • Margin % = (price − cost) ÷ price × 100
  • Markup % = (price − cost) ÷ cost × 100
  • Price from margin = cost ÷ (1 − margin %)
  • Price from markup = cost × (1 + markup %)

Margin is always lower than markup for the same sale, so a 25% markup is only a 20% margin. This gives gross margin. Overheads and tax are not included unless you add them to the cost.

Related tools

To work out a sale price use the discount calculator. To compare two prices use the percentage change calculator.

See also

Frequently Asked Questions (FAQ)

What is the difference between margin and markup?

Both measure profit, but against different bases. Margin is profit divided by the selling price. Markup is profit divided by the cost. Selling something for 100 that cost 60 gives a 40% margin and a 66.7% markup.

How do I calculate gross margin?

Gross margin % = (price - cost) / price x 100. With a price of 100 and a cost of 60, that is 40 / 100 = 40%.

How do I calculate markup?

Markup % = (price - cost) / cost x 100. To set a price from a markup, use price = cost x (1 + markup %). A cost of 80 with a 25% markup gives a price of 100.

How do I find the price for a target margin?

Divide the cost by (1 - margin). To get a 30% margin on a cost of 70, the price is 70 / 0.70 = 100. Multiplying the cost by 1.30 would only give a 23.1% margin.

Why is 50% markup not 50% margin?

A 50% markup adds half the cost on top, so a cost of 100 sells for 150 and the margin is 50 / 150 = 33.3%. A 50% margin needs a 100% markup.

Can margin be over 100%?

No. Profit can never be more than the selling price, so margin stays below 100%. Markup can go above 100%, for example a cost of 10 sold at 40 is a 300% markup and a 75% margin.

Is this net profit margin?

No. It works from the cost and price you enter, so it gives gross margin. Net profit margin also subtracts overheads, tax and other expenses, which you would need to include in the cost.

Is my data saved or sent anywhere?

No. Everything is calculated in your browser and nothing is uploaded.