Margin Calculator

Calculate margin percentage.

FreeNo accountOn your device

Runs in your browser. How to verify

Loading tool…

Educational estimate only — not investment, lending, or financial advice. Confirm figures with statements or a qualified professional before you act.

About this tool

Use this when you are setting a price. Find the price that gives a target margin, the highest cost you can pay for a price and margin, or convert a markup percentage to a margin and back.

How to use

1
Step 1
Choose a mode: margin from price and cost, price from cost and margin, cost ceiling, or markup to margin.
2
Step 2
Enter the numbers that mode asks for.
3
Step 3
Copy the result.

How it works

Price from margin divides cost by (1 − margin), because margin is a share of the price. The cost ceiling multiplies price by (1 − margin). Converting markup m to margin is m ÷ (1 + m), and margin g to markup is g ÷ (1 − g). Margin has to be below 100%.

price = cost ÷ (1 − margin)      max cost = price × (1 − margin)      margin = markup ÷ (1 + markup)

Worked example

Pricing for a 35% margin

Input
Cost 65; target margin 35%
Output
Price 100.00
Walkthrough
65 ÷ (1 − 0.35) = 65 ÷ 0.65 = 100. Check: profit is 35, which is 35% of 100. For the cost ceiling, a price of 120 at a 40% margin allows a cost of at most 72.

Limitations

  • Margin must be under 100%.
  • Gross margin only; no tax, fees or overheads.

Questions

What is the difference between margin and markup?
Margin is profit divided by price. Markup is profit divided by cost. A 25% markup equals a 20% margin.
How do I convert 50% margin to markup?
0.50 ÷ (1 − 0.50) = 1.00, so a 50% margin is a 100% markup.
How do I find the most I can spend on a product?
Use the cost ceiling mode: price × (1 − margin). At a price of 120 and a 40% margin that is 72.
Why can't I use a 100% margin?
It would need a cost of zero, and the price formula divides by 1 minus the margin.

Features

  • Four calculation modes
  • Markup and margin converter
  • Price from target margin
  • Cost ceiling
  • Runs in your browser

Related resources

Guides and videos from around the web—opens on YouTube or the publisher’s site.

  • Finding a percentage

    Khan Academy

    Tax and discount percentages on invoices.

    Watch on YouTube
  • PDF, What is it FOR?

    Computerphile

    Invoices and quotes often ship as fixed-layout PDF packets.

    Watch on YouTube