Margin and Markup Calculator

Enter any two of cost, selling price, margin, markup or profit and get the rest, with a margin to markup table and the pricing mistake to avoid.

The interactive tool loads here when JavaScript runs.

About this tool

What is the Margin and Markup Calculator?

Margin and markup both describe the same profit, but they divide it by different numbers. Gross margin is profit as a share of the selling price. Markup is profit as a share of cost. An item that costs 60 and sells for 100 earns 40 of profit, which is a 40% margin and a 66.67% markup at the same time. This calculator works out all five quantities (cost, price, profit, margin and markup) from whichever two you already know.

Pick the pair you have, such as "cost and target margin" when you are setting a price, or "price and markup" when you are checking a supplier's list. Results update as you type, and an optional units field turns per-item figures into totals for a batch or a month. The conversion table below the results shows common margins next to the markup that produces them and the price each one needs at your cost.

All the arithmetic runs in your browser. The inputs live in the page address, so the Share button gives you a link that reopens the same numbers.

  • Solves any valid pair of cost, price, margin, markup and profit
  • Margin to markup conversion table with prices at your cost
  • Shows the margin-as-markup pricing mistake and its cost per unit
  • Optional unit count for batch totals
  • Currency selector, copy and shareable links
Read the guide: Margin, Markup and Break-Even: The Arithmetic of Pricing

How to use the Margin and Markup Calculator

  1. Choose what you know from the "I know the" menu, for example Cost and target margin.
  2. Type the two values. Margin and markup are entered as percentages, cost and price as money.
  3. Optionally enter the number of units sold to see total revenue and total profit.
  4. Read the margin, markup, profit, price and cost cards. The calculation panel shows each formula with your numbers.
  5. Check the "classic pricing mistake" panel to see what would happen if the margin were applied as a markup, then copy the results or share a link.

Worked examples

From cost and price

Input

Cost 60, selling price 100

Output

Profit 40.00; gross margin 40%; markup 66.67%

The 40 of profit is 40% of the 100 price and 66.67% of the 60 cost. Same money, two ratios.

Pricing for a 40% margin the wrong way

Input

Cost 60, target margin 40%, 500 units

Output

Markup maths gives 84.00 (28.57% margin); the correct price is 100.00; shortfall 16.00 per unit, 8,000.00 on 500 units

Adding 40% to cost feels like a 40% margin but is not. The calculator flags the gap so you can see what it costs at your volume.

Working back from a list price

Input

Price 49.99, markup 150%

Output

Cost 20.00; profit 29.99; margin 60%

Dividing the price by 1 + markup (2.5) recovers the cost. A 150% markup is a 60% margin.

Background and insight

The two ratios convert with simple formulas. Markup = margin / (1 - margin), and margin = markup / (1 + markup). A 25% margin needs a 33.33% markup, a 50% margin needs a 100% markup, and a 75% margin needs a 300% markup. Margin can never reach 100% while the item costs anything, because profit can never be the whole price. Markup has no upper limit.

Retailers have historically quoted markup because it is easy to apply on the shop floor: multiply cost by 1.5 and you are done. Finance teams and investors talk about gross margin because it lines up with the income statement, where gross profit is shown as a percentage of revenue. Mixing the two vocabularies in one conversation is where most pricing errors start.

This tool deals in gross margin per item: selling price less the direct cost of the item. It does not subtract rent, salaries, marketing or tax, so it is not net profit margin. For the volume you need to cover those overheads, use the break-even calculator.

Common use cases

  • Setting a retail price

    Start from landed cost and the gross margin your category needs, and let the tool give the shelf price instead of guessing a multiplier.

  • Checking a wholesaler's terms

    A supplier quotes a suggested retail price and a "keystone" markup. Enter price and markup to see the margin you actually keep.

  • Quoting services

    Freelancers and agencies with a cost per hour can find the rate that leaves a target margin after subcontractor or tool costs.

  • Explaining pricing to a team

    Use the conversion table to show sales staff why "50% off cost" and "50% margin" are very different prices.

Tips and limitations

  • Include every direct cost in "cost": freight, duties, packaging and card fees all come out of the margin.
  • A discount comes straight off the margin, not the markup. Taking 20% off a 40% margin item leaves a 25% margin, not 20%.
  • Negative results are allowed: a price below cost shows a negative margin and a loss per unit, which is useful for clearance pricing.
  • Margin and markup alone cannot be solved together. They describe the same ratio, so add a cost, price or profit.
  • Currency is only a display choice. The maths is identical in dollars, euros, pounds or rupees.

Frequently asked questions

What is the difference between margin and markup?

Both start from the same profit (price minus cost). Margin divides it by the selling price, markup divides it by the cost. Cost 60 and price 100 give a 40% margin and a 66.67% markup. Because cost is always smaller than price when you make a profit, markup is always the larger percentage.

How do I convert a margin percentage to a markup?

Use markup = margin / (1 - margin) with the margin as a decimal. A 30% margin is 0.30 / 0.70 = 42.86% markup. Going the other way, margin = markup / (1 + markup), so a 100% markup is a 50% margin.

How do I price a product to get a 40% gross margin?

Divide cost by (1 - 0.40), which is 0.60. A 60 item needs a price of 100. Multiplying cost by 1.40 instead gives 84, which is only a 28.57% margin. That is the most common pricing error and the calculator shows it next to your result.

Is a 50% markup the same as a 50% margin?

No. A 50% markup on a cost of 100 gives a price of 150 and a margin of 33.33%. To reach a 50% margin you need a 100% markup, which is the retail "keystone" price of double cost.

Can profit margin be more than 100%?

Gross margin cannot reach 100% unless the item cost nothing, because profit cannot exceed the price. Markup can be any size: a product bought for 10 and sold for 50 has a 400% markup and an 80% margin.

Does this margin calculator include overheads or tax?

No. It calculates gross margin per item from the direct cost you enter. Rent, wages, marketing and income tax are not subtracted. Use the break-even calculator to see how many units cover those fixed costs.

Is there an in-depth guide to the Margin and Markup Calculator?

Yes. “Margin, Markup and Break-Even: The Arithmetic of Pricing” covers the background, how it works, common pitfalls and worked examples. Read the full guide.