Profit Margin and Markup Calculator

Choose what you want to work out. Enter the cost and selling price to see your profit or loss, markup and margin; or enter the cost and the markup or margin you want to get the selling price. Add a quantity to see the total profit.

Number of items sold, to see the total profit (optional).
Profit per item£200.00
Markup (on cost)
25%
Gross margin (on price)
20%
  • Markup divides profit by cost; margin divides it by the selling price. So margin is always lower than markup for the same sale (25% markup = 20% margin).
  • Enter amounts excluding VAT. If you are working from VAT-inclusive prices, remove the VAT first with the VAT calculator.
MarkupSelling priceMargin
10%£880.009.09%
20%£960.0016.67%
25%£1,000.0020%
30%£1,040.0023.08%
40%£1,120.0028.57%
50%£1,200.0033.33%
75%£1,400.0042.86%
100%£1,600.0050%

Last checked: November 20, 2026

Add this calculator to your website (free)

Paste the code below into your page's HTML. The calculator stays up to date automatically and your visitors never leave your site.

Profit, markup and margin explained

Profit = Selling price − Cost. If the result is negative you are making a loss.

Markup = Profit ÷ Cost × 100: how much you add on top of what the item cost you.

Gross margin = Profit ÷ Selling price × 100: how much of every £100 taken is profit.

Formulas

You wantFormula
Profit / lossPrice − Cost
Markup(Price − Cost) ÷ Cost × 100
Margin(Price − Cost) ÷ Price × 100
Price from markupCost × (1 + Markup ÷ 100)
Price from marginCost ÷ (1 − Margin ÷ 100)
Markup to marginMarkup ÷ (100 + Markup) × 100

Example 1: Profit and percentages

Item bought for £80 and sold for £100

Profit = 100 − 80 = £20

Markup = 20 ÷ 80 × 100 = 25%

Margin = 20 ÷ 100 × 100 = 20%

Selling 50 items gives a total profit of £1,000

Example 2: Price for a target margin

Cost £45, target margin 40%

Selling price = 45 ÷ (1 − 0.40) = 45 ÷ 0.60 = £75

Profit £30; markup = 30 ÷ 45 ≈ 66.67%

Wrong method: 45 × 1.40 = £63 — that is a 40% markup, giving only a 28.57% margin.

Common mistakes

  • Mixing up markup and margin: a 50% markup is a 33.3% margin; a 50% margin needs a 100% markup.
  • Comparing a VAT-inclusive price with a VAT-exclusive cost: VAT is not your profit; use both amounts without VAT.
  • Forgetting overheads: postage, marketplace fees, packaging and advertising all reduce the real profit.
  • Discounting away the margin: a 20% discount on a product with a 20% margin wipes out the profit.

How to use the profit margin calculator

  • Step 1 – choose the mode in What do you want to work out?: Profit / loss when you already know your cost and selling price; Selling price from a target markup; or Selling price from a target margin.
  • Step 2 – enter the cost in Cost per item: what one unit costs you, excluding VAT if you are VAT-registered.
  • Step 3 – enter the price or the target. Fill in Selling price per item, or Target markup (on cost), or Target gross margin (of selling price), depending on the mode.
  • Step 4 – add a quantity (optional). Enter the number of items in Quantity. When it is more than 1 you also see the total profit (or loss) and total sales for the batch.
  • Step 5 – read the results and the table. You get the profit or loss per item, the markup and the gross margin. The table under the results shows the selling price and margin for markups of 10%, 20%, 25%, 30%, 40%, 50%, 75% and 100% on your cost.

Example 3: price from a markup, for a batch

Cost £12.40 per item, 60% markup, 250 items

Selling price = 12.40 × (1 + 60 ÷ 100) = 12.40 × 1.60 = £19.84

Profit per item = 19.84 − 12.40 = £7.44

Gross margin = 7.44 ÷ 19.84 × 100 = 37.5% (the same as 60 ÷ 160 × 100)

Total profit = 7.44 × 250 = £1,860.00; total sales = 19.84 × 250 = £4,960.00

Example 4: a VAT-inclusive price and a loss

A VAT-registered seller: shelf price £36 including 20% VAT, cost £18 excluding VAT

Remove the VAT first: 36 ÷ 1.2 = £30 selling price excluding VAT

Profit = 30 − 18 = £12; markup = 12 ÷ 18 × 100 = 66.67%; margin = 12 ÷ 30 × 100 = 40%

Wrong method: using £36 would show £18 profit and a 50% margin, but £6 of that is VAT that goes to HMRC.

A loss: cost £25, sold for £22. The calculator shows a loss of £3.00 per item, a markup of −12% and a margin of −13.64%.

Edge cases and limits

  • Margin must be below 100%. A margin is a share of the selling price, so it cannot reach 100%: the whole price would have to be profit with zero cost. Markup has no such limit; a 150% markup simply means selling at 2.5 times cost.
  • Rounding. The selling price is rounded to the nearest penny first, and the profit, markup and margin are worked out from that rounded price. Percentages are shown to two decimal places.
  • Quantity must be a whole number of 1 or more. Leave it at 1 to see figures per item only.
  • Gross profit only. The result is the difference between the selling price and the cost you enter. For a self-employed business, HMRC works out taxable profit by deducting allowable expenses, such as stock, advertising and office costs, from turnover, so add a share of your running costs to the cost per item if you want a fuller picture.

Sources

Frequently asked questions

How do I calculate profit margin?

Divide profit (price − cost) by the selling price and multiply by 100. Selling for £100 something that cost £80 gives a 20% margin.

What is the difference between markup and margin?

Markup is profit as a percentage of cost; margin is profit as a percentage of the selling price. 25% markup equals 20% margin, and 100% markup equals 50% margin.

What price gives a 30% margin?

Divide the cost by 0.70. An item costing £70 needs to sell for £100 for a 30% margin.

How do I work out a loss percentage?

Take the selling price away from the cost and divide by the cost. Bought for £120 and sold for £105 is a loss of 15 ÷ 120 × 100 = 12.5%.

How do I convert a margin into a markup?

Use Markup = Margin ÷ (100 − Margin) × 100. A 40% margin needs a 66.67% markup, and a 50% margin needs a 100% markup.

Why doesn't the calculator show a total profit?

Totals appear only when Quantity is more than 1. Enter the number of items you expect to sell to see the total profit (or loss) and the total sales.

Can the margin be 100% or more?

No. Margin is profit as a share of the selling price, so it is always below 100%. Markup, measured against cost, can be any size, for example 200%.

Work with prices excluding VAT for both cost and selling price. Leave out overheads such as rent, postage or platform fees and your real profit will be lower than shown.

More calculators

Search calculators

Report a problem or send feedback

Nothing is sent automatically. You review the message and send it yourself by e-mail.

What kind of message is it?
Details that will be included

Only the items below are added. The numbers you typed into a calculator are never included.

No mail app? Write to us at hello@calcavi.com