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.