How to Calculate Markup: Formula, Excel and Margin Math
Summary
Markup = (Selling price − Cost) ÷ Cost. It measures how much you add on top of cost. A candle that costs $8.40 and sells for $22.00 has a 161.9% markup, which is a 61.8% margin. To price from a target markup, use Price = Cost × (1 + Markup).
On this page
Markup formula
Markup % = (Selling price − Unit cost) ÷ Unit cost × 100- Selling price: The price the customer pays per unit, before sales tax.
- Unit cost: What the unit costs you landed: wholesale or production cost plus inbound freight and duties.
How to calculate markup in Excel and Google Sheets
Excel, using the cells in the worked example below:
=(C2-B2)/B2Worked example
A gift shop is reviewing prices on three best sellers after its supplier raised costs, and wants markup and margin side by side.
| Product | Unit cost | Selling price |
|---|---|---|
| Soy candle | $8.40 | $22.00 |
| Ceramic mug | $5.10 | $16.00 |
| Canvas tote | $6.75 | $18.00 |
- Candle markup = (22.00 − 8.40) ÷ 8.40 = 13.60 ÷ 8.40 = 161.9%.
- Candle margin = 13.60 ÷ 22.00 = 61.8%. Same $13.60 profit, different base.
- Fill =(C2-B2)/B2 down column D: mug 213.7%, tote 166.7%.
- To keep a 160% markup on the candle if cost rises to $9.20: price = 9.20 × (1 + 1.60) = $23.92.
Result: 161.9% markup on the soy candle (61.8% margin)
How to interpret markup
Markup is a pricing tool; margin is a profitability measure. Retailers often think in markup when setting prices ('keystone' pricing is a 100% markup, which equals a 50% margin), while finance reports margin. Convert between them with Margin = Markup ÷ (1 + Markup) and Markup = Margin ÷ (1 − Margin). A store that needs a 60% gross margin must mark up 150%, not 60%. Check realised markup after discounts, since a 20%-off sale on a 100% markup leaves only a 60% markup.
Common mistakes
- Pricing with margin when you meant markup. Adding a 40% 'margin' to cost ($10 × 1.4 = $14) only yields a 28.6% margin.
- Using supplier price instead of landed cost. Freight, duties and packaging can add several points of cost.
- Averaging markup percentages across products with very different volumes. Weight by units or revenue.
- Ignoring discounts. Report markup at the price customers actually paid, not the ticket price.
Calculate markup with Better Analyst
Connect your data or upload a spreadsheet, then ask in plain English. Better Analyst writes and runs the calculation and shows the steps, so you can check the number.
- “Calculate markup and margin for every SKU in this price list and flag anything under 100% markup.”
- “What prices keep a 150% markup after the new supplier costs?”
- “Show realised markup by month after discounts.”
Usually calculated from: Google Sheets,
Airtable, MySQL, PostgreSQL, Google BigQuery.
Further reading
Frequently asked questions
What is the difference between markup and margin?
How do I convert margin to markup?
How do I set a price from a target markup in Excel?
Related metrics
Gross Margin Formula: How to Calculate Gross Margin in Excel
Gross margin formula with a worked example by product line, the Excel formula, and the mistakes that make margins look better than they are.
Break-Even Point Formula: Units and Revenue (Excel Example)
Break-even point formula in units and revenue, a meal-prep kitchen example, the Excel formula, and how to add a profit target or a price change.