Limited-time price: Front Office at $249/month, locked for 12 months. Sign up by November 30. See the plan

Your Website ID

Enter the ID from your email to open your preview website, or to hear your AI receptionist answer as your business.

Margin Calculator

This margin calculator finds your gross profit, profit margin and markup from what a job costs you and what you charge, or works out the price to charge for the margin you want. The formula: margin = (price − cost) ÷ price × 100. It runs in your browser and nothing you type is sent or stored.

Reviewed October 2026 · by the BrickByClick team

At a glance

  • Margin = (price − cost) ÷ price. It is profit as a share of what you charge.
  • Markup = (price − cost) ÷ cost. It is profit as a share of what the job cost you.
  • Price for a target margin = cost ÷ (1 − margin). A 40% margin on $1,200 is $2,000, not $1,680.

Profit margin calculator

Start with what the job costs you, then tell it the price, the margin you want or the markup you use. Results update as you type.

1. Job cost

Cost per hour is what an hour costs you (wage plus payroll taxes and benefits), not what you bill.

Other: subcontractors, equipment rental, permits, disposal. Leave overhead out for gross margin.

Total job cost $1,200.00

2. What do you know?

Result

Price
$2,000.00
Job cost
$1,200.00
Gross profit
$800.00
Margin
40.00%
Markup
66.67%
Price multiplier
×1.6667

Runs in your browser. Nothing you type is sent or saved. Money is rounded to the cent, percentages to two decimals.

Want this on every job without retyping? BrickByClick job costing shows what each job made after labour and materials, from the CRM in the Starter plan, $99 a month.

How to calculate profit margin

Three numbers do all the work: the price (revenue), the cost and the gross profit between them.

  • Gross profit = price − cost
  • Margin % = gross profit ÷ price × 100
  • Markup % = gross profit ÷ cost × 100
  • Price = cost ÷ (1 − margin), with the margin as a decimal (40% = 0.40)
  • Price = cost × (1 + markup)

Worked example

A job takes 8 labour hours that cost you $45 each ($360) and $840 of materials. The job cost is $1,200. You quote $2,000.

  1. Gross profit: 2,000 − 1,200 = $800.
  2. Margin: 800 ÷ 2,000 = 0.40 = 40%.
  3. Markup: 800 ÷ 1,200 = 0.6667 = 66.67%.

Those are the numbers the calculator above opens with, so you can check it against your own maths.

What is gross profit margin?

Gross profit margin is the percentage of each sale you keep after paying the direct costs of doing that work. For a product business that is the cost of the goods. For a service business it is the cost of the job: the labour hours on site, materials, parts, equipment rental, subcontractors and dump fees.

It leaves out overhead, the costs you pay whether or not you do the job: rent, insurance, vehicles, phones, software, marketing and office staff. Take those off too and you get net profit margin, which is always lower.

Gross vs net profit margin
Gross marginNet margin
Takes offDirect job costs onlyDirect job costs, overhead and usually tax
Formula(revenue − COGS) ÷ revenuenet profit ÷ revenue
Use it toPrice jobs and compare one job with anotherSee whether the business as a whole makes money

Gross profit calculator for a month

The same maths works on totals. Enter a month of labour and materials as the job cost and the month’s sales as the price, and the calculator gives your gross profit and gross margin for the month.

Margin vs markup

Margin and markup describe the same dollars of profit, measured against different numbers. Margin compares profit with the price. Markup compares it with the cost. Because the cost is smaller than the price, the markup is always the bigger percentage.

The common pricing mistake

You want a 40% margin, so you add 40% to the cost: $1,200 × 1.40 = $1,680. The profit is $480, and 480 ÷ 1,680 is a 28.57% margin. To earn 40%, divide by 0.60 instead: $1,200 ÷ 0.60 = $2,000.

  • Margin = markup ÷ (1 + markup)
  • Markup = margin ÷ (1 − margin)

Margin can never reach 100%, because profit cannot be bigger than the price. Markup has no ceiling: a 200% markup means the price is three times the cost (a 66.67% margin).

Markup to margin conversion table

Find the margin you want, then multiply your cost by the multiplier to get the price. The last column shows the price on a $1,000 job cost.

