Markup vs Margin Calculator: Formulas, Conversion and Pricing Examples

Financial

Markup vs Margin Calculator: Formulas, Conversion and Pricing Examples

Published: November 14, 2026
Updated: November 14, 2026

A markup vs margin calculator answers one of the most common pricing questions in business: if a product costs a certain amount, what price should you charge to earn the profit you want? The confusion starts because markup and margin both describe profit as a percentage, but they measure it against different bases. Mix them up and you can underprice every product you sell without noticing.

This guide explains both formulas, shows how to convert one into the other, and walks through real pricing examples. You can check any result with the tools at Calculatorr.

What is the difference between markup and margin?

Both figures start from the same profit amount, which is the selling price minus the cost. The difference is the number you divide that profit by.

  • Markup compares profit to the cost of the product. It tells you how much you add on top of what you paid.
  • Margin (gross margin) compares profit to the selling price. It tells you how much of each sale you keep as profit.

Because the selling price is always larger than the cost, margin is always a smaller percentage than markup for the same product. A markup can exceed 100%. A margin can never reach 100% unless the cost is zero.

A quick example with the same product

Imagine you buy an item for 60 and sell it for 100. Profit is 40.

  • Markup = 40 / 60 = 66.67%
  • Margin = 40 / 100 = 40%

Same product, same profit, two different percentages. Neither is wrong, but you must know which one you are using.

Markup and margin formulas

These are the core formulas. Keep them handy whenever you set a price.

Markup formula

Markup % = (Selling price - Cost) / Cost x 100

Margin formula

Margin % = (Selling price - Cost) / Selling price x 100

Selling price from a target markup

Selling price = Cost x (1 + Markup)

Use the markup as a decimal. A 50% markup becomes 0.50.

Selling price from a target margin

Selling price = Cost / (1 - Margin)

Again, use the margin as a decimal. A 30% margin becomes 0.30, so you divide by 0.70.

How to use a markup vs margin calculator step by step

Whether you work by hand or with an online tool, the process is the same.

  1. Enter your total cost per unit. Include everything that belongs to that unit, such as purchase price, packaging and shipping.
  2. Choose what you know: the selling price, the markup or the margin.
  3. Enter that value.
  4. Read the remaining figures: profit per unit, markup and margin.
  5. Compare the result with your target and adjust the price if needed.

If you want to confirm the arithmetic, a general-purpose percentage tool from Calculatorr works well for the division steps.

Example: find the price for a target profit margin

Suppose a product costs 45 and you want a 30% gross margin.

  1. Convert the margin to a decimal: 0.30.
  2. Subtract it from 1: 1 - 0.30 = 0.70.
  3. Divide the cost by that number: 45 / 0.70 = 64.29.

The selling price is 64.29. Profit per unit is 19.29. Check the margin: 19.29 / 64.29 = 30%. The equivalent markup is 19.29 / 45 = 42.86%.

Notice that you needed a markup of nearly 43% to deliver a 30% margin. A common error is to multiply the cost by 1.30 and call it a 30% margin. That would give 58.50, a profit of 13.50 and a real margin of only 23.08%.

Example: find the price from a target markup

Now suppose the same product costs 45 and your supplier agreement or store policy requires a 50% markup.

  1. Convert the markup to a decimal: 0.50.
  2. Multiply the cost by 1.50: 45 x 1.50 = 67.50.

Profit is 22.50. The margin is 22.50 / 67.50 = 33.33%. A 50% markup always equals a 33.33% margin, regardless of the product.

How to convert markup to margin and margin to markup

You do not need the cost or the price to convert between the two. The percentages are directly linked.

Markup to margin

Margin = Markup / (1 + Markup)

Example: a 25% markup gives 0.25 / 1.25 = 20% margin.

Margin to markup

Markup = Margin / (1 - Margin)

Example: a 40% margin gives 0.40 / 0.60 = 66.67% markup.

Markup to margin conversion table

MarkupEquivalent margin
10%9.09%
25%20.00%
50%33.33%
75%42.86%
100%50.00%
150%60.00%
200%66.67%

Margin to markup conversion table

