Margin and Markup Calculator

Compare margin and markup or solve a selling price from cost and an entered target margin.

On-device No sign-up Free to use

Calculate margin and markup controls

Showing an example. Edit to see your own.

What to work out
?

Used in the cost-and-price mode.

More options
?

Labels the amounts you enter. It does not convert currencies or fetch rates.

?

Used only in the target-margin mode. A margin is the share of the selling price that is not cost.

Processed in your browser. Your inputs stay on this device.

Result

Showing an example.

An $80 cost and $100 price leave $20. That is 20% of the price but 25% of the cost. In the separate target mode, a 40% margin on an $80 cost would require $80 ÷ 0.6, displayed as $133.33.

A cost of $80.00 and selling price of $100.00 leave a gain of $20.00 per item. Margin is 20.00%; markup is 25.00%.

https://usefreetools.net/margin-markup-calculator · 20 November 2026

Was this helpful?

How to use Margin and Markup Calculator

  1. Choose What to work out. Use Margin and markup from cost and price to inspect two amounts, or Selling price from a target margin to solve a price.
  2. Enter Cost per item on the same unit basis as the sale. In the first mode, enter Selling price per item; in target mode, enter Target margin from 0% up to, but not including, 100%.
  3. Select Calculate margin and markup. Read the difference per item and both percentages: margin divides that difference by selling price; markup divides it by cost.
  4. In target mode, review the price calculated as cost ÷ (1 − margin fraction). This is not the same as adding the target percentage to cost. Copy the result if needed; no file download is generated.

Example: Margin and Markup Calculator

An $80 cost and $100 price leave $20. That is 20% of the price but 25% of the cost. In the separate target mode, a 40% margin on an $80 cost would require $80 ÷ 0.6, displayed as $133.33.

You add
Currency used for display: USD; What to work out: from-cost-price; Cost per item: 80; Selling price per item: 100; Target margin (%): 40
You get
A cost of $80.00 and selling price of $100.00 leave a gain of $20.00 per item. Margin is 20.00%; markup is 25.00%.

Options

Cost per item
Use the same per-item basis as the selling price. Include any direct costs you want the difference to reflect.
Selling price per item
The price before any tax or fees that this calculator does not include. It must be above zero because margin divides by this price.
Currency display
The currency selector labels per-item cost, price and difference. Margin and markup remain percentages; no conversion is applied.

Supported inputs and limits

  • Cost and an entered selling price must be positive and no more than 1,000,000,000,000.
  • Use ordinary decimals without grouping commas, currency symbols or exponents.
  • Target margin must be at least 0% and below 100%, and its calculated price must also remain within the supported amount limit.
  • Price below cost gives a loss and negative percentages in cost-and-price mode.
  • Target mode ignores the selling-price field and does not accept a negative target margin.
More details

Results display two decimal places with half-up rounding; a displayed target price may not reproduce the exact entered percentage when recalculated from cents.

Only the entered cost and price are compared.

Shipping, overhead, tax and payment fees are not added automatically, so the difference is not necessarily net profit.

There is no sales forecast, exchange rate, market-price recommendation or automatic saving.

Where your input is processed

This tool does not upload your inputs. See the limits for anything saved on your device.

The denominator changes the percentage

Subtract cost from selling price. Divide that same difference by selling price for margin, or by cost for markup, then multiply by 100. The University of Maine’s retail-pricing section distinguishes these cost and selling-price bases; checked 24 October 2026. This page applies them to entered unit amounts rather than estimating operating profit.

Questions about Margin and Markup Calculator

Why are margin and markup different percentages?

They use the same difference but divide it by different amounts. Margin divides by selling price; markup divides by cost. With cost 80 and price 100, they are 20% and 25%.

What happens when I sell below cost?

The difference and both percentages are negative. For example, cost 120 and price 100 gives a 20.00 loss, a -20.00% margin and a -16.67% markup.

Does this show my business's net profit?

No. It compares only the cost and selling price you enter for one item. Add all relevant costs separately before treating the difference as profit.

Page updated · Project managed by Tony Hines · Report a problem with Margin and Markup Calculator