Profit margin calculator

Find the gross margin, the markup and the profit from cost and selling price, the price that gives a desired margin, or the cost behind a price and margin. Free, and it runs in your browser. It is an estimate of gross margin only: taxes, fees and other costs are not included.

How to use it

  1. Choose what to find in What do you want to find?.
  2. Fill in the fields used by that calculation: Cost, Selling price or Margin (%).
  3. Read the profit, margin, markup, price and cost below.

Formulas

Profit = price - cost. Margin % = profit / price x 100. Markup % = profit / cost x 100. Price from margin = cost / (1 - margin / 100). Cost from margin = price x (1 - margin / 100). Rounding is only applied when displaying.

Complete guide to profit margin and markup

Margin and markup are not the same thing

Pricing mistakes often start with mixing up two numbers that look alike. Margin is the profit as a share of the selling price. Markup is the profit as a share of the cost. A product bought for 60 and sold for 100 earns 40 of profit, which is a 40% margin but a 66.67% markup. Confusing them leads to prices that are too low, because a 40% markup does not give a 40% margin. This calculator shows both at once and can also work backwards, from a desired margin to the price you must charge.

The three modes

Option in What do you want to find?You provideYou get
Margin and markup, from cost and priceCost, Selling priceProfit, margin and markup
Selling price, from cost and desired marginCost, Margin (%)The price to charge, plus profit and markup
Cost, from selling price and marginSelling price, Margin (%)The maximum cost you can afford

Unused fields are ignored, and each field has a note about where it applies. The formulas are: profit = price - cost, margin = profit / price x 100, markup = profit / cost x 100, price from margin = cost / (1 - margin / 100) and cost from margin = price x (1 - margin / 100). Everything runs in your browser.

Worked examples

  1. Choose What do you want to find? = Margin and markup, from cost and price, with Cost = 60 and Selling price = 100. The tool shows Gross profit 40.00, Gross margin 40% and Markup 66.67%.
  2. Choose Selling price, from cost and desired margin, with Cost = 60 and Margin (%) = 40. The Selling price is 100.00, with the same profit and markup as above.
  3. Choose Cost, from selling price and margin, with Selling price = 100 and Margin (%) = 40. The Cost is 60.00.

To see the confusion in numbers: add a 40% markup to a cost of 60 and you sell at 84. The tool, given cost 60 and price 84, shows a Markup of 40% but a Gross margin of only 28.57%.

Tips and common mistakes

  • A margin of 100% or more is impossible when finding the price: it would need an infinite price. The tool accepts margins from 0% up to below 100% in that mode.
  • Gross margin counts only the cost you enter. Salaries, rent, advertising and taxes are not subtracted, so net profit will be lower.
  • Include every direct cost in the cost field: materials, packaging, shipping and payment fees, not just the purchase price.
  • If the cost is zero, the markup is shown as a dash because dividing by zero has no meaning.

Related tools

To learn how many units you need to cover your fixed costs, use the break-even calculator. To work out percentages quickly, try the percentage calculator, and to compare a sale price, the discount calculator.

Questions

What is the difference between margin and markup?

Margin is profit divided by the selling price. Markup is profit divided by the cost. A product that costs 60 and sells for 100 has a 40% margin and a 66.67% markup.

How do I get a price from a desired margin?

Price = cost / (1 - margin / 100). Do not just add the margin percentage to the cost, because margin is measured on the price. A 100% margin is impossible, since it would need an infinite price.

Is this net margin?

No, it is gross margin: only price minus cost. Taxes, commissions, shipping, payment fees and overhead are not included, and rules vary by country.

Why does markup show a dash?

When the cost is zero, markup is undefined because it would divide by zero.