Invoice Carry/Free tools/Profit margin calculatorRuns in your browser

Profit margin calculator

Quick answerProfit margin is the share of the selling price you keep after paying for what you sold. Enter your cost and price to see your gross margin and markup, or enter your cost and the margin you want to get the price to charge. It covers gross margin only, before overheads.

How to use it

Three steps, all in your browser.

  1. 01

    Enter your cost

    What the item or job costs you, before tax.

  2. 02

    Enter a price or a target margin

    Your selling price, or the margin you want to make.

  3. 03

    Use the price on your quote

    Put it on the line, then make the invoice with the free generator.

Price needed for a target margin on a $100 cost

Target marginSelling priceProfitSame as markup
10%$111.11$11.1111.1%
20%$125.00$25.0025%
30%$142.86$42.8642.9%
40%$166.67$66.6766.7%
50%$200.00$100.00100%

Updated 20 Nov 2026 · By Invoice Carry

How do you calculate profit margin?

Subtract your cost from the price, divide by the price, and multiply by 100. In plain words: profit = price minus cost, and margin = profit / price x 100. The markup on the same sale is profit / cost x 100.

Worked example: a job costs you $300 and you charge $450. The profit is $450 minus $300 = $150. The margin is $150 / $450 x 100 = 33.3%, and the markup is $150 / $300 x 100 = 50%.

Margin is always smaller than markup on the same sale, because the price you divide by is bigger than the cost.

How do you find the price for a target margin?

Divide your cost by 1 minus the target margin as a decimal. In plain words: price = cost / (1 minus margin / 100).

Worked example: a job costs you $300 and you want a 40% margin. The price is $300 / (1 minus 0.40) = $300 / 0.60 = $500. Check it: the profit is $200, and $200 / $500 = 40%.

Do not just add 40% to the cost. $300 plus 40% is $420, which is only a 28.6% margin. That gap is how many small businesses end up working for less than they planned.

Read more: Contractor invoices

What does gross margin leave out?

Gross margin only takes away the direct cost of what you sold, such as materials, parts or stock. It does not take away running costs like your van, phone, insurance, software or your own wages.

That means a healthy gross margin is not the same as a healthy business. The money left after direct costs still has to pay all of those overheads before anything is true profit.

If labour is part of the job, decide whether you count it as a direct cost. Counting it gives a more honest margin on each job. Our hourly rate calculator helps you put a fair price on your time.

Questions

About the profit margin calculator

What is the profit margin formula?+

Margin = (price minus cost) / price x 100. A $450 sale that costs $300 has a 33.3% margin.

How do I price for a 30% margin?+

Divide your cost by 0.70. A $100 cost needs a $142.86 price for a 30% margin.

Is a 50% markup a 50% margin?+

No. A 50% markup is a 33.3% margin. You need a 100% markup to reach a 50% margin.

Can profit margin be 100%?+

Only if the cost is zero. As long as something costs you money, margin stays below 100%.

What is the difference between gross and net margin?+

Gross margin takes away only the direct cost of the sale. Net margin also takes away running costs and taxes. This calculator shows gross margin.

What is a good profit margin?+

It depends on your trade, prices and running costs. Work out what your overheads need and price so the margin covers them with some left over.

Related free tools

Markup calculator

Turn your cost and markup into a selling price, profit and margin.

Open tool→

Hourly rate calculator

Work out what to charge per hour from the income you want and your real hours.

Open tool→

Estimate generator

Write a job estimate with labour, materials and tax. Download the PDF.

Open tool→

Quote generator

Send a fixed-price quote for a job or service. Free PDF, no sign-up.

Open tool→

Your next invoice can be the paid one.

Your first document is free. No account needed.