calc.funmagi.com · free money calculators

Profit Margin Calculator

Enter cost and selling price to get gross profit, margin and markup – or enter a target margin to get the price you should charge.

By TanLabs · Formulas cross-checked against the free spreadsheet · Updated 2026-10-31 · Runs in your browser – nothing you type is sent anywhere

📥 Download the free Excel / Google Sheets version (same formulas, no sign-up).
Want the full system? Simple Bookkeeping Spreadsheet with Automatic P&L – $15

How to use this calculator

  1. Enter the full cost of one unit: product cost plus shipping in, packaging and payment fees if you want a more realistic margin.
  2. Enter the selling price before sales tax.
  3. Read gross profit, margin and markup together. Margin is what most businesses report; markup is what many suppliers quote.
  4. Enter a target margin to get the price you need to charge.

Worked example

With cost $40, selling price $65, target margin 40%:

Margin 38.5% · Profit $25
Markup 62.5% · Price for a 40% margin: $66.67

Change any number above – the result, chart and table update instantly. Use Copy link to save or share your exact scenario.

How it's calculated

Gross profit = price − cost. Margin = profit ÷ price. Markup = profit ÷ cost. Price for target margin m = cost ÷ (1 − m).

Markup to margin conversion

The same profit looks very different as markup or margin. For a $40 cost:

Markup on costEquals gross marginPrice for a $40 cost
20%16.7%$48.00
25%20.0%$50.00
33.3%25.0%$53.33
50%33.3%$60.00
60%37.5%$64.00
100%50.0%$80.00
150%60.0%$100.00
200%66.7%$120.00

Doubling the cost (100% markup) is only a 50% margin. A 33% markup gives a 25% margin. Margin can never reach 100%, while markup has no upper limit.

Common mistakes

FAQ

Margin vs markup?

Margin divides profit by the price, markup divides it by the cost. A 50% markup is only a 33% margin.

Gross or net?

This is gross margin. Net margin also subtracts overheads like rent, software and tax.

Can margin be over 100%?

No. Markup can, margin cannot.

What is a good profit margin?

It depends on the industry. Grocery and fuel run on thin gross margins; software and digital products can be very high. Compare with businesses like yours and make sure the gross profit covers your overheads.

How do I calculate the selling price from a margin?

Price = cost ÷ (1 − margin). For a $40 cost and a 40% margin: $40 ÷ 0.60 = $66.67.

What is net profit margin?

Net profit ÷ revenue, after all expenses, interest and tax. It is always lower than gross margin.

Related calculators

Freelance Hourly Rate Calculator
Work backwards from the income you want to the hourly rate you need, after business costs,…
Net Worth Calculator
Add up what you own and what you owe to get your net worth – the single number that shows …
Savings Goal Calculator
Enter a goal, a deadline and an interest rate to get the monthly amount you need to save.…

More calculators