Skip to content

Profit Margin and Markup Calculator

Enter a cost price and a selling price to see gross profit, margin and markup side by side, then set a target margin to get the price you need to charge.

Runs in your browserFree, no sign-upLast reviewed

Settings

Results update automatically as you type.

Per unit

Gross profit
400.00
Profit margin
40%
profit ÷ price
Markup
66.67%
profit ÷ cost

Across 1 units

Revenue
1,000.00
Total cost
600.00
Total profit
400.00

Quick answers

What is the difference between margin and markup?
Margin is profit as a percentage of the selling price. Markup is profit as a percentage of the cost. An item bought for 100 and sold for 150 has a profit of 50, which is a 50% markup but only a 33.33% margin. Markup is always the bigger number when there is a profit.
Is a 30% markup the same as a 30% margin?
No. Adding a 30% markup to a cost of 100 gives a price of 130 and a margin of 23.08%. To earn a true 30% margin on a cost of 100 you must charge 142.86, which is a 42.86% markup.
How do I calculate the selling price for a 30% margin?
Divide the cost by 0.70. In general, selling price = cost ÷ (1 − margin ÷ 100). A cost of 70 needs a price of 100, and a cost of 100 needs a price of 142.86.
How do I calculate profit margin from cost and selling price?
Subtract cost from selling price to get the profit, divide by the selling price and multiply by 100. With a cost of 600 and a price of 1,000: (1,000 − 600) ÷ 1,000 × 100 = 40%.
What markup gives a 50% margin?
A 100% markup. Doubling the cost means half of the selling price is profit. A cost of 100 sold at 200 gives a profit of 100, a 100% markup and a 50% margin.
How do I convert markup to margin?
Margin = markup ÷ (100 + markup) × 100. A 25% markup is 25 ÷ 125 = 20% margin. To go the other way, markup = margin ÷ (100 − margin) × 100, so a 40% margin is 40 ÷ 60 = 66.67% markup.

Why use Profit Margin Calculator

Margin and markup describe the same profit against different bases. Margin is profit divided by the selling price; markup is profit divided by the cost. Buy at 600 and sell at 1,000 and the profit is 400, which is a 40% margin and a 66.67% markup. This calculator shows both figures for any cost and price, scales revenue, cost and profit across the number of units sold, and works backwards from a target margin to the selling price that delivers it. It also flags a sale below cost. All figures are gross: they cover the direct cost you enter and nothing else.

Margin to markup chart: the selling price for each target margin

Each row is the calculator's target margin result for a cost of 100. Multiply your own cost by the last column to get the price for that margin.

Target marginEquivalent markupSelling price on a cost of 100Multiply cost by
10%11.11%111.111.1111
15%17.65%117.651.1765
20%25%125.001.25
25%33.33%133.331.3333
30%42.86%142.861.4286
35%53.85%153.851.5385
40%66.67%166.671.6667
45%81.82%181.821.8182
50%100%200.002
60%150%250.002.5
70%233.33%333.333.3333
75%300%400.004
80%400%500.005

Margin can never reach 100% while the cost is above zero, which is why the multiplier climbs so steeply past 70%.

Markup to margin chart: what a markup on cost really earns

If you price by adding a percentage to cost, this is the margin you end up with. Values are for a cost of 100.

Markup on costSelling priceGross profitResulting margin
10%110.0010.009.09%
15%115.0015.0013.04%
20%120.0020.0016.67%
25%125.0025.0020%
30%130.0030.0023.08%
40%140.0040.0028.57%
50%150.0050.0033.33%
60%160.0060.0037.5%
75%175.0075.0042.86%
100%200.00100.0050%
150%250.00150.0060%
200%300.00200.0066.67%
300%400.00300.0075%

Margin, markup and target price formulas

Gross profit = Selling price − Cost Margin % = Gross profit ÷ Selling price × 100 Markup % = Gross profit ÷ Cost × 100 Price for a target margin = Cost ÷ (1 − Target margin ÷ 100)

The first three lines are what the Per unit panel reports. The last line is the target margin note: a cost of 18 with a 40% target gives 18 ÷ 0.60 = 30.00. The common mistake is to multiply the cost by 1.40 instead, which gives 25.20 and a margin of only 28.57%. Dividing by (1 − margin) is the only way to land on a margin exactly, because margin is measured against the price you have not set yet.

Worked examples: retail, wholesale and pricing to a target

Retail item sold in volume

Cost price 12.50, Selling price 19.99, Target margin 50%, Units sold 250

Gross profit 7.49, Profit margin 37.47%, Markup 59.92%. Across 250 units: Revenue 4,997.50, Total cost 3,125.00, Total profit 1,872.50. Price for a 50% margin: 25.00

