Founding members: CA$59/month for your whole team, locked while you stay subscribed. Only the first 20 Canadian trade businesses. Claim a spot: start free

Free tool · No sign-up

Margin calculator: calculate your profit margin

Enter what something costs you and what you charge, and see your gross profit, margin and markup straight away. Or start from the margin you want and get the price to charge. The formula is shown with your own numbers.

Add extra costs or a discount
Selling price
—
Gross profit
—
Margin
—
Markup
—

How it’s worked out

Enter your cost and price to see the maths.

How to calculate profit margin

Margin = (price − cost) ÷ price. If a job costs you $400 in materials and labour and you charge $600, your gross profit is $200 and your margin is $200 ÷ $600 = 33.33%. In other words, you keep about 33 cents of every dollar the customer pays, before overhead.

To hit a target margin, divide instead of adding. Price = cost ÷ (1 − margin). For a 40% margin on a $400 cost: $400 ÷ 0.60 = $666.67. Adding 40% to the cost ($560) would leave only a 28.57% margin.

Worked examples

  • A service call: parts and labour cost you $180 and you charge $275. Profit $95, margin $95 ÷ $275 = 34.55%, markup $95 ÷ $180 = 52.78%.
  • A renovation: materials and crew cost $18,000 and the contract is $24,000. Profit $6,000, margin 25%, markup 33.33%.
  • A part you resell: it costs $60 and you want a 40% margin. Price = $60 ÷ 0.60 = $100. Adding 40% to the cost would give $84, only a 28.57% margin.

Calculate margin in a spreadsheet

With the price in cell A2 and the cost in B2, margin is =(A2-B2)/A2 (format it as a percentage) and markup is =(A2-B2)/B2. To find the price for a target margin in C2 (entered as 30%), use =B2/(1-C2).

Gross margin and net margin

This calculator works out gross margin: what’s left after the direct cost of the job. Net margin also takes off overhead such as vehicles, insurance, the office and software. Price jobs so the gross margin covers your overhead and still leaves a profit; our hourly rate calculator helps you see what your overhead adds to every hour.

Margin to markup: what to add to your cost

Margin you wantMarkup to add to costPrice on a $100 cost
10%11.11%$111.11
15%17.65%$117.65
20%25.00%$125.00
25%33.33%$133.33
30%42.86%$142.86
35%53.85%$153.85
40%66.67%$166.67
50%100.00%$200.00
60%150.00%$250.00

Working the other way round? Use the markup calculator. Ready to quote? Put the price on a free estimate, and see how to quote faster without underpricing.

Questions

What’s the difference between margin and markup?

Both compare profit to something else. Margin compares profit to the selling price; markup compares profit to the cost. Something that costs $40 and sells for $60 makes $20 profit: that’s a 33.33% margin and a 50% markup. The same sale always has a bigger markup than margin.

How do I price for a 30% margin?

Divide the cost by (1 − 0.30). A $40 cost becomes $40 ÷ 0.70 = $57.14. Adding 30% to the cost ($52) gives only a 23.08% margin, which is the most common pricing mistake.

Is gross margin the same as profit?

No. This calculator shows gross margin: what’s left after the direct cost of the item or job. Your net profit is what’s left after everything else too: rent, vehicles, insurance, office wages, software and income tax.

Should sales tax be included?

No. Use prices before GST, HST or PST. Sales tax you collect isn’t your money, so it doesn’t belong in your margin.

How do I calculate margin percentage?

Subtract the cost from the price, divide by the price, and multiply by 100. A $1,000 job that costs you $650: ($1,000 − $650) ÷ $1,000 = 0.35, so a 35% margin.

How do I calculate margin in Excel or Google Sheets?

With the price in A2 and the cost in B2, use =(A2-B2)/A2 and format the cell as a percentage. For the price that gives a target margin, with the cost in B2 and the margin in C2 (as 30%), use =B2/(1-C2).

How do I turn a markup into a margin?

Margin = markup ÷ (1 + markup). A 50% markup is 0.5 ÷ 1.5 = 33.33% margin. A 100% markup (doubling your cost) is a 50% margin.

Can a margin be more than 100%?

No. Margin is a share of the price, so it can approach 100% but never reach it. Markup can be more than 100%: a $10 part sold for $35 has a 250% markup but a 71.43% margin.

More free tools: all free business tools · markup calculator · GST/HST calculator