Home › How to calculate a markup
How to Calculate a Markup (and Markup Percentage)
On this page
If you set a price from the wrong percentage, the sale can close and still fail to pay you what you thought. Markup and margin look alike; they are not interchangeable.
Short answer: markup is the profit divided by the cost. If something costs $40 and you sell it for $60, the profit is $20 and the markup is $20 ÷ $40 = 50%. The margin on that same sale is $20 ÷ $60 = 33.33%, because margin is profit divided by the price.
Those two percentages are easy to mix up. This page shows how to calculate a markup, how to turn a markup into a price, and how to set a price when what you actually want is a margin. For the difference in more depth, use markup vs. margin and the markup-to-margin conversion chart. To run any of the examples, use the markup calculator.
The two formulas
- Markup = (price − cost) ÷ cost
- Price = cost × (1 + markup)
If you prefer the percentage already written as a decimal, a 50% markup is 0.50, so price = cost × 1.50. A 25% markup is cost × 1.25. A 80% markup is cost × 1.80.
Margin, for comparison, is (price − cost) ÷ price. You do not need it to compute a markup, but you will need it if your target is a margin rather than a markup. See the second example.
How to do it, step by step
- Write down the cost. Use the full landed cost if you have it (what you paid, plus inbound shipping you will not recover). This page uses a simple item cost so the arithmetic stays clear.
- If you already have a price: subtract the cost, then divide the difference by the cost. That is the markup.
- If you have a target markup: multiply the cost by (1 + markup). That is the price.
- If you have a target margin instead: price = cost ÷ (1 − margin). That is a different formula. Do not plug a margin into the markup formula.
- Check the result in the markup calculator.
Worked example 1: a 50% markup
Cost $40, target markup 50%.
- Price = $40 × 1.50 = $60.00
- Profit = $60.00 − $40.00 = $20.00
- Markup, as a check: $20.00 ÷ $40.00 = 50%
- Margin on the same sale: $20.00 ÷ $60.00 = 33.33%
A 50% markup is not a 50% margin. If you needed a 50% margin, the price would be $40 ÷ 0.50 = $80, not $60.
Worked example 2: you want a 40% margin, not a 40% markup
Cost $40, target margin 40%.
- Price = $40 ÷ (1 − 0.40) = $40 ÷ 0.60 = $66.666..., which rounds to $66.67
- Profit = $66.67 − $40.00 = $26.67
- Margin, as a check: $26.67 ÷ $66.67 = 40.00%
- Markup on that price: $26.67 ÷ $40.00 = 66.68%
If you had treated 40% as a markup, you would have charged $40 × 1.40 = $56 and only made a 28.57% margin ($16 ÷ $56). That is the usual mistake, and it is why the two formulas are worth keeping separate.
When percentage fees or per-order costs also come out of the price, the pricing margin calculator builds those into the target-margin price.
Worked example 3: a 25% markup on $16
- Price = $16.00 × 1.25 = $20.00
- Profit = $4.00
- Margin = $4.00 ÷ $20.00 = 20%
A 25% markup is a 20% margin. The conversion chart lists other pairs; you do not have to memorize them if you compute both percentages once.
Worked example 4: an 80% markup on $8.50
- Price = $8.50 × 1.80 = $15.30
- Profit = $6.80
- Margin = $6.80 ÷ $15.30 = 44.44%
This is the same arithmetic for a wholesale or retail item. The markup you choose is a business decision. This page does not recommend a rate.
A compact way to remember it
| You know | You want | Formula |
|---|---|---|
| Cost and price | Markup | (price − cost) ÷ cost |
| Cost and price | Margin | (price − cost) ÷ price |
| Cost and a markup | Price | cost × (1 + markup) |
| Cost and a margin | Price | cost ÷ (1 − margin) |
In a spreadsheet, if cost is in A1 and price is in B1, markup is (B1-A1)/A1 and margin is (B1-A1)/B1. Format the cells as percentages.
Run the same cost and price in the markup calculator to see markup and margin together.
FAQ
How do I calculate a markup percentage?
Subtract cost from price, then divide by cost. ($60 − $40) ÷ $40 = 50%.
How do I calculate a selling price from a markup?
Multiply cost by one plus the markup. A 50% markup on $40 is $40 × 1.50 = $60.
Is markup the same as margin?
No. Markup divides by cost; margin divides by price. A 50% markup on $40 is a 33.33% margin. See markup vs. margin.
How do I price for a 40% margin?
Divide cost by (1 − 0.40). On $40 that is $66.67, a 66.68% markup. Do not add 40% of cost and stop there.
Does this include fees?
The examples above are cost and price only. To price for a margin after percentage fees and per-order costs, use the pricing margin calculator.
Cite this page: Pierre Mentor, “How to Calculate a Markup (and Markup Percentage),” MarkupCalc.com, updated Nov 21, 2026, https://markupcalc.com/guides/how-to-calculate-a-markup/



