The markup formula tells a seller how much they added on top of what an item cost them. It is simple: markup % = (price − cost) ÷ cost × 100. A candle that costs $40 to make and sells for $60 carries a 50% markup.
The trouble starts when markup gets mixed up with gross margin. Both use the same dollar profit, but they divide it by different numbers, so the percentages never match. This guide covers the formula, how to set a price from cost, how markup compares with margin, and how to convert one into the other. The examples use US dollars and round numbers, and the same math works in any currency.
The Markup Formula: Quick Answer
Markup is profit measured against cost. Start with the dollar amount, then turn it into a percentage.
- Markup in dollars = price − cost
- Markup % = (price − cost) ÷ cost × 100
This matches the formula in a study guide from Toronto Metropolitan University’s Ted Rogers School of Management, which gives markup % as price minus cost, divided by cost.
Worked example
A seller makes a handmade candle for $40 and sells it for $60.
- Markup in dollars: $60 − $40 = $20.
- Divide by cost: $20 ÷ $40 = 0.5.
- Multiply by 100: 0.5 × 100 = 50%.
Markup is really a percentage increase from cost to price. If that idea is familiar, the percentage change formula works the same way, with cost as the starting value.
How to Set a Price From Cost and Markup
A common case is a seller who knows the cost, picks a markup and needs the price. Rearranging the markup formula gives this:
Price = cost × (1 + markup as a decimal)

The University of Vermont Extension writes the same idea as cost plus cost times the markup percentage equals the new price. Penn State Extension calls this approach cost-plus pricing: work out the cost to produce the item, then add a standard markup.
Examples
- Cost $40, markup 50%: $40 × 1.5 = $60.
- Cost $25, markup 60%: $25 × 1.6 = $40.
- Cost $12, markup 150%: $12 × 2.5 = $30.
Working back to cost
The formula also runs in reverse. Cost = price ÷ (1 + markup). A $60 item with a 50% markup cost $60 ÷ 1.5 = $40. A $40 item with a 60% markup cost $40 ÷ 1.6 = $25. For quick checks on any of these steps, a percentage calculator helps.
Markup vs Gross Margin
Gross margin uses the same dollar profit as the markup formula, but divides it by price instead of cost.
Gross margin % = (price − cost) ÷ price × 100

In the UK, HMRC calls this the gross profit rate. Its Enquiry Manual defines it as gross profit (sales minus cost of goods sold) divided by turnover, times 100. The manual describes the gross profit rate as the profit margin on sales.
Because price is always larger than cost for a profitable item, margin is always the smaller percentage. The table holds cost at $40 and changes the price.
| Cost | Price | Profit | Markup (on cost) | Gross margin (on price) |
|---|---|---|---|---|
| $40 | $50 | $10 | 25% | 20% |
| $40 | $60 | $20 | 50% | 33.3% (rounded) |
| $40 | $80 | $40 | 100% | 50% |
| $40 | $100 | $60 | 150% | 60% |
The $60 row is the key one. The same $20 profit is a 50% markup but only about a 33.3% margin. The Toronto Metropolitan University guide shows the same pattern with a $10 hat sold for $15: 50% markup and 33% margin. Markup can go above 100%, while margin on a sale can never reach 100%. For gross, operating and net margin in full, see the profit margin formula guide.
Converting Markup to Margin and Back
A seller who knows one figure can find the other without knowing the price. This is handy when a target is set as a margin but prices are built with the markup formula. Use decimals, then multiply by 100 at the end.
- Margin = markup ÷ (1 + markup)
- Markup = margin ÷ (1 − margin)
Both follow from the two base formulas with plain algebra. Check it with the candle: 0.5 ÷ 1.5 = 0.333 (rounded), or about 33.3%. Going back, (1/3) ÷ (1 − 1/3) = 0.5, or 50%.
The first table already turns markup into margin. This one runs the other way, from a target margin to the markup needed, with the same $40 cost.
| Target gross margin | Markup needed (on cost) | Price at a $40 cost |
|---|---|---|
| 20% | 25% | $50 |
| 30% | 42.9% (rounded) | $57.14 (rounded) |
| 40% | 66.7% (rounded) | $66.67 (rounded) |
| 50% | 100% | $80 |
To price straight from a target margin, use price = cost ÷ (1 − margin). This is the margin formula in the University of Vermont Extension guide, and it skips the conversion step.
The Common Mistake: Using Markup to Hit a Margin
A seller wants a 40% gross margin on an item that costs $40. They add 40% to cost and get $40 × 1.4 = $56. The markup formula was used correctly, but on the wrong target.
What the seller actually earns
At $56, profit is $16. Margin is $16 ÷ $56, or about 28.6%. That is well short of 40%.
The price that hits 40%
The right price is $40 ÷ (1 − 0.4) = $66.67 (rounded). Profit is about $26.67, which is exactly 40% of the unrounded price. The markup needed is about 66.7%, which matches the conversion table.
The fix is to convert the target margin first, then apply the markup formula. The gap is about $10.67 per item. Across the same 100 sales, that is about $1,067 less gross profit than the 40% target price would give.
Discounts shrink both figures
A sale price cuts profit faster than it cuts price. Take 10% off the $60 candle and it sells for $54. Profit drops to $14, so markup falls to 35% and margin to about 25.9%. A discount calculator shows the sale price; then run both formulas on the new number.
Markup also covers only the cost of the item. Rent, fees and other fixed costs still need paying, and the break-even point formula shows how many sales it takes to cover them.
Conclusion
The markup formula is (price − cost) ÷ cost × 100, and price = cost × (1 + markup) turns it into a price. Gross margin divides the same profit by price, so a $40 item sold at $60 shows 50% markup but about 33.3% margin. When the goal is a margin, price from margin directly with cost ÷ (1 − margin), or convert first. Keeping the two percentages apart is the simplest way to avoid underpricing.


