Margin vs Markup: The Difference, Formulas and a Conversion Table
Margin and markup describe the same profit from two different starting points, and mixing them up quietly underprices your products. Both formulas, how to convert between them, a conversion table, tax and discounts, and how to set prices from either.
In this article15 sections
Margin vs markup comes down to what you divide the profit by. Margin = (price − cost) ÷ price. Markup = (price − cost) ÷ cost. A product bought for 10 and sold for 15 has a 5 profit: that is a 50% markup but only a 33.3% margin. This guide shows both formulas, how to convert between them, a table you can keep by the till, and how tax and discounts change the picture.
Margin vs markup formulas#

| Gross margin | Markup | |
|---|---|---|
| Formula | (price − cost) ÷ price | (price − cost) ÷ cost |
| Question it answers | How much of each sale is profit? | How much did I add to what I paid? |
| Can it exceed 100%? | No (while cost is above zero) | Yes |
| Used by | Accounts, reports, retail targets | Setting prices from cost |
Gross margin is what appears in your accounts: revenue minus cost of goods sold, as a share of revenue. Markup is a pricing shortcut. Both are useful; the trouble starts when one is quoted and the other is applied.
How to convert markup to margin and back#
- Margin = markup ÷ (1 + markup). A 50% markup is 0.5 ÷ 1.5 = 33.3% margin.
- Markup = margin ÷ (1 − margin). A 40% margin needs 0.4 ÷ 0.6 = 66.7% markup.
Margin vs markup chart: a conversion table#
| Markup | Margin | Price for a cost of 10 |
|---|---|---|
| 10% | 9.1% | 11.00 |
| 25% | 20.0% | 12.50 |
| 33.3% | 25.0% | 13.33 |
| 50% | 33.3% | 15.00 |
| 66.7% | 40.0% | 16.67 |
| 100% | 50.0% | 20.00 |
| 150% | 60.0% | 25.00 |
| 300% | 75.0% | 40.00 |
The expensive mistake#
A shop wants a 40% margin and multiplies cost by 1.4. That is a 40% markup, which gives a 28.6% margin. On a cost of 10, the price should have been 16.67, not 14.00. Across thousands of sales, the missing 2.67 per unit is the difference between covering rent and not. If your target is a margin, price with:
Price = cost ÷ (1 − target margin)
For 40%: 10 ÷ 0.6 = 16.67. For 30%: 10 ÷ 0.7 = 14.29.
Tax-inclusive prices#
Margin is calculated on the price without tax. If you show prices including VAT or sales tax, take the tax out first. A shelf price of 24.00 including 20% VAT is 20.00 net. With a cost of 12.00, the margin is (20 − 12) ÷ 20 = 40%, not 50%. Cost should be net too, when you can reclaim the tax on your purchase. Our guide to tax-inclusive discounts in WooCommerce covers a related trap.
What a discount does to margin#
A discount comes straight out of profit, so it cuts margin much faster than it looks. Using cost 10 and price 16.67 (40% margin):
| Discount | New price | New margin | Units needed for the same profit |
|---|---|---|---|
| 0% | 16.67 | 40.0% | 100 |
| 10% | 15.00 | 33.3% | 134 |
| 20% | 13.34 | 25.0% | 200 |
| 30% | 11.67 | 14.3% | 400 |
At 20% off you need to sell twice as many units to earn the same gross profit. Check the margin before you print the sale signs.
Setting a target margin for your shop#
A single margin for every product is rarely right. Work backwards from what the shop has to pay. Add up a month’s running costs, such as rent, wages, payment fees, packaging, software and marketing, and compare them with a month’s net sales. If running costs are 25% of sales, a blended gross margin below 25% loses money no matter how busy the shop is, and you need room above it for profit, damaged goods and markdowns.
Then vary the target by product. Items shoppers compare on price, such as well-known brands, often carry a thin margin because a higher price sends them elsewhere. Accessories, own-label goods and items that are hard to compare can carry more. What matters is the blend: the total margin across everything you sell in a month.
Weighted margin across products#
Don’t average margin percentages. Add the profit and divide by the total sales. Say product A sells 1,000.00 at 20% margin (200.00 profit) and product B sells 200.00 at 60% margin (120.00 profit). The simple average of 20% and 60% is 40%, but the real margin is 320.00 ÷ 1,200.00 = 26.7%, because most of the money came from the low-margin product. The same rule applies when you report margin by category or by month: total the profit first, then divide.
Keystone pricing and when it fails#
Retailers often talk about “keystone” pricing: doubling the cost, which is a 100% markup and a 50% margin. It is a handy starting point in fashion and gifts, where markdowns and unsold stock eat into the margin later. It fails in two directions. On heavily compared goods, doubling cost can price you well above competitors, so the product doesn’t sell at all. On cheap accessories, doubling may leave only pennies per sale after card fees and packaging, so a higher multiple makes sense.
Whatever multiple you use, calculate the margin it produces and compare it with your running costs. A rule of thumb is only useful while the numbers behind it still hold.
Clearance and the average margin#
Plan for markdowns when you set the first price. If one unit in five ends up sold at 30% off, your achieved margin will be below the margin on the ticket. Estimate the share of stock you usually mark down and by how much, and check that the blended result still meets your target. Buying a little less often protects margin better than any pricing formula.
Shrinkage lowers achieved margin too. Stock that is stolen, broken or lost was paid for but never sold, so its cost lands in cost of goods sold with no revenue against it. Counting regularly tells you how large that gap is, and our free shrinkage calculator turns a count difference into a rate you can allow for when pricing.
Rounding prices#
Formula prices come out as awkward numbers. Round up to your usual price endings, such as .99 or .95, and recheck the margin afterwards. Rounding 16.67 down to 15.99 turns a 40% margin into 37.5%; rounding up to 16.99 gives 41.1%. Over a whole catalogue, rounding in one direction is worth real money, so decide the rule once and apply it everywhere.
Which cost should you use?#
Both figures are only as good as the cost. Use the cost that includes bringing the goods in; see landed cost for that, and cost of goods in WooCommerce for where to store it. The free GMROI calculator then shows how much gross margin each unit of stock investment earns, which tells you more than margin alone: a low-margin item that sells quickly can beat a high-margin item that sits.
Margin vs markup in a spreadsheet#
With cost in B2 and the net price in C2, these formulas give both figures, and the last one prices a product from a target margin written as a decimal in E2:
Margin =(C2-B2)/C2
Markup =(C2-B2)/B2
Price =B2/(1-E2)Format margin and markup as percentages. If prices in your sheet include tax, divide them by one plus the tax rate first, or every result will look better than it is. Sorting the sheet by margin quickly shows which products are carrying the shop and which ones deserve a price review, and a second column for units sold shows whether a thin margin is earning its keep through volume.
Pricing at the counter with Retail POS#
Retail POS is our point of sale for WooCommerce, run from wp-admin. In the free version on WordPress.org, the counter shows tax-inclusive amounts to the customer, discounts are applied as a percentage or amount and recalculated on the server, and a quick edit on a cart line can update a product’s price, sale price, stock and cost. The free version records cost but doesn’t report margin; Retail POS Pro, from $99 a year, adds profit reports with revenue, cost, margin and discount usage.

Margin vs markup: frequently asked questions#
What is the difference between margin and markup?
Margin is profit divided by the selling price. Markup is the same profit divided by the cost. Because the price is larger than the cost, margin is always the smaller percentage of the two.
What markup gives a 50% margin?
A 100% markup. If you pay 10 and sell at 20, the profit of 10 is half of the selling price, which is a 50% margin, and equal to the cost, which is a 100% markup.
How do I price for a target margin?
Divide the cost by one minus the target margin. For a 35% margin on a cost of 13, divide 13 by 0.65, giving a net price of 20 before tax.
Should tax be included when calculating margin?
No. Use prices and costs without recoverable sales tax or VAT. If your shelf price includes tax, remove it before working out the margin, or the result will look too high.
Is gross margin the same as net profit?
No. Gross margin only subtracts the cost of the goods sold. Net profit also subtracts rent, wages, fees and other expenses, so it is lower than gross margin.
