Margin and markup calculator

Two rates people often mix up: markup is measured on the cost, margin on the selling price.

Margin and markup calculator

I know…

Result

20.00Profit

Markup (profit ÷ cost)
25%
Margin (profit ÷ price)
20%

Margin and markup calculator

Inputs

I know…
The price
Cost (before tax)
80
Selling price (before tax)
100

How it is calculated

Profit = selling price − cost.

Result

Profit

20.00
Markup (profit ÷ cost)
25%
Margin (profit ÷ price)
20%

How it is calculated

  1. Profit = selling price − cost.
  2. Markup = profit ÷ cost × 100. Price = cost × (1 + markup ÷ 100).
  3. Margin = profit ÷ price × 100. Price = cost ÷ (1 − margin ÷ 100).

Example

Cost 80, price 100: profit 20, markup 25%, margin 20%.

Good to know

  • Work before tax: remove sales tax or VAT first.
  • Margin is always below 100%.

When to use it

  • Set a selling price from a cost and a target margin.
  • Check the margin of a product sold at a given price.
  • To apply successive discounts to that price, use the Successive discounts calculator.

Frequently asked questions

Why is a 25% markup not a 25% margin?

They are measured against different amounts. The same profit is a larger share of the cost than of the price, so markup is always higher than margin.

How far can a discount go before I lose money?

As far as your margin. With a 20% margin, a 20% discount brings you to cost, with no profit left.

Should shipping or fees count in the cost?

Yes, if you pay them for each unit sold. Leaving them out makes the margin look better than it is.

Updated October 10, 2026

Indicative result. For an important decision, check with a professional.