Skip to content

Margin Calculator (Profit Margin & Markup)

Gross profit, margin and markup from cost and price — or the price for a target margin.

Your details

I know

What one unit costs you: purchase price, or production cost for goods you make.

$

The price before sales tax or VAT.

$

Results update as you type

Gross margin

40%

Gross profit
$40.00
Markup
66.67%

Step-by-step solution
  1. Gross profit = price − cost = $100.00 − $60.00 = $40.00
  2. Margin = profit ÷ price = $40.00 ÷ $100.00 = 40%
  3. Markup = profit ÷ cost = $40.00 ÷ $60.00 = 66.67%

This calculator gives estimates for information only. It is not financial, tax or legal advice. Check figures with a qualified professional before making decisions.

Margin and markup both describe how much you earn on a sale, but they measure it against different numbers — and mixing them up is one of the most common pricing mistakes in small business. This margin calculator handles three everyday situations:

  • You know your cost and selling price and want the gross profit, the margin and the markup.
  • You know your cost and the margin you are aiming for and need the selling price.
  • You know your cost and the markup you usually apply and want the price and the resulting margin.

All figures are per unit and before sales tax or VAT. Use it for retail pricing, quotes, menus, wholesale price lists or to check whether a supplier’s “50% margin” really is what it sounds like.

How to use this calculator

  1. Pick what you already know: Cost + price, Cost + margin or Cost + markup.
  2. Enter the cost of one unit — what you paid for it, or what it cost to produce.
  3. Enter the selling price, the target margin or the markup, depending on the mode.
  4. Read the selling price, gross profit, margin and markup. The steps show each division so you can check the work.
  5. Keep prices net of VAT. If you sell to consumers, add tax afterwards with the VAT calculator.

The formula

With cost CC and selling price PP, gross profit is G=P−CG = P - C. The two ratios divide that same profit by different bases:

Margin=P−CPMarkup=P−CC\text{Margin} = \frac{P - C}{P} \qquad \text{Markup} = \frac{P - C}{C}

To price from a target margin mm or a markup kk (as decimals):

P=C1−mP=C (1+k)P = \frac{C}{1 - m} \qquad P = C\,(1 + k)

The two ratios convert into each other with k=m1−mk = \frac{m}{1 - m} and m=k1+km = \frac{k}{1 + k}. Because the price is always larger than the cost (when you make a profit), the margin is always the smaller of the two percentages, and it can never reach 100%.

Worked example

Cost + price. A product costs $60 and sells for $100. Gross profit is 100−60=$40100 - 60 = \$40. The margin is 40/100=40%40 / 100 = 40\% and the markup is 40/60=66.67%40 / 60 = 66.67\%.

Cost + margin. An item costs $45 and you want a 40% margin. The price is 45/(1−0.40)=$7545 / (1 - 0.40) = \$75, the profit is $30 and the matching markup is 66.67% — not 40%.

Cost + markup. You buy at $80 and add a 25% markup. The price is 80×1.25=$10080 \times 1.25 = \$100, the profit is $20 and the margin is only 20%.

Margin vs markup: equivalence table

Each row shows the same price expressed both ways. Notice how quickly the markup grows as the margin climbs:

Margin (on price) Markup (on cost) Price for a cost of 100
10% 11.11% 111.11
15% 17.65% 117.65
20% 25% 125
25% 33.33% 133.33
30% 42.86% 142.86
33.33% 50% 150
40% 66.67% 166.67
50% 100% 200
60% 150% 250
75% 300% 400

A practical rule: if you think in markups but your targets or competitors talk in margins, convert before you compare. A “50% markup” is only a 33.33% margin.

Which one should you use?

Margin is the language of financial statements: gross margin on an income statement is gross profit divided by revenue, so it lets you compare products, months or companies on the same footing. Markup is handier at the counter, because you multiply the cost you see on the invoice. Many shops set prices with a markup and monitor performance with margins — perfectly fine, as long as everyone knows which percentage is which.

Frequently asked questions

What is the difference between margin and markup?

Both start from the same profit (price minus cost). Margin divides it by the selling price; markup divides it by the cost. For a $60 item sold at $100 the margin is 40% while the markup is 66.67%.

Is a 50% markup the same as a 50% margin?

No. A 50% markup on a $100 cost gives a $150 price and a 33.33% margin. To earn a 50% margin you need a 100% markup, which doubles the cost.

Can a profit margin be more than 100%?

No. Profit can never exceed the selling price, so the margin stays below 100% even when the cost is zero. Markup has no upper limit: a 300% markup is a 75% margin.

Is gross margin the same as net margin?

No. Gross margin only subtracts the direct cost of the goods. Net margin also subtracts rent, salaries, marketing, interest and taxes, so it is always lower. This calculator works with gross figures per unit.

Should I include VAT in the cost and price?

Normally no. A VAT-registered business recovers the VAT it pays and passes on the VAT it charges, so margins are calculated on prices excluding tax.

Last updated:

More Finance calculators

People also use