Margin Calculator

Find the price for a target margin

Margin Calculator

By Dr. Meilin Zhou, Senior Education Advisor, Percentage Calculators Hub · How we check our answers

Use this margin calculator to find your gross profit margin from what an item costs you and what you sell it for. It also gives the profit in money and the matching markup, so you can compare the two.

Already know the margin you want? Use the second calculator to find the selling price that gives that margin on your cost.

Formula

Gross profit = revenue − cost

Gross margin % = (revenue − cost) ÷ revenue × 100

Selling price for a target margin = cost ÷ (1 − margin % ÷ 100)

Markup % = (revenue − cost) ÷ cost × 100

How to use this calculator

  1. Enter your numbers in the boxes on the calculator.
  2. Press Calculate. The answer appears straight away, with every step of the working.
  3. Press Clear to start again.

Worked examples

A product costs $60 and sells for $100

  1. Gross profit: 100 − 60 = $40
  2. Margin: 40 ÷ 100 × 100 = 40%
  3. Markup: 40 ÷ 60 × 100 = 66.67%

What price gives a 25% margin on a $30 cost?

  1. Price: 30 ÷ (1 − 0.25) = 30 ÷ 0.75 = $40
  2. Check: profit 40 − 30 = $10, and 10 ÷ 40 = 25%
  3. Adding 25% to the cost ($37.50) would only give a 20% margin

Margin, markup and price for a $100 cost

Gross marginEqual markupSelling priceGross profit
10%11.11%$111.11$11.11
20%25%$125$25
25%33.33%$133.33$33.33
30%42.86%$142.86$42.86
40%66.67%$166.67$66.67
50%100%$200$100
60%150%$250$150

Margin vs markup

Margin and markup use the same profit but divide it by different numbers. Margin divides profit by the selling price; markup divides it by the cost. That is why a 50% markup is only a 33.33% margin, and a 50% margin needs a 100% markup. Margin can never reach 100%, while markup has no upper limit.

Frequently asked questions

How do you calculate profit margin?

Subtract the cost from the selling price to get the gross profit, divide the profit by the selling price and multiply by 100. Selling for $100 something that cost $60 gives (100 − 60) ÷ 100 × 100 = 40%.

What is the formula for selling price from cost and margin?

Selling price = cost ÷ (1 − margin ÷ 100). For a $45 cost and a 40% margin: 45 ÷ 0.60 = $75.

What is a good profit margin?

It depends on the industry. Grocery and retail gross margins are often 20% to 30%, while software and services can be 70% or more. Compare yourself with businesses like yours.

Is gross margin the same as net margin?

No. Gross margin only subtracts the cost of the goods sold. Net margin also subtracts overheads such as rent, wages and tax, so it is always lower.

Can margin be negative?

Yes. If you sell for less than the item cost, the profit is negative and so is the margin. Selling for $50 an item that cost $60 is a −20% margin.

More percentage calculators