A markup just under 60% looks healthy, yet the margin is below 40%. Reaching 50% would take a price of 25.00.

Wholesale order that falls short of the goal

Cost price 38, Selling price 55, Target margin 35%, Units sold 40

Gross profit 17.00, Profit margin 30.91%, Markup 44.74%. Across 40 units: Revenue 2,200.00, Total cost 1,520.00, Total profit 680.00. Price for a 35% margin: 58.46

Menu item priced from ingredient cost

Cost price 4.20, Selling price 12, Target margin 65%, Units sold 1800

Gross profit 7.80, Profit margin 65%, Markup 185.71%. Across 1,800 units: Revenue 21,600.00, Total cost 7,560.00, Total profit 14,040.00

The target price note returns 12.00, confirming the current price already sits exactly on a 65% margin.

Clearance price below cost

Cost price 80, Selling price 70, Units sold 10

Gross profit -10.00, Profit margin -14.29%, Markup -12.5%. Across 10 units: Total profit -100.00, with a Selling at a loss warning

What a discount does to your margin

A price cut comes straight out of profit, because the cost does not move. At a cost of 60 and a price of 100 the margin is 40%. Take 10% off the price and you sell at 90: profit drops from 40 to 30, the margin falls to 33.33%, and you need to sell a third more units just to earn the same total profit. Take 20% off and profit halves to 20, a 25% margin.

To test a promotion, enter the discounted figure as the Selling price and the expected volume in Units sold, then compare Total profit with the full-price run. The thinner the starting margin, the more a small discount hurts: at a 20% margin, a 10% price cut removes half of the profit on every sale.

Limits to know before you rely on the numbers

  • It is a gross margin tool. Rent, wages, marketing, card fees, returns and tax are not deducted unless you fold them into the cost price yourself.
  • It does not calculate net or operating margin, and it has no field for overheads.
  • Target margin accepts values up to 99%. The price it suggests depends only on the cost, not on the selling price you typed.
  • With a cost price of 0, markup is shown as 0% because a percentage of zero cost is undefined; margin shows 100%.
  • Units sold is rounded down to a whole number, and one price is applied to every unit, so tiered or volume pricing needs a separate run per tier.
  • Money amounts are plain numbers to two decimals with no currency symbol, so they work in any currency. Percentages are rounded to at most two decimals.

How to get your result

  1. 1

    Enter the Cost price: what one unit costs you to buy or make, including freight, duty and packaging if you want them counted.

  2. 2

    Enter the Selling price per unit, before sales tax, VAT or GST.

  3. 3

    Read Gross profit, Profit margin and Markup in the Per unit panel.

  4. 4

    Enter Units sold to see Revenue, Total cost and Total profit for a batch, an order or a month.

  5. 5

    To price for a goal, type a percentage in Target margin (optional). A note shows the selling price per unit that reaches it at your cost.

Frequently asked questions

Why is markup always higher than margin?
Both use the same profit, but markup divides it by the cost and margin divides it by the selling price. Whenever there is a profit the price is larger than the cost, so dividing by the price always produces the smaller percentage.
What is a good profit margin?
There is no single figure. Gross margins differ widely between sectors: high-volume grocery runs on thin margins, while software and many services carry very high ones because the direct cost per sale is low. Compare against businesses of your own type and size, and remember that overheads still come out of gross profit.
Is this gross margin or net margin?
Gross margin. The calculator subtracts only the cost price you enter from the selling price. Net margin would also take off operating expenses, interest and tax, which this tool does not ask for.
Should I enter prices with or without sales tax?
Without. VAT, GST or sales tax collected from the customer is passed on to the tax authority and is not your revenue. Enter the cost and the selling price net of recoverable tax so the margin reflects money you keep.
What should I include in the cost price?
Everything that rises with each unit sold: the purchase or materials cost, inbound shipping, import duty, packaging and direct labour. Many sellers also add per-sale payment and marketplace fees so the margin shown is closer to what reaches the bank.
How do I calculate a 20% profit margin on a cost?
Divide the cost by 0.80. A cost of 100 becomes a price of 125.00, giving a profit of 25, a 25% markup and a 20% margin. Enter 20 in Target margin and the calculator does this for any cost.
Can profit margin be negative?
Yes. If the selling price is below the cost, profit, margin and markup are all negative and the calculator adds a Selling at a loss warning. A cost of 80 sold at 70 gives a margin of -14.29%.
Does the target margin change the other results?
No. Gross profit, margin and markup always describe the cost and selling price you typed. The target margin only adds a separate note with the price per unit that would hit your goal, so you can compare it with what you charge now.

Looking for something else? Browse all calculators or see every tool.