Margin and markup are not the same thing
Both describe the same profit on a sale, measured against different bases. Margin is profit as a share of the selling price. Markup is profit as a share of the cost. Buy something for $60 and sell it for $100, and you make $40: a 40% margin but a 66.7% markup.
Mixing them up is one of the most common and expensive pricing mistakes. If you want a 40% margin but add a 40% markup to your cost, you'll price the item at $84 instead of $100 and end up with a 28.6% margin, giving away almost a third of the profit you planned.
The formulas
Profit = price − cost
Margin = (price − cost) ÷ price
Markup = (price − cost) ÷ cost
Price for a target margin = cost ÷ (1 − margin)
Price for a target markup = cost × (1 + markup)
Margin = markup ÷ (1 + markup) Markup = margin ÷ (1 − margin)
Worked examples
From cost and price
A shop buys a jacket for $60 and sells it for $100. Profit is $40. Margin = 40 ÷ 100 = 40%. Markup = 40 ÷ 60 = 66.7%.
Pricing for a target margin
The shop wants a 50% margin on a $60 item. Price = 60 ÷ (1 − 0.5) = $120. A common wrong shortcut, $60 × 1.5 = $90, gives only a 33% margin.
Pricing with a standard markup
A contractor adds a 25% markup to materials costing $800. Price = 800 × 1.25 = $1,000, which is a 20% margin.
Conversion table
| Markup | Equals margin |
|---|---|
| 10% | 9.1% |
| 25% | 20% |
| 33.3% | 25% |
| 50% | 33.3% |
| 66.7% | 40% |
| 100% | 50% |
| 150% | 60% |
| 200% | 66.7% |
Markup can be any size; margin can never reach 100%, because that would mean the item cost nothing.
Which one should you use?
Use margin when you think about the business as a whole. Financial statements, investors and benchmarks talk in margins, and margin tells you directly what share of revenue you keep. It's also the number to plug into the ROAS calculator and the LTV:CAC calculator.
Use markup when setting prices from costs, especially in retail, wholesale and trades, where "keystone" (100% markup, i.e. double the cost) and fixed percentage markups are standard. Just know what margin your markup produces.
Margin and markup in a spreadsheet
With cost in A2 and price in B2: margin is =(B2-A2)/B2 and markup is =(B2-A2)/A2. To price a whole product list for a 45% margin, put the target in a single cell (say D1 = 45%) and use =A2/(1-$D$1), then fill down. Keeping the target in one cell means you can test a different margin across every product by changing one number.
Gross margin vs net margin
This calculator works out gross margin: price minus the direct cost of the item. Net margin subtracts everything else too, including rent, salaries, marketing and taxes, and is always lower. A product with a healthy 60% gross margin can still lose money once overheads are counted. To see how many sales you need to cover those overheads, use the break-even calculator.
What to include in cost
Include everything it takes to get one unit into a customer's hands: purchase or manufacturing cost, inbound shipping, packaging, payment processing fees and, if you offer it, free delivery. Leaving out a $3 shipping cost on a $20 item quietly removes 15 points of margin.
Questions
What is a good profit margin?
It depends on the industry. Grocery and fuel retailers often run gross margins under 30%; software and digital products often exceed 70%. Compare yourself with businesses like yours, and make sure your margin covers your overheads.
Can margin be negative?
Yes, if you sell below cost. The calculator flags this so you can spot loss-making prices.
How do I include a discount?
Enter the discounted price as the selling price. A 20% discount on a 40% margin product leaves a 25% margin: the profit drops from $40 to $20 on an $80 sale.
Last reviewed 2026-11-25