Measuring margin by customer or job
Choose the split
Pick the line you make decisions on: customer, job, product range, site or contract. Xero’s tracking categories tag each sale and cost to it.
Code sales as they are invoiced
Each invoice line carries its tracking category, so sales by customer or job build up through the month.
Code direct costs to the job
Materials, subcontractors and direct labour are coded when the bill or timesheet comes in. Labour is split by the hours recorded on each job.
Keep overheads out
Rent, office salaries and software are not split. Gross margin by line shows what each customer or job contributes towards them.
Check the price list
Compare each margin with the one you priced for. A gap usually means a cost has risen and the price has not.
Read it every month
Margin by line goes into the monthly board pack, set against the month before and the budget.
Three customers with very different margins
A business with £1.4m of sales and a 26.9% gross margin splits its sales and direct costs by customer for the first time.
| Customer | Sales | Direct costs | Gross margin |
|---|---|---|---|
| Customer A | £600,000 | £390,000 | 35% |
| Customer B | £450,000 | £333,000 | 26% |
| Customer C | £350,000 | £301,000 | 14% |
| All customers | £1,400,000 | £1,024,000 | 26.9% |
Customer C brings in a quarter of the sales and 13% of the gross profit. A 10% price rise for C, at the same costs, takes its margin to 21.8% and adds £35,000 of gross profit. The profit levers calculator runs the same sum on your own figures.
An illustrative example. The business is invented and every figure is made up.
Margin by customer in the monthly board pack
From Financial Controller up, the finance team sets up the tracking in Xero, codes sales and direct costs as it keeps the books, and the monthly board pack shows the margin by customer, job or site. Our guide to job costing covers work priced by the job.
The year-end accounts and Company Tax Return are included.
Questions about margin by customer
Should I include labour in direct costs?
Include the wages of people who work on customer jobs, split by the hours each spends on each job. Leave out office and management salaries, which are overheads. Without labour, a service business’s margins look far higher than they are.
What if a low-margin customer pays quickly?
Margin is one measure. A customer who pays in 14 days ties up less cash than one who pays in 75, and a large, steady customer may carry overheads that would otherwise go unpaid. Look at margin, payment days and the overheads each customer uses before you change a price or drop a customer.
Can Xero show margin by customer without tracking categories?
Xero can report sales by customer without them, but not costs. Tracking categories, or Xero Projects for work priced by the job, put direct costs against each customer or job.
Can you set this up in my existing Xero file?
Yes. We add the tracking categories to your Xero file and code each month from then on.








