Skip to content
cliplimeClipLime

Margin calculator

Profit as a share of the selling price, with the matching markup and every step shown.

Margin, profit and markup

Know two of cost, price and margin, and see the rest.

What it costs you

What the customer pays

Enter the cost and the selling price to see the margin and the markup.

These results are estimates for information only and are not financial or tax advice. Check prices, costs and tax with your own records or a qualified adviser before you rely on them.

At a glance

What it does
Works out gross margin from a cost and a selling price, finds the selling price for a margin you want, or the cost behind a price and margin.
Margin formula
Margin = (price − cost) ÷ price × 100. A cost of 80 and a price of 100 is a 20% margin.
Also shows
The profit, and the same profit as a markup on cost: 25% for the example above. Margin and markup are never the same number unless the profit is zero.
Target margin
Price = cost ÷ (1 − margin). For a 40% margin on a cost of 60 the price is 100, not 84.
Limits
A margin can be negative (a loss) but can never reach 100%, because that would mean the cost is zero.
Working
Every answer shows its steps, so you can check it or paste it into a quote.
Privacy
Nothing is sent when you type. Your numbers are kept in the page address so a link can be shared, so a shared link carries them.
Note
Results are estimates for information only and are not financial advice.

How to do it

  1. 1

    Say what you know

    Choose Cost and price to find the margin, Cost and margin to find the price to charge, or Price and margin to find the cost you can afford.

  2. 2

    Enter the numbers

    Type the money amounts and the margin percentage. Add a currency if you want a symbol on the results.

  3. 3

    Read the margin and the markup

    The big number is the answer. Below it you see the profit, the matching markup, the price and the cost.

  4. 4

    Check the working

    Each step is written out in plain words, including the shortcut that links margin and markup.

Margin and markup: the same profit, divided by different things

Both describe the profit on a sale. Margin is the profit as a share of the selling price. Markup is the same profit as a share of the cost. Because the price is bigger than the cost, the margin is always the smaller number.

Take an item that costs 80 and sells for 100. The profit is 20. Margin = 20 ÷ 100 = 20%. Markup = 20 ÷ 80 = 25%. Same sale, two correct answers, and mixing them up is how prices end up too low.

The two convert with simple rules: margin = markup ÷ (1 + markup) and markup = margin ÷ (1 − margin), with the percentages written as decimals. Some pairs worth knowing:

  • 10% markup is a 9.09% margin, and a 10% margin needs an 11.11% markup.
  • 25% markup is a 20% margin, and a 25% margin needs a 33.33% markup.
  • 50% markup is a 33.33% margin, and a 50% margin needs a 100% markup.
  • 100% markup (doubling the cost) is a 50% margin, and a 75% margin needs a 300% markup.

If you are after a margin, use this page. If you set prices by adding a percentage to the cost, the markup calculator leads with that number instead.

How to price for a target margin

To earn a margin m on a cost, divide the cost by what is left after the margin: price = cost ÷ (1 − m). A 40% margin means the cost is 60% of the price, so a cost of 60 gives a price of 60 ÷ 0.6 = 100.

The common mistake is to multiply the cost by 1.4 instead. That is a 40% markup, and it gives a price of 84 with a margin of only 28.57%. To check a price you have already set, enter the cost and the price under Cost and price.

Working the other way, cost = price × (1 − m) tells you the most you can pay for something and still keep the margin you want. At a price of 100 and a 40% margin, the cost has to be 60 or less.

Gross margin, and why discounts hurt it

This calculator gives gross margin: the profit left after the direct cost of the item, before rent, wages, marketing and tax. Net margin takes all of those off as well, so it is smaller. Use your own accounts for net margin.

Discounts take a bigger bite out of margin than they seem to. An item that costs 80 and sells for 100 has a 20% margin. Take 10% off the price and it sells for 90, so the profit falls from 20 to 10 and the margin to 11.11%. A 10% discount cut the margin almost in half.

Questions people ask

How do I calculate profit margin?

Subtract the cost from the selling price, divide by the selling price and multiply by 100. A price of 100 and a cost of 80 gives (100 − 80) ÷ 100 × 100 = 20%.

What is the difference between margin and markup?

Both use the same profit. Margin divides it by the selling price and markup divides it by the cost. A cost of 80 and a price of 100 is a 20% margin and a 25% markup. Markup is always the larger number, and it can pass 100% while a margin cannot.

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

Divide the cost by 1 minus the margin as a decimal. For a 30% margin on a cost of 70, the price is 70 ÷ 0.7 = 100. Choose Cost and margin above and the calculator does it and shows the steps.

Why does a 30% markup not give a 30% margin?

Because markup is measured against the cost and margin against the price. A 30% markup on a cost of 70 gives a price of 91 and a profit of 21, which is a margin of 23.08%. To get a 30% margin you need a markup of 42.86%.

Can a margin be negative?

Yes. If the selling price is below the cost you make a loss, and the margin is negative. The calculator shows the loss and the negative percentage. A margin can never be 100% or more while there is any cost.

Is this gross margin or net margin?

Gross margin: it only knows the cost and the price you enter. Net margin also subtracts overheads and tax, so it needs your full accounts.

Is anything I type stored or sent?

No. Typing sends nothing anywhere: the sums run in your browser. Your numbers are also kept in the page address so that Copy link works. That means a link you share, or a page you reload, requests that address, numbers included, from our server like any web address. Share a link only if you are happy to share the numbers.