MarginRequired markup
10%11.11%
20%25.00%
30%42.86%
40%66.67%
50%100.00%
60%150.00%
75%300.00%

The table makes one pattern clear: the higher the margin you want, the faster the required markup grows. A 50% margin needs a 100% markup, which means selling at double the cost.

Pricing with fees: when costs depend on the selling price

Marketplaces, payment processors and sales commissions often charge a percentage of the sale price. In that case, the basic formula needs one adjustment.

Selling price = Fixed cost / (1 - Target margin - Fee percentage)

Example: a product costs 22, shipping adds 3, a marketplace takes 15% of the sale price, and you want a 20% net margin.

  1. Fixed cost: 22 + 3 = 25.
  2. Denominator: 1 - 0.20 - 0.15 = 0.65.
  3. Price: 25 / 0.65 = 38.46.

Verify it. Fees are 38.46 x 0.15 = 5.77. Profit is 38.46 - 25 - 5.77 = 7.69. Margin is 7.69 / 38.46 = 20%. The result holds.

If you had simply added 20% markup and then ignored the fee, the fee would have eaten most of your profit.

What your result means in practice

A percentage by itself is not good or bad. It depends on your industry, volume and overhead.

  • Retail and grocery often run on low margins and rely on volume.
  • Software, digital products and services can sustain margins above 70%.
  • Handmade or custom goods should price in labor time, not just materials.

Gross margin only covers the direct cost of the product. Rent, salaries, marketing and taxes still have to come out of it. If your gross margin is thin, your net profit may be zero or negative even when sales look healthy. For a broader view of how a project pays off, you can pair this with a return calculation from Calculatorr.

Real example with a batch of products

You sell 200 units at a cost of 12.50 each and a price of 20.

  • Revenue: 200 x 20 = 4,000
  • Total cost: 200 x 12.50 = 2,500
  • Profit: 1,500
  • Markup: 1,500 / 2,500 = 60%
  • Margin: 1,500 / 4,000 = 37.5%

If a supplier tells you that you are making a 60% profit, they are describing markup. If your accountant says 37.5%, they are describing margin. Both are correct.

How discounts affect margin

Discounts reduce the price but not the cost, so margin drops faster than most people expect.

A product costs 60 and sells for 100, a 40% margin. You offer 10% off, so the price becomes 90.

  • New profit: 90 - 60 = 30
  • New margin: 30 / 90 = 33.33%
  • Profit per unit fell from 40 to 30, a 25% drop

To earn the same total profit, you would need to sell 40 / 30 = 1.33 times as many units, which is 33% more volume. A 10% discount often needs a much larger sales increase to pay for itself.

Common mistakes when using markup and margin

  • Treating them as the same number. A 50% markup is not a 50% margin. The real margin is 33.33%.
  • Forgetting costs. Shipping, packaging, returns and payment fees all belong in the cost base.
  • Applying margin as a multiplier. Cost x 1.30 produces a markup of 30%, not a margin of 30%. Divide by 0.70 instead.
  • Ignoring percentage-based fees. Fees calculated on the sale price must go in the denominator.
  • Comparing across teams without agreeing on a definition. Always state whether a figure is markup or margin.
  • Rounding too early. Keep at least four decimals during the calculation and round only the final price.

Quick checklist before you set a price

  1. Add up every direct cost per unit.
  2. Decide whether your target is markup or margin.
  3. Include any fee that depends on the sale price.
  4. Calculate the price with the matching formula.
  5. Check the result by recomputing profit and the other percentage.
  6. Test how a typical discount would change your margin.

Repeat this process whenever supplier costs change. A small cost increase that is not passed on to the price reduces margin immediately, and the lost percentage points add up quickly across hundreds of sales. Keeping both figures visible, markup for building the price and margin for judging the result, gives you a reliable way to price with confidence.

Why Choose Calculatorr.com?

We're dedicated to providing the most accurate, easy-to-use calculators for all your needs.

100% Free

All of our calculators are completely free to use, no hidden fees or subscriptions.

Private & Secure

Your data never leaves your browser. We don't store any of your calculations.

Mobile Friendly

Use our calculators on any device - desktop, tablet, or smartphone.