SOLE TRADERS · PIVOT TABLE GUIDE
Total your business mileage for the 45p claim with a pivot table
Short answer: Log each business journey with a date and miles, pivot with Date in rows grouped by month and Sum of Miles in values, then apply the HMRC mileage rates to the total.
If you use your own car for business, you can usually claim a flat rate per business mile instead of working out actual running costs. To do that you need an accurate total of business miles for the tax year, which is exactly what a pivot table gives you.
Keep a simple log
One row per business journey is enough. You can download a blank mileage log template.
| Date | Journey | Miles | Vehicle |
|---|---|---|---|
| 26/04/2026 | Trade show, Birmingham | 296 | Car |
| 07/04/2026 | Client visit, Chichester | 44 | Car |
| 17/08/2026 | Client visit, Fareham | 24 | Car |
Record the round trip in Miles if you drove there and back. Ordinary commuting to a permanent workplace usually doesn’t count as business mileage.
Make the pivot table
- Paste your log into the pivot table builder, or create a pivot table in Excel or Sheets.
- Put Date in Rows. The builder groups it by month.
- Put Miles in Values with Sum.
- If you use more than one vehicle, add Vehicle to Columns.
Work out the claim
Take the grand total of miles for the tax year, from 6 April to 5 April, and apply the rates. Using the rates above:
| Business miles in the year | Claim |
|---|---|
| 6,000 | 6,000 × £0.45 = £2,700 |
| 10,000 | 10,000 × £0.45 = £4,500 |
| 14,000 | £4,500 + (4,000 × £0.25) = £5,500 |
If your log covers more than one tax year, filter the dates first so you only total the right one.
Tips for a log that stands up
- Write each journey down when you make it, not months later.
- Note where you went and why.
- Keep the log with your other records for at least the period HMRC asks you to keep them.