Margin, markup and price multiplier
MarginMarkupMultiply cost byPrice on $1,000 cost
5%5.26%×1.0526$1,052.63
10%11.11%×1.1111$1,111.11
15%17.65%×1.1765$1,176.47
20%25.00%×1.2500$1,250.00
25%33.33%×1.3333$1,333.33
30%42.86%×1.4286$1,428.57
33⅓%50.00%×1.5000$1,500.00
35%53.85%×1.5385$1,538.46
40%66.67%×1.6667$1,666.67
45%81.82%×1.8182$1,818.18
50%100.00%×2.0000$2,000.00
55%122.22%×2.2222$2,222.22
60%150.00%×2.5000$2,500.00
65%185.71%×2.8571$2,857.14
70%233.33%×3.3333$3,333.33
75%300.00%×4.0000$4,000.00

How to price a job for the margin you want

  1. Add up the job cost. Enter labour hours and what each hour costs you, then materials and any other direct costs. The total becomes the cost.
  2. Pick what you know. Choose whether you know the price, the margin you want, or the markup you use.
  3. Enter the number. Type the price, the target margin or the markup.
  4. Read the result. The calculator shows the price, gross profit, margin and markup, and the formula with your numbers in it.
  5. Copy or print it. Copy the result to paste into an estimate, or print it.

Tips for service businesses

  • Use what an hour costs you, not the wage. Add payroll taxes, workers’ comp and benefits to the hourly wage. If you work on the job yourself, count your hours too.
  • Count every direct cost. Drive time, disposal, permits and small parts add up and quietly eat the margin.
  • Pick the margin from your overhead. If overhead takes 25 cents of every dollar you bill and you want 10 cents of net profit, you need about a 35% gross margin.
  • Check afterwards. Compare the margin you quoted with what the job really cost once it is done. That is how you learn which jobs pay.

Once the price is set, put it on an estimate and then an invoice. The free invoice generator makes a PDF in your browser, and BrickByClick Free emails invoices with a pay link and takes card payments for $0 a month. Estimates, job tracking and reports come with Starter.

Questions people ask

How do I calculate profit margin?
Take the price, subtract the cost, divide by the price and multiply by 100. A job you sell for $2,000 that costs you $1,200 has a gross profit of $800 and a margin of 800 ÷ 2,000 = 40%.
What is gross profit margin?
Gross profit margin is the share of each sale left after the direct cost of doing the work, such as labour on the job and materials. It is gross profit divided by revenue. It does not take off overhead like rent, insurance, the truck or your office, which is what net margin does.
How do I calculate gross profit?
Gross profit = revenue − cost of goods sold. For a service job, cost of goods sold is the direct cost of that job: the labour hours you pay for, materials, equipment rental and any subcontractor.
What is the difference between margin and markup?
Both use the same profit, but margin divides it by the price and markup divides it by the cost. A $1,200 job sold for $2,000 has an $800 profit: that is a 40% margin and a 66.67% markup. Margin can never reach 100%; markup can go above 100%.
How do I set a price from a target margin?
Divide the cost by (1 − the margin as a decimal). For a 40% margin on a $1,200 cost: 1,200 ÷ 0.60 = $2,000. Adding 40% to the cost instead gives $1,680, which is only a 28.57% margin.
How do I convert markup to margin?
Margin = markup ÷ (1 + markup). A 50% markup is 0.5 ÷ 1.5 = 33.33% margin. To go the other way, markup = margin ÷ (1 − margin), so a 25% margin is a 33.33% markup.
What markup do I need for a 30% margin?
A 42.86% markup. Multiply your cost by 1.4286 (or divide it by 0.70) to get the price.
What is a good profit margin for a service business?
There is no single right number: it depends on your trade, your area and your overhead. Work out what your overhead costs you each month, then set a gross margin high enough to cover it and leave the net profit you want. Compare your own jobs over time rather than a number from another industry.
What is the difference between gross margin and net margin?
Gross margin takes off only the direct costs of the work. Net margin also takes off overhead, such as rent, insurance, vehicles, phones, software and office wages, and usually tax. Net margin is always lower than gross margin.
Should I include my own wages in the job cost?
If you work on the job, yes. Count your hours at the rate you would pay someone else to do them. Otherwise the margin looks better than it is, and the business cannot afford to replace you on the tools.
Can a profit margin be negative or over 100%?
It can be negative: that means the job cost more than you charged. It cannot reach 100% unless the cost is zero, because the profit can never be bigger than the price. Markup has no upper limit.
Does sales tax change my margin?
Work out margin on the price before tax. Sales tax is collected for the government and is not your revenue, so leave it out of both the price and the cost.

See what every job really made

BrickByClick keeps your estimates, jobs and invoices in one CRM, so you can see what each job earned after labour and materials.

Free tools

Related