Margin and markup calculator

FI-07Finance

Calculate profit margin and markup from cost and price, or the price for a target margin.

What to calculate
Margin (of price)
20%
Markup (on cost)
25%
Profit per unit
20.00
How we calculated it
  1. 100.00 − 80.00 = 20.00
  2. 20.00 ÷ 100.00 × 100% = 20%
  3. 20.00 ÷ 80.00 × 100% = 25%

Last updated: October 2026 · Report a calculation error

Margin vs markup — how to calculate them

Both describe the same profit, measured from a different base. Margin is profit divided by the selling price; markup is profit divided by the cost.

Example: you buy an item for 80 and sell it for 100. Profit is 20, so the margin is 20 ÷ 100 = 20% and the markup is 20 ÷ 80 = 25%.

How to set a price for a target margin

Price = cost ÷ (1 − margin). With a cost of 80 and a 25% margin the price is 80 ÷ 0.75 = 106.67. A common mistake is adding 25% to the cost (80 + 25% = 100) — that gives a 25% markup but only a 20% margin.

MarkupMargin
25%20%
50%33.33%
100%50%
200%66.67%

A margin can never exceed 100%, while a markup can be any size.

Frequently asked questions

Should margin be calculated on prices with or without VAT?

Without — VAT is not the business’s income but a tax passed on to the government. Enter net cost and net price.

What is a good margin?

It depends on the industry: grocery retail often works on low double-digit margins, while services and niche online products can reach several tens of percent. The profit per unit must cover fixed costs — check it with the break-even calculator.

See alsoWhole category

  1. FI-01Poland salary calculator (gross to net)Work out your take-home pay in Poland from gross salary: ZUS social security, health insurance, PIT income tax and the under-26 relief.
  2. FI-02Loan payment calculatorWork out your monthly loan payment — equal or decreasing installments — and the total interest.
  3. FI-03VAT calculatorAdd VAT to a net price or remove it from a gross price at any rate.
  4. FI-04Simple interest calculatorCalculate simple interest for a given amount, annual rate and number of days.