CalcOak

Margin versus markup, why the two numbers differ and how fees eat into what you keep

Margin and markup describe the same profit from two directions. Learn both formulas, convert between them, and see what fees do to your net margin.

Published September 27, 2026 · By the CalcOak team

Margin and markup both measure the profit on a sale, but margin divides that profit by the selling price while markup divides it by the cost. Because the price is always bigger than the cost, the margin percentage is always the smaller of the two, and a target set in one when you meant the other will quietly underprice everything you sell.

The two formulas

Start with the same three numbers: cost, price and the gross profit between them.

Gross profit = price − cost

Margin = gross profit ÷ price

Markup = gross profit ÷ cost

Buy an item for 50 and sell it for 80. Gross profit is 30. Margin is 30 ÷ 80 = 37.5%. Markup is 30 ÷ 50 = 60%. Same sale, same money in the till, two different percentages. Margin answers “what share of each sale is profit?”, which is the question your accounts and your marketplace dashboard care about. Markup answers “how much did I add to what I paid?”, which is how most suppliers, wholesalers and trade pricing sheets talk.

The rearranged versions are the ones you use when setting a price:

Price from a target margin = cost ÷ (1 − margin)

Price from a target markup = cost × (1 + markup)

Notice what the first formula implies. A margin of 100% would need you to divide by zero, so margin can never reach 100% no matter how high the price goes. Markup has no ceiling: a 300% markup simply means a price four times the cost.

Converting between margin and markup

The two are linked by a fixed relationship, so you can translate a supplier’s markup into the margin your books will show, or the other way round.

Markup = margin ÷ (1 − margin)

Margin = markup ÷ (1 + markup)

Gross margin Equivalent markup Price for a cost of 100
10% 11.1% 111.11
20% 25% 125.00
25% 33.3% 133.33
30% 42.9% 142.86
40% 66.7% 166.67
50% 100% 200.00

The gap widens quickly. At 10% the two are nearly interchangeable; at 50% margin the markup is double the cost. The profit margin calculator has modes for cost plus target margin and cost plus target markup, and shows both percentages together so you can see the pair for any price.

Why confusing the two loses money

Suppose you decide that 40% is the profit you need to make a product line worthwhile, and your cost is 12. If you apply 40% as a markup, the price is 12 × 1.40 = 16.80. If you meant a 40% margin, the price should be 12 ÷ 0.60 = 20.00. That is a 3.20 difference on every unit, and the 16.80 price actually earns a margin of only 4.80 ÷ 16.80 = 28.6%. Sell a thousand units and you have given away 3,200 without noticing, because the spreadsheet still says “40%”.

The mistake runs the other way too. A supplier who tells you a product “does 50% at retail” may mean a 50% markup, which is a 33.3% margin. If your business plan needs a 50% margin, that product is nowhere near it. Whenever someone quotes a percentage without saying which one, ask. The cost of asking is one sentence; the cost of guessing is every unit you sell.

Discounting is where the confusion bites hardest. A 20% off promotion on a product with a 25% gross margin leaves you with a 6.25% margin on the sale price, not 5%, and after fees it is probably negative. Run the promotion through the discount calculator to get the final price, then put that price into the margin tool before you approve it.

From gross margin to net margin: fees and shipping

Gross margin only subtracts the cost of the goods. Everything else that leaves with the sale, marketplace commission, card processing, the postage you pay, packaging, comes out of the same pot and turns gross margin into net margin.

Net profit = price − cost − marketplace fee − processing fee − shipping − other costs

Net margin = net profit ÷ price

Percentage fees are the tricky part, because they scale with the price. When you raise the price by 1.00, a 15% referral fee takes 0.15 of it, so you never keep the whole increase. The same logic gives the break-even price, the point where net profit is exactly zero:

Break-even price = (cost + shipping + other + fixed processing fee) ÷ (1 − referral % − processing %)

A worked example: cost 12, price 29.99

An item costs 12 and is listed at 29.99 on a marketplace that charges a 15% referral fee, with payment processing at 2.9% plus 0.30 per transaction.

  1. Gross profit: 29.99 − 12 = 17.99.
  2. Gross margin: 17.99 ÷ 29.99 = 59.99%, effectively 60%.
  3. Markup: 17.99 ÷ 12 = 149.9%.
  4. Marketplace fee: 29.99 × 0.15 = 4.4985, call it 4.50.
  5. Processing fee: 29.99 × 0.029 + 0.30 = 0.8697 + 0.30 = 1.1697, about 1.17.
  6. Total fees: 4.4985 + 1.1697 = 5.6682.
  7. Net profit: 29.99 − 12 − 5.6682 = 12.3218, about 12.32.
  8. Net margin: 12.3218 ÷ 29.99 = 41.1%.
  9. Break-even price: (12 + 0.30) ÷ (1 − 0.15 − 0.029) = 12.30 ÷ 0.821 = 14.98.
Line Amount Share of price
Selling price 29.99 100%
Cost of goods 12.00 40.0%
Marketplace fee at 15% 4.50 15.0%
Processing at 2.9% + 0.30 1.17 3.9%
Net profit 12.32 41.1%

A headline 60% gross margin has become 41% before you have paid for a single box or label. Add 4.50 of postage that you absorb as “free shipping” and net profit drops to 7.82, a 26.1% net margin, with the break-even price rising to 20.46. That is the same default scenario the margin tool opens with, so you can change one input at a time and watch the net figure move.

The break-even figure is the one to keep in your head during promotions. Below 14.98 (or 20.46 with shipping) every unit sold makes the loss bigger, and because the percentage fees shrink along with the price, the floor is higher than a quick “cost plus postage” estimate suggests.

Quick checklist

  • Say which one you mean. Write “40% margin” or “40% markup”, never just “40%”.
  • Set prices with the margin formula, cost ÷ (1 − margin), when your target comes from your accounts.
  • Convert supplier markups to margins before comparing products.
  • Work out net margin with every per-sale fee included, not gross margin.
  • Know your break-even price before you discount.
  • Recheck the numbers whenever a marketplace changes its fee schedule, which happens most years.

Tools mentioned in this guide

More guides on Shipping & Ecommerce