By Ben Millar · Technical lead
How to calculate gross margin for a service business
Gross margin is the share of revenue left after the direct costs included in your cost-of-service definition. Calculate it as revenue minus direct costs, divided by revenue, multiplied by 100. The arithmetic is simple. The useful work is defining costs and matching them to the revenue they produced.
On this page
Use a repeatable calculation
Start with one completed job whose revenue and costs you can trace. Write down the included cost categories, calculate gross profit dollars and then calculate the margin percentage. That small example gives the team a shared reference before you apply the same method to a full month.
After calculating the result, check what it leaves out. Gross margin does not cover every question about overhead, cash or available capacity. The guide to job costing for home-service businesses explains how to collect and assign the costs behind the formula. Use the same definitions in both processes so a change in margin reflects the work or its economics, rather than a change in what someone happened to include.
Write the formula and its inputs
Use two inputs for the same job or accounting period: revenue and direct service costs. Gross profit equals revenue minus direct costs. Gross margin percentage equals gross profit divided by revenue, multiplied by 100. Keep the dollar figure and percentage together in the review.
Do not mix a full month's revenue with costs for only part of the month. For a completed job, check whether the costs include everything required under your policy. For a business-wide calculation, use consistent accounting records. A scheduled amount, a completed-job amount and a cash receipt describe different events and should not be substituted without explanation.
Work through a made-up plumbing job
Suppose a hypothetical plumbing job has $1,000 of revenue, $300 of included labor cost and $200 of materials. Direct costs total $500. Gross profit is $1,000 minus $500, or $500. Divide that by $1,000 and multiply by 100: gross margin is 50%.
Now suppose another $100 of job materials was missing. Direct costs become $600, gross profit becomes $400 and gross margin becomes 40%. The selling price did not change. The more complete cost record changed the result. These figures illustrate the method; they are not a target or a claim about typical plumbing margins.
Define what counts as a direct cost
A direct cost is assigned to delivering the service under your accounting policy. Materials, job labor and subcontractor charges are common examples. Treatment of payroll burden, travel and equipment costs can vary, so choose a policy with your bookkeeper or accountant and use it consistently.
Do not silently switch between wages alone and loaded labor costs. Also avoid putting a vehicle expense into both an hourly cost allowance and overhead without accounting for the duplication. Your definition should be written plainly enough that the person entering costs and the person reviewing margin understand the same calculation.
Keep markup and margin separate
Markup measures profit relative to cost. Margin measures profit relative to revenue. Say hypothetical costs are $400 and the selling price is $500. Profit is $100. Markup is $100 divided by $400, or 25%. Margin is $100 divided by $500, or 20%.
For a target margin expressed as a decimal, price equals cost divided by one minus the target margin. At $400 cost and a 20% target, $400 divided by 0.80 gives $500. The profit per job calculator offers a place to examine a job scenario before applying your own estimating policy.
Aggregate dollars before calculating percentages
Do not average individual job margins when jobs have different revenue. Add revenue across the selected jobs, add their included costs, calculate total gross profit, and divide by total revenue. This gives each job its appropriate financial weight.
For example, suppose one hypothetical job has $100 revenue and $50 gross profit while another has $900 revenue and $90 gross profit. Total gross profit is $140 on $1,000 revenue, so the combined margin is 14%. Averaging the two percentages would give 30%, which does not describe the combined work. If revenue is zero, the margin formula is undefined; review the underlying record instead.
Review the result without overinterpreting it
A gross margin calculation does not show whether the entire business is profitable. Office wages, rent and other remaining expenses still need to be covered. Nor does it tell you whether customers have paid. Keep job economics, business expenses and cash collection as related but separate questions.
When margin changes, inspect comparable jobs for scope, cost completeness and service mix. Use the field service profitability guide to connect the job review to the wider business. Record the definition and date of your calculation so next month's comparison can be reproduced rather than reconstructed from memory.
Use your Housecall Pro records in the review
ServicePro IQ adds reports built from your Housecall Pro data. Its Profit page lists completed jobs with work order number, estimate number, estimator, cost, revenue, profit and profit percentage. Use those job details to choose which records to examine. A displayed profit figure still needs a clear cost definition before you treat it as a business-wide margin.
You can filter reports by date range, day, week, month or year, and by tag, tag combination, lead source and employee. Filters stay in place as you move between report pages. That makes a consistent review possible, but you should still check whether the underlying jobs have comparable scope and complete costs.
Read about ServicePro IQ for Housecall Pro before connecting. ServicePro IQ requires a Housecall Pro MAX account and reads your data without changing anything in Housecall Pro. Job and revenue figures refresh once an hour, at 20 minutes past the hour. Your contact lets you know when reports are ready after connection. Review pricing and use the free 7-day trial to examine your own records.
Frequently asked questions
Do I subtract sales tax from revenue?
Use the revenue definition in your accounting records and apply it consistently. Amounts collected on behalf of a tax authority generally are not service revenue. Confirm the treatment with the person responsible for your accounts.
Is gross margin the same as cash left in the bank?
No. Margin compares revenue and costs under a stated definition. Cash also depends on when customers pay, when bills are paid and other movements such as financing or owner withdrawals.
Can gross margin be negative?
Yes. If included direct costs exceed revenue, gross profit and gross margin are negative. Check whether that reflects a real loss, missing revenue, timing differences or an incorrect cost entry before acting.
Check the job inputs behind gross margin
Make your gross margin review traceable to the work that earned the revenue. ServicePro IQ’s Profit report shows completed-job cost, revenue, profit and profit percentage from your Housecall Pro data, giving you a starting point for checking whether recorded costs match your direct-cost definition. Inspect your own margin inputs with a free 7-day trial, no credit card required.