Ali-E CRM is out. Everything is free until December 1, 2026
← All articles
Guide · 6 min ·

Markup vs margin: formulas, conversion table and examples

Markup and margin both describe the profit on a sale, but they are measured against different numbers. Markup is profit as a percentage of cost. Margin is profit as a percentage of the selling price. A product that costs $40 and sells for $50 earns $10 of profit: that is a 25% markup but a 20% margin.

Because the base is different, the same profit always gives a higher markup than margin. Mixing the two up is a common pricing error, and it means prices end up lower than the owner intended. This guide gives the formulas, a conversion table and worked examples.

Definitions and formulas

MeasureFormulaExample: cost $40, price $50
Gross profit per unitPrice - Cost$50 - $40 = $10
Markup(Price - Cost) / Cost × 100$10 / $40 × 100 = 25%
Margin(Price - Cost) / Price × 100$10 / $50 × 100 = 20%
Price from a markupCost × (1 + Markup)$40 × 1.25 = $50
Price from a marginCost / (1 - Margin)$40 / (1 - 0.20) = $50

In the last two rows, write percentages as decimals: 25% is 0.25 and 20% is 0.20.

Markup to margin conversion table

To convert between the two, use margin = markup / (1 + markup) and markup = margin / (1 - margin), again with decimals. The table covers common values, rounded to one decimal place.

MarkupMarginPrice for a $100 cost
10%9.1%$110
25%20%$125
33.3%25%$133.33
50%33.3%$150
66.7%40%$166.67
100%50%$200
150%60%$250
200%66.7%$300

Two things stand out. Margin can never reach 100%, because that would mean the product cost nothing, while markup has no upper limit. And the gap grows quickly: a 100% markup, which doubles the cost, gives only a 50% margin.

Worked example 1: pricing from a target margin

Example: a shop buys a lamp for $36, including delivery to the shop, and wants a 40% margin. Price = $36 / (1 - 0.40) = $36 / 0.60 = $60. Check: the profit is $60 - $36 = $24, and $24 / $60 = 40%. Expressed as markup, that is $24 / $36 = 66.7%.

Worked example 2: the 50% mistake

Example: an owner wants a 50% margin on a product that costs $40 and adds 50% to the cost. The price becomes $40 × 1.5 = $60. The profit is $20, which is a 33.3% margin, not 50%.

To get a real 50% margin, the price has to be $40 / (1 - 0.50) = $80, which is a 100% markup. Over 500 units, the difference is $20 per unit, or $10,000 of gross profit that was planned but never charged.

Worked example 3: what a discount does to margin

Example: the same product sells for $80 with a $40 cost, a 50% margin. A 20% discount lowers the price to $64. Profit per unit drops from $40 to $24, a fall of 40%, and the margin falls to 37.5%. To earn the same total gross profit at the discounted price, you would need to sell about 67% more units ($40 / $24 = 1.67).

Worked example 4: margin across several products

Example: a shop sells two product lines in a month. Line A brings $1,000 of sales at a cost of $500, a 50% margin. Line B brings $3,000 of sales at a cost of $2,400, a 20% margin. Together that is $4,000 of sales, $2,900 of cost and $1,100 of profit, so the overall margin is $1,100 / $4,000 = 27.5%.

That is not the simple average of 50% and 20%, which would be 35%. The overall margin is weighted by sales, so if the low-margin line grows faster than the high-margin one, total margin falls even though no price or cost changed. Check margin by product line, not only for the whole shop.

What to include in cost

Both measures are only as accurate as the cost you use. For products, use the landed cost per unit: the purchase price plus inbound shipping, customs duties and any packaging you add. Calculate on the price before sales tax or VAT, because that tax is collected for the government rather than earned by you.

The result is gross margin. Rent, salaries and other overheads are paid out of it, so even a healthy gross margin has to be large enough to cover them and still leave a profit.

Which one should you use?

  • Use margin for targets and reports. A profit and loss statement shows gross margin as a share of revenue, so targets set in margin compare directly with results.
  • Use markup as a quick pricing shortcut once you know which markup gives your target margin (see the table above).
  • Always say which one you mean. On price lists, in team discussions and in talks with suppliers, name margin or markup explicitly instead of just saying percent profit.

Common mistakes

  • Adding the target margin percentage to cost, as in example 2.
  • Leaving shipping, duties or packaging out of cost, which makes margins look better than they are.
  • Calculating margin on a price that includes sales tax or VAT.
  • Offering discounts without checking how much margin is left afterwards.
  • Using one markup for every product, even when costs and competition differ by product.

How this works in Ali-E CRM

In Ali-E CRM, inventory tracks cost price and margin, so you can check margin by product instead of estimating it. ABC analysis groups products by their contribution, and the products and P&L reports (two of 13 ready reports) can be compared across periods and exported to Excel or PDF. Full inventory and finance with P&L are part of the Business plan, at $79 a month or $63 a month billed annually.

Frequently asked questions

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

No. A 50% markup on a $40 cost gives a $60 price and a 33.3% margin. A 50% margin needs an $80 price, which is a 100% markup.

Can margin be higher than 100%?

No. Margin is profit divided by price, and profit cannot exceed the price, so margin always stays below 100%. Markup can be any size: a product bought for $10 and sold for $50 has a 400% markup and an 80% margin.

What is a good margin for a small business?

There is no single right number. It depends on your industry, prices in your market, how fast stock sells and how high your overheads are. Work backwards: gross profit has to cover operating costs and leave the net profit you need, and your target margin follows from that.

Is gross margin the same as net margin?

No. Gross margin uses only the cost of goods sold. Net margin is net profit, after operating expenses, interest and taxes, divided by revenue, so it is normally much lower than gross margin.

Try Ali-E free until December 1