Profit Margin Calculator

Work out gross profit margin and markup from a cost and a selling price, or find the price you need to reach a target. It is free, takes a few seconds and runs in your browser, so your costs are never uploaded.

Profit Margin CalculatorPrivate · runs on your device
Your numbers
Results

Fill in the numbers on the left. Results update as you type.

How to use the profit margin calculator

Choose what you already know, fill in the matching boxes and the missing figures appear below. Boxes that your choice does not need are simply ignored, so you can switch between the four starting points without clearing anything first. A selling price below cost is accepted and shows as a negative margin, which is a quick way to see how deep a clearance sale cuts.

  1. Under I know, pick one of four starting points: Cost and selling price, Cost and the margin I want, Cost and the markup I want or Selling price and the margin I want.
  2. Enter the Cost, which is what the item costs you to buy or make.
  3. Enter the Selling price if you chose the first or last option.
  4. Enter the Margin or markup wanted (%) if you are working towards a target.
  5. Set the Currency symbol, then read the margin, markup, gross profit and price, plus a table that converts common markups into margins.

Margin and markup are not the same thing

Both describe profit, but they divide by different numbers. Margin = (price - cost) / price is the share of the selling price you keep. Markup = (price - cost) / cost is how much you add on top of cost. To set a price, use price = cost x (1 + markup) or price = cost / (1 - margin).

With a cost of 60 and a price of 100, profit is 40.00, margin is 40.00% and markup is 66.67%. The same item with a 25% markup sells for 75, which is only a 20.00% margin. Working backwards, a selling price of 100 with a 30% margin means a cost of 70 and a markup of 42.86%. Mixing the two up is the most common pricing error: adding 30% to cost does not give a 30% margin.

Which one you quote depends on who is listening. Shops and wholesalers often talk in markup because it is easy to apply to a cost list, while accountants and investors usually report margin because it shows how much of each sale is left after the goods are paid for. When a supplier says they work to a 50% margin and you assume 50% markup, your prices will be a quarter lower than theirs.

Markup to margin conversion table

The calculator prints this table so you can translate between the two ideas quickly. The margin is always smaller than the markup and can never reach 100%, because the cost has to come out of the price.

Markup on costEquals a margin of
10%9.1%
20%16.7%
25%20.0%
30%23.1%
50%33.3%
100%50.0%

A 100% markup, which doubles your money, is only a 50% margin. The result panel also shows that doubling price directly.

Read the table in either direction. If a competitor appears to keep a 33% margin, you know their markup is about 50%, so a 12 item costs them roughly 8. If you want a 40% margin, the table shows that a markup of 50% falls short, and you need about 67%. Between rows, you can enter the exact figure with the Cost and the markup I want option and compare the margin it prints.

What gross margin does not include

These are gross figures: they stop at price minus cost. Rent, wages, marketing, returns, payment fees and tax all come out afterwards, so a healthy gross margin can still leave a thin net profit. The tool does not round prices to charm points such as 9.99 or add sales tax; for that, use the VAT and sales tax calculator.

The output is an estimate for general information and is not financial or tax advice.

Quick answers

Frequently asked questions

The questions people ask most, answered in plain words.

How do you calculate profit margin?

Subtract cost from the selling price, divide by the selling price and multiply by 100. If an item costs 60 and sells for 100, the profit is 40 and the margin is 40 / 100 = 40%. Margin is always measured against the price, not the cost.

What is the difference between margin and markup?

Margin is profit as a percentage of the selling price, while markup is profit as a percentage of cost. The same sale can be a 20% margin and a 25% markup. Markup is always the larger number, and the gap widens as the percentages rise.

How do I find the selling price for a target margin?

Divide the cost by one minus the margin written as a decimal. For a cost of 60 and a 40% margin, the price is 60 / 0.60 = 100. Choose Cost and the margin I want in this calculator and it gives the price directly.

Can a profit margin be 100%?

No. A margin is a share of the selling price, so it must stay below 100%, and only a free item would come close. The calculator warns you if you enter 100 or more as a target margin. A markup can exceed 100% without any problem.

Is gross margin the same as net profit?

No. Gross margin only subtracts the direct cost of the item from its price. Net profit also subtracts overheads, wages, fees, returns and tax, so it is lower. Use this figure to check pricing, then compare it with your full running costs.