Vehicle Expense Log Excel: Build One Step by Step
Build a vehicle expense log in Excel: costs by category and month, MPG and cost per mile with SUMIFS and simple formulas. Printable log included.

A vehicle expense log in Excel takes about an hour to build and shows what your car really costs: by category, by month and per mile. You add one row for every fill-up or bill, and a few formulas do the rest.
This guide uses the made-up two-vehicle log from our vehicle maintenance log example. If you have not decided what to record, start with the vehicle maintenance log template guide.
What you will build
- A Log sheet: Date, Vehicle, Category, Odometer, Gallons, Amount.
- A Lists sheet with the vehicle names and categories.
- A Summary sheet with totals by category, by month and by vehicle, plus MPG and cost per mile.

Step 1: The Lists sheet
Add a sheet named Lists. In column A, type your vehicles (for example, Honda Civic and Ford F-150). In column B, type the categories: Fuel, Oil and fluids, Tires, Repairs, Insurance, Registration and fees, Parking and tolls, Car wash and care, Other.
Step 2: The Log sheet
On a sheet named Log, type these headings in row 1: Date, Vehicle, Category, Odometer, Gallons, Amount, Notes. Add three example rows:
| Date | Vehicle | Category | Odometer | Gallons | Amount |
|---|---|---|---|---|---|
| 1/3/2026 | Honda Civic | Fuel | 48200 | 10.8 | 36.50 |
| 2/14/2026 | Honda Civic | Oil and fluids | 54.99 | ||
| 1/8/2026 | Ford F-150 | Fuel | 61350 | 18.4 | 63.20 |
Step 3: Drop-downs
Select the Vehicle column (B2:B600) and choose Data > Data Validation. Set Allow to List and Source to =Lists!$A$2:$A$4. Repeat for Category with =Lists!$B$2:$B$10. Microsoft's page on applying data validation to cells shows the dialog. Drop-downs make sure "Fuel" is always spelled the same, which the formulas need.
Step 4: Total by category
On a sheet named Summary, list the categories in A2:A10. In B2 enter:
=SUMIFS(Log!$F$2:$F$600,Log!$C$2:$C$600,A2)
Copy it down. SUMIFS adds the amounts in column F where the category in column C matches A2. In the example, insurance comes to $2,712.00 and fuel to $2,012.19.
Step 5: Total by month
Put the first day of each month in a row: 1/1/2026, 2/1/2026 and so on. Under each, enter:
=SUMIFS(Log!$F$2:$F$600,Log!$A$2:$A$600,">="&C1,Log!$A$2:$A$600,"<"&EDATE(C1,1))
EDATE returns the same day one month later, so the formula adds everything from the start of the month up to, but not including, the start of the next. January comes to $1,603.93 in the example and February to $203.36.
Step 6: Fuel, miles and MPG
For one vehicle, in a cell next to its name:
| What | Formula |
|---|---|
| Fill-ups | =COUNTIFS(Log!$B$2:$B$600,A14,Log!$C$2:$C$600,"Fuel") |
| Gallons | =SUMIFS(Log!$E$2:$E$600,Log!$B$2:$B$600,A14,Log!$C$2:$C$600,"Fuel") |
| Fuel cost | =SUMIFS(Log!$F$2:$F$600,Log!$B$2:$B$600,A14,Log!$C$2:$C$600,"Fuel") |
For miles driven you need the highest and lowest odometer for the vehicle. A formula that works without array entry is:
=SUMPRODUCT(MAX((Log!$B$2:$B$600=A14)*Log!$D$2:$D$600))
for the highest, and the lowest is =1000000-SUMPRODUCT(MAX((Log!$B$2:$B$600=A14)*(Log!$D$2:$D$600<>"")*(1000000-Log!$D$2:$D$600))). Subtract the lowest from the highest to get miles driven.
MPG is miles driven divided by gallons. The first fill-up's gallons were burned before the log began, so subtract them for a fair estimate. In the example, the Civic drove 8,597 miles and averages about 31.8 MPG, and the F-150 drove 4,210 and averages about 16.9.
Example: Civic fuel cost $1,013.32 over 8,597 miles: $1,013.32 / 8,597 = $0.118 per mile. The F-150: $998.87 / 4,210 = $0.237 per mile.
Step 7: Color the over-budget categories
Add a budget column next to each category, then select the Summary cells and choose Home > Conditional Formatting > New Rule > Use a formula, for example =B2>C2 with a red fill. Microsoft explains the rules dialog on its page about conditional formatting.
Mileage for taxes
If you use a vehicle for business, charity or medical trips, the IRS publishes standard mileage rates that change from year to year and sometimes within a year, so keep the rate in a cell you can edit rather than building it into formulas. This log gives you dates, odometer readings and costs. It is a record-keeping tool, not tax advice: ask a tax professional what you can deduct.
Related guides
For monthly bills, read the bill tracker in Excel guide, and for everyday spending the expense tracker in Excel. To use Google Sheets instead, see the vehicle expense tracker in Google Sheets.
Cost per mile in a small table
| Vehicle | Fuel cost | Miles | Fuel cost per mile |
|---|---|---|---|
| Civic | $1,013.32 | 8,597 | $0.118 |
| F-150 | $998.87 | 4,210 | $0.237 |
The formula is fuel cost divided by miles, as in the example. In Excel it looks like =B2/C2. Fuel is only one part of the cost of owning a vehicle, so treat the number as a way to compare vehicles and habits, not as the whole picture.
If something does not work
- The cost per mile shows an error. If the miles cell is empty, the formula divides by zero. Wrap the formula in IF to show a blank.
- The month totals are wrong. Check that the dates are real dates and not text.
- A category total is zero. Check that the category name in the log matches the list exactly. The drop-down prevents this.
- The miles are not adding up. Use the odometer reading at each fill-up, and subtract the earlier reading from the later one.
Keeping the log honest
Add each entry the day it happens, with the odometer. Keep the receipts in a folder. At the end of the month, compare the log with your card statement to make sure nothing is missing.
Skip the build
The Mivru Vehicle Expense, Fuel & Maintenance Log has all of this ready: the log, a dashboard with a month picker and budget by category, a Monthly sheet, a Fuel & Mileage sheet and five color themes, plus an 11-page printable. See the Vehicle Expense, Fuel & Maintenance Log.
Frequently asked questions
Can I make a vehicle expense log in Excel?
Yes. One log sheet with date, vehicle, category, odometer, gallons and amount, plus SUMIFS formulas, gives you costs by category and month, and a few more formulas give MPG and cost per mile.
How do I calculate MPG in Excel?
Divide miles driven by gallons. If you log the odometer at each fill-up, miles are the difference between two readings, so MPG is (this odometer minus the last one) divided by this fill-up's gallons.
How do I total costs by month in Excel?
Use SUMIFS with two date conditions: on or after the first day of the month and before the first day of the next month.
How do I add a drop-down for vehicles?
Select the cells, choose Data > Data Validation, set Allow to List and point the Source to the cells with your vehicle names.
Is there a ready-made Excel version?
Yes. The Mivru Vehicle Expense, Fuel & Maintenance Log has the log, dashboard, monthly sheet and MPG sheet built in, in five color themes, plus an 11-page printable.




