How to Calculate Markup and Margin

Learn the difference between markup and margin, how to calculate each from cost and selling price, and why confusing them is one of the most common pricing mistakes in business.

Markup vs. Margin: Why They Are Not the Same

Markup and margin are both ways of expressing profit, but they use different bases. Markup is calculated as a percentage of cost — it tells you how much you added on top of what you paid. Margin is calculated as a percentage of the selling price — it tells you what share of each dollar collected is profit. A business that applies a 100% markup earns a 50% margin; confusing the two can lead to severe underpricing and eroded profitability.

The Markup Formula

Markup % = ((Selling Price - Cost) / Cost) × 100. If you buy a product for $40 and sell it for $60, the markup is ($60 - $40) / $40 × 100 = 50%. To find the required selling price when you know the cost and target markup, rearrange: Selling Price = Cost × (1 + Markup% / 100). At a 50% markup on a $40 cost, the selling price is $40 × 1.50 = $60.

The Margin Formula

Gross Profit Margin % = ((Selling Price - Cost) / Selling Price) × 100. Using the same example, margin = ($60 - $40) / $60 × 100 = 33.33%. To achieve a target margin, use: Selling Price = Cost / (1 - Margin% / 100). If you need a 40% margin on a $40 cost, the selling price must be $40 / 0.60 = $66.67. Retailers and manufacturers often target specific margin thresholds to cover overhead and earn a net profit.

Converting Between Markup and Margin

You can convert directly between the two metrics without knowing cost or price. Margin % = Markup% / (1 + Markup% / 100). Conversely, Markup% = Margin% / (1 - Margin% / 100). A 25% markup converts to 25 / 1.25 = 20% margin. A 30% margin converts to 30 / 0.70 = 42.86% markup. These conversions are essential when a supplier quotes a margin requirement but your accounting system tracks markup, or vice versa.

Gross Margin vs. Net Margin

Gross margin only subtracts the direct cost of goods sold (COGS) from revenue. Net margin subtracts all expenses — COGS, operating costs, interest, and taxes — from revenue. A company might post a 60% gross margin but only a 5% net margin once overhead, salaries, and rent are counted. For pricing decisions, gross margin is the relevant figure; for evaluating overall business health, net margin is what matters to investors and lenders.

Practical Pricing Strategy

Most retailers use keystone pricing — a 100% markup (50% margin) — as a starting rule of thumb. High-volume, low-differentiation goods (groceries, commodities) typically operate on margins of 2–10%, while specialty goods, software, and luxury items can sustain margins of 50–80% or higher. Knowing your break-even volume at a given margin lets you test whether a price is realistic given your fixed costs. The formula is: Break-Even Units = Fixed Costs / (Selling Price - Variable Cost Per Unit).

Common Mistakes to Avoid

The most frequent error is targeting a markup percentage when a margin percentage was intended. If a manager instructs the team to "add 30%" meaning 30% margin but the team applies 30% markup, the resulting margin is only 23%, potentially below the break-even threshold. Always confirm whether a profitability target is expressed as markup (on cost) or margin (on price) before setting prices. Document your pricing assumptions so they can be audited against actual financials.

Try These Calculators

Put what you learned into practice with these free calculators.