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.
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.
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.
- Gross profit: 2,000 − 1,200 = $800.
- Margin: 800 ÷ 2,000 = 0.40 = 40%.
- 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 margin | Net margin | |
|---|---|---|
| Takes off | Direct job costs only | Direct job costs, overhead and usually tax |
| Formula | (revenue − COGS) ÷ revenue | net profit ÷ revenue |
| Use it to | Price jobs and compare one job with another | See 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.
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 | Multiply cost by | Price 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
- 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.
- Pick what you know. Choose whether you know the price, the margin you want, or the markup you use.
- Enter the number. Type the price, the target margin or the markup.
- Read the result. The calculator shows the price, gross profit, margin and markup, and the formula with your numbers in it.
- 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?
What is gross profit margin?
How do I calculate gross profit?
What is the difference between margin and markup?
How do I set a price from a target margin?
How do I convert markup to margin?
What markup do I need for a 30% margin?
What is a good profit margin for a service business?
What is the difference between gross margin and net margin?
Should I include my own wages in the job cost?
Can a profit margin be negative or over 100%?
Does sales tax change my margin?
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.