Home › How to calculate a markup

How to Calculate a Markup (and Markup Percentage)

By · Updated Nov 21, 2026 · Editorial policy

On this page
  1. The two formulas
  2. How to do it, step by step
  3. Worked example 1: a 50% markup
  4. Worked example 2: you want a 40% margin, not a 40% markup
  5. Worked example 3: a 25% markup on $16
  6. Worked example 4: an 80% markup on $8.50
  7. A compact way to remember it
  8. Related calculators and guides
  9. FAQ

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

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

  1. 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.
  2. If you already have a price: subtract the cost, then divide the difference by the cost. That is the markup.
  3. If you have a target markup: multiply the cost by (1 + markup). That is the price.
  4. 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.
  5. Check the result in the markup calculator.

Worked example 1: a 50% markup

Cost $40, target markup 50%.

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%.

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

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

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 knowYou wantFormula
Cost and priceMarkup(price − cost) ÷ cost
Cost and priceMargin(price − cost) ÷ price
Cost and a markupPricecost × (1 + markup)
Cost and a marginPricecost ÷ (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/