Margin calculator

Type what a job costs you and what you charge, and see the gross profit and the profit margin as you type, with the markup beside it. Or start from the margin you want and get the price to quote, or the most you can spend.

Margin is worked on the selling price and markup on the cost, side by side, so one is never read as the other.

What to find

Materials, labor at what it costs you, subcontractors, hire and disposal.
What you charge the customer, before any sales tax or VAT.
Free for your own website, with no account and no ads.

Put the margin calculator on your website

Paste this code into an HTML or embed block on any page. Your visitors use the calculator right there, the same as here: free, no sign-up, no ads, and nothing they type is sent anywhere.

Preview it

It fits any width from a phone up to 640 px and grows to the calculator's height. The line under it links to this page, so your visitors can see where it comes from. Every calculator you can embed

Free calculator by Billsmith

Gross margin35%
Gross profit$350.00
See the working

Profit margin, worked out

Why margin is on price

Margin answers "of every dollar the customer pays, how much do I keep?", so it divides the profit by the selling price. Markup answers "how much did I add to what it cost me?", so it divides the same profit by the cost. Whenever you make a profit the price is the bigger number, which is why the margin is always the smaller percentage of the two.

The formulas

Margin = (price − cost) ÷ price. $1,000 less $650 is $350, and $350 ÷ $1,000 is 35%.

Price for a margin = cost ÷ (1 − margin). $650 ÷ 0.65 = $1,000.

Most you can pay = price × (1 − margin). $1,000 × 0.65 = $650.

Margin and the markup it takes

Common margins and the markups on cost that give them
MarginMarkup
10%11.11%
15%17.65%
20%25%
25%33.33%
30%42.86%
35%53.85%
40%66.67%
50%100%

Markup = margin ÷ (100 − margin). A 20% margin is 20 ÷ 80 = 25%.

The common mistake, worked through

A kitchen refit costs you $8,000 and you want a 25% margin. Adding 25% to the cost gives $10,000, but $2,000 of $10,000 is a 20% margin, not 25%.

The right price is $8,000 ÷ 0.75 = $10,666.67. That keeps $2,666.67, which is 25% of the price. Quoting $10,000 leaves $666.67 behind on that one job.

Gross margin, not net

This is gross margin: the price less what the job itself cost. Insurance, your vehicle, your phone, software and your time off are paid out of it. What is left after those is the net margin, so a gross margin that only just covers the job leaves nothing for the business.

Then quote it

Press "Put this price on an estimate" and the selling price lands on a line of the estimate template, ready to describe and send. Sales tax or VAT, if you charge it, goes on top there. Think in markup instead? The markup calculator starts from the percentage you add to cost.

Questions

How do I calculate profit margin?

Take the cost away from the selling price, divide by the selling price and multiply by 100. A job you sell for $1,000 that costs you $650 makes $350, and $350 ÷ $1,000 × 100 = a 35% margin.

How do I find the price for a target margin?

Divide the cost by one minus the margin. A $650 cost at a 35% margin is $650 ÷ 0.65 = $1,000. Adding 35% to the cost instead gives $877.50, which is only a 25.93% margin.

How do I turn a margin into a markup?

Markup = margin ÷ (100 − margin). A 20% margin is 20 ÷ 80 = a 25% markup; a 35% margin is a 53.85% markup; a 50% margin is a 100% markup.

Can a margin be more than 100%?

No. A margin is profit as a share of the selling price, and the profit can never be more than the price, so a margin stays under 100%. A markup has no such limit: selling at three times cost is a 200% markup, but a 66.67% margin.

What is the difference between gross profit and gross margin?

Gross profit is an amount of money: the selling price less what the job cost, such as $350. Gross margin is that profit as a percentage of the price: $350 of $1,000 is 35%.