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

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).

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.

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