How to Calculate Profit Margin for a Service Business
Work out gross and net margin for a service business: load labour costs, spread overhead per billable hour and price for a target margin, with worked math.
To calculate profit margin for a service business, take the revenue from a job or a month (the invoice amount before sales tax), subtract the costs, and divide the profit by the revenue. Gross margin subtracts only the costs of delivering the work: contractors, job-specific purchases and the loaded cost of the hours your team spent on it. Net (operating) margin also subtracts overhead such as rent, software, insurance, sales and admin time.
A retailer can read cost of goods sold off a supplier invoice. A consultancy, agency or trade business has to build it, mostly out of hours. This guide shows that build step by step for one hypothetical project, with the arithmetic, then shows how the same numbers set a price. For how your result compares with other industries, see profit margin benchmarks by industry.
What are the profit margin formulas for services?
There are three formulas you need, and one you should avoid mixing up with them.
| Measure | Formula | What it tells you |
|---|---|---|
| Gross margin | (Revenue − direct costs) ÷ revenue | Whether the work itself is priced above what it costs to deliver |
| Net (operating) margin | (Revenue − direct costs − overhead) ÷ revenue | Whether the business keeps money after running costs |
| Price for a target margin | Cost ÷ (1 − target margin) | The fee you need to quote |
| Markup (not a margin) | (Price − cost) ÷ cost | Profit as a share of cost; always a bigger number than margin for the same job |
Revenue here means what you earned, not what you collected for someone else. Leave out sales tax or VAT you charged, because it belongs to the tax authority. If the client paid by card, the processor's fee is a cost, not a reduction you can ignore.
The profit margin calculator runs these formulas in your browser, including a box that finds the price for a target margin. The rest of this page is about getting the inputs right, which is where most service-business margin figures go wrong.
Step 1: Cost your team's time at the loaded rate
An employee who earns $35 an hour costs you more than $35 for each hour they work. You also pay for their paid leave, insurance, retirement contributions and legally required payroll taxes.
The US Bureau of Labor Statistics measures this. In June 2026, private-industry employers spent an average of $46.89 per hour worked on compensation: $32.82 (70.0%) in wages and salaries and $14.07 (30.0%) in benefits (BLS, Employer Costs for Employee Compensation, released September 9, 2026). Because the BLS figures are per hour worked, paid holidays and vacation are already spread into them.
That gives a quick check for your own loaded rate if you have no better data:
Loaded hourly cost = hourly wage ÷ 0.70
A designer paid $35 an hour costs about $35 ÷ 0.70 = $50.00 per hour worked. Your own ratio may differ: it depends on your benefits, your state and how many paid days off you give. Payroll taxes alone are part of it; the employer's share of Social Security is 6.2% and Medicare 1.45% of wages (IRS Topic 751, reviewed September 24, 2026). Your payroll provider or accountant can give you the real figure.
Your own time counts too. If you are the owner and you do billable work, cost those hours at what it would take to hire someone to do them. If you leave your time out, a project can show a healthy margin while paying you nothing. A sole proprietor's tax return will show a much higher profit than a company of the same size for exactly this reason: the owner's pay sits inside the profit.
Step 2: Add the direct costs and find gross margin
Direct costs are the ones that exist only because of this job:
- in-house hours spent on the job, at the loaded rate from step 1
- subcontractors and freelancers you paid for this client
- licences, materials, stock assets, travel or equipment hire bought for this client
Worked example (hypothetical). A small design studio invoices a client $18,000 (before tax) for a website project.
| Direct cost | Calculation | Amount |
|---|---|---|
| Contract developer | Fixed fee | $3,200.00 |
| Font and plugin licences for this client | Bought for the job | $250.00 |
| Designer (employee) | 60 hours × $50.00 loaded | $3,000.00 |
| Owner's design and client time | 25 hours × $60.00 replacement cost | $1,500.00 |
| Total direct costs | $7,950.00 |
- Gross profit = $18,000 − $7,950 = $10,050
- Gross margin = $10,050 ÷ $18,000 = 55.8%
A gross margin tells you whether the price covers the delivery. It does not yet tell you whether the studio made money, because rent, software and the owner's sales and admin time have not been paid.
Step 3: Spread overhead per billable hour and find net margin
Overhead is everything you pay whether or not a given project exists: rent, software subscriptions, insurance, accounting, marketing, equipment, and salaried or owner time spent on sales and admin rather than billable work.
The simplest fair way to charge a project its share is per billable hour:
Overhead rate = monthly overhead ÷ billable hours your team actually delivers in a month
Use hours actually delivered, not hours available. A team that is paid for 480 hours a month but bills 280 has to recover its overhead from the 280.
Continuing the example. The studio's overhead is $14,000 a month and its team bills 280 hours a month.
- Overhead rate = $14,000 ÷ 280 = $50.00 per billable hour
- The project used 85 in-house hours (60 designer + 25 owner). The contract developer's hours carry their own overhead, so they are not charged again.
- Overhead share = 85 × $50.00 = $4,250
- Net profit = $10,050 − $4,250 = $5,800
- Net margin = $5,800 ÷ $18,000 = 32.2%
Why utilization changes margin even when nothing else does
Suppose the next month is quiet and the team bills only 200 hours. Overhead is still $14,000, so the rate rises to $14,000 ÷ 200 = $70.00 per hour. The same project, at the same price and with the same direct costs, now carries 85 × $70 = $5,950 of overhead. Net profit falls to $4,100 and net margin to 22.8%.
| Busy month | Quiet month | |
|---|---|---|
| Billable hours delivered | 280 | 200 |
| Overhead rate | $50.00 | $70.00 |
| Project overhead share (85 h) | $4,250 | $5,950 |
| Net profit | $5,800 | $4,100 |
| Net margin | 32.2% | 22.8% |
This is why a service firm can have a good gross margin on every project and still lose money: unbilled hours are paid for by the billed ones. If your gross margin is steady but net margin is falling, look at utilization and overhead before you look at how the work is delivered.
Step 4: Check the whole firm, not only each project
Project margins tell you which clients and services pay. The firm-level margin, from your monthly or quarterly profit and loss statement, tells you whether the business works. Use both.
Example (hypothetical month). Revenue $52,000, direct costs $24,000, overhead $14,000.
- Gross margin = ($52,000 − $24,000) ÷ $52,000 = 53.8%
- Operating margin = ($52,000 − $24,000 − $14,000) ÷ $52,000 = 26.9%
If the firm-level figure is lower than the average of your project figures, something is not being charged to projects: unbilled revisions, write-offs, scope that slipped, or overhead that grew. Investopedia's profit margin primer explains how gross, operating and net margin line up on a standard profit and loss statement; your accountant can map them to your own books.
How do you price a service for a target margin?
Divide your full cost by (1 minus the margin you want).
Price = full cost ÷ (1 − target margin)
Example. The studio wants a 40% net margin on projects like this one. Full cost is $7,950 direct + $4,250 overhead = $12,200.
- Price = $12,200 ÷ (1 − 0.40) = $12,200 ÷ 0.60 = $20,333.33
- Check: profit $8,133.33 ÷ $20,333.33 = 40.0%
The common mistake is to add 40% to cost instead: $12,200 × 1.40 = $17,080. That is a 40% markup, and it gives a margin of only $4,880 ÷ $17,080 = 28.6%, more than eleven points short.
| Approach | Quote | Profit | Margin |
|---|---|---|---|
| Cost × 1.40 (40% markup) | $17,080.00 | $4,880.00 | 28.6% |
| Cost ÷ 0.60 (40% margin) | $20,333.33 | $8,133.33 | 40.0% |
Turning it into an hourly rate
The same formula works per hour. In the example, an in-house hour costs $50.00 loaded plus $50.00 of overhead, so $100.00 in full. For a 35% margin, the rate is $100.00 ÷ 0.65 = $153.85 an hour. Round it to a number you are comfortable quoting, and recheck the margin. The per-industry pricing guides, such as how to price consulting and how to price web design, cover what clients in each field expect to see.
How do discounts and pass-through costs change your margin?
Two invoice decisions move the margin more than people expect.
Discounts come straight out of profit. A 10% discount on the $18,000 project cuts revenue by $1,800 but leaves every cost in place. Net profit falls from $5,800 to $4,000, and net margin from 32.2% to $4,000 ÷ $16,200 = 24.7%. A tenth off the price took almost a third of the profit. Read when to offer discounts before you agree to one.
Costs rebilled at cost lower the margin percentage without changing profit. If the studio also rebills $2,000 of client hosting at exactly what it paid, revenue rises to $20,000, profit stays $5,800, and the margin drops to 29.0%. Neither figure is wrong, but compare like with like. Some agencies report margin on net revenue (revenue minus pass-through costs) for this reason. Showing pass-through costs as their own invoice lines, as described in what to include on an invoice, keeps them easy to separate later.
Where invoicing data fits in
Your invoices are the revenue half of the calculation, so they need to be complete and on time. Work that was done but not invoiced, or invoiced weeks late, makes a month's margin look worse than the work was, and the next month's better. The admin time spent producing invoices is overhead too; the cost of manual invoice processing shows how to estimate it.
What InvoiceQuickly does and does not do here:
- It calculates invoice totals, not margins. Each invoice has line items (quantity × unit price), one discount percentage and one tax percentage. The discount is taken off the subtotal first and tax is calculated on the discounted amount, so the pre-tax figure you need for revenue is easy to read.
- Pro tracks expenses and time. You can associate work and costs with projects and use Reports to review invoices, payments, expenses and time. These operational reports are not a full profit and loss statement or project-cost accounting; keep overhead, payroll and accounting adjustments in your accounting records.
- The dashboard shows all-time totals, kept separate per currency: payments received, outstanding, number of invoices and clients. Pro Reports adds date-range and client/project filters for operational review.
- Pro ($9/month) includes a CSV export of your invoices with subtotal and tax columns, which you can bring into a spreadsheet next to your costs. The export also contains estimate (EST-) and credit note (CN-) rows, so filter those out before you total revenue.
The Free plan covers 5 invoices and 5 clients. See pricing for what each plan includes.
When this method is not the right fit
- Product or inventory businesses. If most of your cost is goods you buy and resell, cost of goods sold and inventory accounting matter more than hour costing.
- Very small solo practices with little overhead. A freelancer with one laptop and no staff can skip the overhead rate and use a simpler check: annual revenue minus annual business costs, compared with a salary you could earn elsewhere.
- Tax figures. Management margins like these are for pricing and planning. Taxable profit follows different rules (for example on owner pay and depreciation), so leave that calculation to your accountant.
Frequently asked questions
How do you calculate profit margin for a service?
Subtract the cost of delivering the service from the revenue you charged for it (before sales tax), then divide the result by that revenue. For gross margin, cost means direct costs: contractors, job-specific purchases and loaded hours. For net margin, also subtract a share of overhead, usually by charging each billable hour an overhead rate.
What is the difference between profit margin and markup?
Margin is profit as a share of the price. Markup is profit as a share of the cost. On a job that costs $1,000 and sells for $1,250, profit is $250: the margin is 20% ($250 ÷ $1,250) and the markup is 25% ($250 ÷ $1,000). The same profit always gives a larger markup percentage than margin percentage.
How do you add a 20% margin to a cost?
Divide the cost by 0.80. A $1,000 cost becomes a $1,250 price, and the $250 profit is 20% of $1,250. Multiplying by 1.20 gives $1,200, which is only a 16.7% margin.
Should I include my own salary in the cost?
Yes, for any hours you spend on billable work, at the rate it would cost to hire someone to do them. Otherwise projects look more profitable than they are and you cannot tell whether hiring would pay.
How often should I recalculate my margins?
Calculate gross and net margin when each project closes, and review the firm-level figures monthly or quarterly with your profit and loss statement. Recalculate your overhead rate whenever rent, staff or software costs change.
More on pricing and margins: the healthy profit margin overview, profit margin benchmarks and hourly vs fixed-price invoicing. Browse the InvoiceQuickly blog or start free.
Practical guidance for freelancers and small businesses creating and managing invoices.
Create your next invoice from one prompt
Describe the client, work, prices, and payment terms. Review every field before you send.
Create a Free InvoiceRelated guides
What Is a Healthy Profit Margin? How to Set Your Target
There is no universal healthy margin. Work out your own: pay yourself first, fund reserves and reinvestment, then stress-test it, with two worked examples.
How to Price Accounting Services: Rates, Packages, Cleanup
Build an hourly floor from your own costs, turn it into a monthly bookkeeping package and a cleanup quote, then invoice it. Includes 2025 NATP fee data.
How to Price Catering: Per-Guest Costing With a Worked Quote
Build a per-guest catering price from plate cost, kitchen labour and overhead, bill staff and rentals separately, then turn the quote into an invoice.
How to Price Consulting: Day Rates, Project Fees, Retainers
Turn your rate floor into a day rate, a fixed project fee and a retainer, check the fee against client value, and invoice it. One engagement, fully worked.
Useful, occasional notes
Get invoicing tips that actually help
Join the InvoiceQuickly update list for practical invoicing advice and product news.
No spam, ever. Unsubscribe anytime.