Margin Calculator

Get the profit margin and markup from what an item costs and what it sells for, or the price to charge for the margin you want.

Find
MarginSelling priceCost
Currency
Cost
$

What one item costs you to buy or make.

Selling price
$
40%profit margin

Selling for $100.00 what costs $60.00 is a 40% margin and a 66.67% markup, $40.00 profit each.

Where the selling price goes

Working

  1. Profit = 100 − 60 = 40
  2. Margin = 40 ÷ 100 × 100 = 40%
  3. Markup = 40 ÷ 60 × 100 = 66.67%

Details

Profit per unit
$40.00
Margin
40%
Markup
66.67%
Cost
$60.00
Selling price
$100.00
Units sold

Adds totals for this many items under the answer.

VAT, GST or sales tax
%

Margin is worked out on the price before tax, since the tax is not yours to keep.

Margin to markup chart

Margin to markup chart, with the price for each margin
MarginMarkupPrice on a cost of $60
5%5.26%$63.16
10%11.11%$66.67
15%17.65%$70.59
20%25%$75.00
25%33.33%$80.00
30%42.86%$85.71
35%53.85%$92.31
40%66.67%$100.00
45%81.82%$109.09
50%100%$120.00
55%122.22%$133.33
60%150%$150.00
65%185.71%$171.43
70%233.33%$200.00
75%300%$240.00
80%400%$300.00
85%566.67%$400.00
90%900%$600.00

Your 40% margin is marked. Markup = margin ÷ (100 − margin) × 100, so the gap between the two grows fast past a 50% margin.

Type a cost and a price and the margin, markup and profit per unit appear at once, with the working written out in your own numbers.

No sign-up and nothing saved: the costs and prices you type stay in this browser tab, so supplier prices never leave your device.

  • Margin, markup and price
  • Gross, operating and net margin
  • Margin to markup chart

How to calculate profit margin

Two numbers give the margin; a target margin gives the price you need to charge.

  1. Enter cost and price

    Type what one item costs you and what you sell it for. The margin calculator answers as you type, no button.

  2. Read margin and markup

    The margin shows large, with the markup and profit beside it. Working lists each step of the sum to check it.

  3. Set a target margin

    Switch Find to Selling price, type the margin you want and the cost, and read the price that gets you there.

The profit margin formula

Profit margin = (selling price − cost) ÷ selling price × 100. It tells you how much of every sale you keep. An item that costs 60 and sells for 100 earns 40 of profit, so the margin is 40 ÷ 100 = 40%: 40 cents of each dollar taken.

The gross margin formula is the same sum for a whole business: revenue minus the cost of goods sold, divided by revenue. Sales of 500,000 with 300,000 of goods sold leave 200,000 of gross profit, a 40% gross profit margin.

A margin reaches 100% only when an item costs nothing, so real margins stay under it. Selling below cost gives a negative margin: buying at 60 and selling at 50 loses 10, a margin of −20%. The calculator shows a loss in red and says so in words.

Markup vs margin: what changes

Margin and markup start from the same profit but divide it by different numbers. Margin divides by the selling price; markup divides by the cost. The 40 of profit on a 60 cost and a 100 price is a 40% margin and a 66.67% markup on cost.

So the markup formula is (price − cost) ÷ cost × 100, and markup is always the larger figure. To turn a margin into a markup, divide it by what is left: 40% ÷ (1 − 40%) = 66.67%. A 50% margin is a 100% markup, which is why doubling the cost is called keystone pricing.

Mixing the two up loses money. A shop that adds a 30% markup expecting a 30% margin really keeps 23.08%. The margin to markup chart under the calculator lists both side by side from 5% to 90%, with your own margin marked in the table.

How to calculate selling price

To hit a target margin, divide the cost by what the margin leaves: selling price = cost ÷ (1 − margin). For a 40% margin on an item that costs 60, that is 60 ÷ 0.6 = 100. Retailers and wholesalers use this to set a price list from supplier costs.

Adding the margin to the cost gives the wrong price: 60 × 1.4 = 84, and 84 earns only a 28.57% margin. That shortcut is a markup, so it works only when you mean markup: a 50% markup on 60 is 90, which is a 33.33% margin.

Prices with VAT, GST or sales tax need the tax taken out first, since it belongs to the tax office. At 20% VAT, a 120 shelf price is 100 before tax, so a 60 cost earns a 40% margin, not 50%. Type the rate in the VAT, GST or sales tax box.

Gross margin vs net margin

Gross margin counts only what the goods cost. Operating margin also takes off running costs such as rent, wages and marketing. Net margin takes off everything, interest and tax included, so it is the share of sales that ends up as profit.

Take a business with 500,000 of sales and 300,000 of goods sold: gross margin 40%. With 120,000 of operating costs, operating profit is 80,000, a 16% operating margin. After 10,000 of interest and 17,500 of tax, net profit is 52,500, a net margin of 10.5%.

The net profit margin formula is net profit ÷ revenue × 100. EBITDA margin adds depreciation and amortization back onto operating profit: with 20,000 of it in operating costs, EBITDA is 100,000, a 20% margin. The Business margins tab works out all four.

A margin and markup calculator

  • Gross margin calculator

    Gross margin, markup and profit from a cost and a selling price; selling below cost shows the loss.

  • Selling price calculator

    The price to charge for a target margin, or the highest cost that still keeps the margin at a price.

  • Markup calculator

    Add a markup percentage to any cost to get the price, and see the margin that markup really gives.

  • Net profit margin

    Revenue and costs give gross, operating, net and EBITDA margin together, with each profit in money.

  • Margin with VAT or tax

    Type a price with VAT, GST or sales tax and the margin is worked out on the price before the tax.

  • Margin to markup chart

    Margins from 5% to 90% beside the markup each one needs, your own margin marked, ready to copy out.

Your prices stay private

Costs and selling prices are business secrets. This page works them out on your device and keeps no copy.

  • Processing

    This margin calculator online runs in your browser, and each margin and price is worked out there.

  • Storage

    Nothing you type is saved. Reload or close the tab and your costs, prices and business figures go.

  • Account

    A free margin calculator with no account, no email and no limit on how many prices you work through.

Questions about margin and markup

What is profit margin?

The share of a selling price that is profit, as a percentage. Selling for 100 what cost 60 is a 40% profit margin.

What is a good profit margin?

For net margin, about 10% is often called average, 20% strong and 5% low. It varies a lot by industry, so compare like with like.

What is gross margin?

Revenue minus the cost of goods sold, as a share of revenue. It ignores rent, wages and tax, which net margin takes off.

How do I calculate markup percentage?

Take the profit, divide it by the cost and multiply by 100. A cost of 60 sold at 90 is (90 − 60) ÷ 60 × 100 = a 50% markup.

How to calculate profit percentage?

In school maths, profit ÷ cost price × 100. CP ₹800 and SP ₹1,000 give 25% profit; on the selling price it is a 20% margin.

What is keystone pricing?

Setting the price at double the wholesale cost: an item bought for 25 sells for 50, a 100% markup and a 50% margin.

What is the Excel formula for profit margin?

With cost in A2 and price in B2, =(B2-A2)/B2 gives the margin; format it as a percent. =A2/(1-C2) is the price for margin C2.

What is net profit margin?

Net profit after every cost, interest and tax, divided by revenue. 52,500 left from 500,000 of sales is a 10.5% net margin.

Still stuck, or found a problem? Email dobliquestudio@gmail.com and we will help.