Margin and markup calculator

Compare margin and markup, or find a selling price from cost and a target percentage.

Detected automatically. You can change it; your choice is saved. No exchange rate applied.
Formula source · OpenStax

Known cost and price: 0.01–10¹²; target margin: 0–99.99%, or markup: 0–10,000%. Margin = profit / price; markup = profit / cost. Taxes, fees and overhead are excluded. A price below cost shows a loss. Calculated prices display four decimal places.

CALCULATION RECEIPT- / - / -
Selling price100.0000MAD
Known valueSelling price
Cost (MAD)80
Selling price (MAD)100
Gross profit20.0000 MAD
Margin on selling price (%)20.0000 %
Markup on cost (%)25.0000 %
PDF: receipt, chart and detailed table.

How to use this calculator

  1. Enter your cost.
  2. Choose a known price, margin or markup.
  3. Compare price, profit and percentages.

What this calculator does

This calculator connects cost, selling price and profit. Margin uses selling price as its base; markup uses cost. You can enter a known price or find a price for a target percentage.

Worked example

Cost 80, selling price 100

  1. Profit is 100 − 80 = 20.
  2. Margin = 20 / 100 × 100 = 20%. Markup = 20 / 80 × 100 = 25%.

Profit 20, margin 20% and markup 25%.

Frequently asked questions

Are margin and markup the same?

No: cost 80, price 100, profit 20. Margin is 20/100 = 20%; markup is 20/80 = 25%.

Can I calculate a loss?

Yes. In known-price mode, enter a price below cost.

Does this include VAT?

No. Use amounts on the same tax basis and the VAT calculator to add tax.

Tips for setting a selling price

  • Compare cost and price on the same tax basis; VAT is not added automatically.
  • Define which costs are included before interpreting profit. A 20% margin is not a 20% markup.