Free Excel Mileage Log: How to Build One

How-to basics · Updated November 23, 2026

Yes, you can create a free mileage log in Microsoft Excel using a simple table and a few formulas—no paid template or add-in required. This article shows you how to build a reusable log from scratch, calculate total miles, and even compute the IRS standard mileage deduction for your records.

Why Keep a Mileage Log in Excel?

A mileage log is essential for anyone who drives for work, runs a small business, or volunteers for a nonprofit. The IRS requires contemporaneous records—meaning you should record trips at or near the time they happen—to substantiate a deduction. Excel is ideal because it’s already on most computers, it’s flexible, and you can add columns for any details you need. Unlike paper logs, Excel lets you sort, filter, and total automatically, and you can back up the file to the cloud.

What the IRS Actually Requires

For business mileage deductions, the IRS expects you to track the date, starting odometer reading, ending odometer reading, total miles for the trip, the destination or purpose, and the business relationship of the person you visited. If you use the standard mileage rate (67 cents per mile for 2024, 70 cents for 2025), you don’t need to track actual car expenses like gas or repairs. However, you must still log each trip. The log should be consistent—record every business trip, not just the ones that benefit you. The IRS may ask to see your log if you’re audited, so keep it for at least three years from the date you file your return.

Building Your Free Mileage Log in Excel

Here’s a step-by-step method to create a log that calculates totals automatically. Open a new workbook and set up columns in row 1:

  • A: Date
  • B: Starting Odometer
  • C: Ending Odometer
  • D: Miles (formula)
  • E: Purpose / Client
  • F: Destination
  • G: Notes (optional)

In cell D2, enter the formula =C2-B2. Drag the fill handle down to copy the formula for as many rows as you need (e.g., D2:D100). This subtracts the starting reading from the ending reading. For a trip that starts and ends at the same place (like a round trip), you can enter the total miles manually in column D, but the formula works for one-way trips. To total the miles, place this formula in a cell below the data, say D102: =SUM(D2:D100). If you want to calculate the standard mileage deduction, add a cell with the rate (e.g., 0.70 in a cell like H1) and use =D102*H1 in another cell. Format the result as currency.

On a Mac, the steps are identical; Excel for Microsoft 365 on Mac uses the same formulas. In Excel for the web, the formulas also work, but you’ll find the fill handle behaves slightly differently—drag from the corner of the cell.

Free Templates vs. Building Your Own

Microsoft offers a free mileage log template through the Office template gallery. To find it, open Excel and go to File > New, then search for “mileage log.” The built-in template includes columns for date, starting and ending odometer, miles, and purpose, and it has a summary section. It’s a good option if you want something ready-made. However, building your own gives you full control: you can add dropdown lists for trip types (business, medical, charitable), conditional formatting to highlight high-mileage days, or a pivot table to summarize by month. The template is fine for basic needs, but a custom log avoids the hassle of deleting sample data.

Common Problems and How to Fix Them

One frequent issue is forgetting to record the odometer reading before you start driving. A practical workaround is to keep a small notebook in your car or use a voice memo on your phone, then transfer the data to Excel later. Another problem is the formula not updating when you insert rows. To avoid this, always insert new rows within the data range, not at the bottom, or use an Excel Table (select your data and press Ctrl+T on Windows, Cmd+T on Mac). Tables automatically extend formulas and totals. If you’re using the SUM formula and it doesn’t update, check that the range includes the new rows. Also, if you accidentally type text into a numeric column, the SUM will ignore it, so double-check your entries.

Comparing Excel to Apps and Paper Logs

Excel is a middle ground between paper and dedicated mileage apps. Paper logs are cheap but easy to lose and hard to total. Apps like MileIQ or Everlance automate tracking via GPS, but they often require a subscription and may drain your phone battery. Excel is free (if you already have Office), works offline, and gives you complete control over your data. The trade-off is manual entry—you must type in each trip. For occasional drivers, Excel is more than enough. For daily commuters who drive hundreds of miles a week, an app might save time, but you can still export the data to Excel for reporting.

Costs and Privacy Considerations

The only cost is your time. Excel itself is part of Microsoft 365, which costs about $70 per year for a personal subscription, but if you already have it, the log is free. If you don’t have Excel, you can use the free Excel for the web at office.com, or use Google Sheets (which is also free and works similarly). Privacy-wise, your mileage log contains sensitive business information, so store the file in a secure location. If you save it to OneDrive or SharePoint, be mindful of sharing settings. Avoid using public computers to edit the file, and consider password-protecting the workbook (File > Info > Protect Workbook > Encrypt with Password).

Frequently Asked Questions

Can I use a mileage log for charitable driving? Yes, but the rate is different. For 2024, the charitable rate is 14 cents per mile, and for 2025 it’s also 14 cents. You can create a separate column or sheet for charitable trips, and use the appropriate rate in your calculation. The log format is the same.

What if I forget to record a trip? The IRS requires contemporaneous records, so you should record trips as soon as possible. If you forget, you can reconstruct the trip from calendar appointments or receipts, but it’s riskier. Try to develop a habit of logging at the end of each day.

Do I need to log personal trips? No, but you need to distinguish them. A common approach is to log only business trips, but if you use the same vehicle for personal and business, you must be able to show the business percentage. Some people log all trips and mark each as business or personal—this is more thorough and can support your deduction.

Can I use the standard mileage rate if I own or lease the car? Yes, you can use the standard rate for a car you own or lease, but you cannot use it if you operate five or more cars at the same time (like a fleet). Also, if you previously used actual expenses, you may not be able to switch to the standard rate for that vehicle. Check IRS Publication 463 for details.

How long should I keep my mileage log? Keep it for at least three years from the date you file your tax return, but the IRS can go back six years if you underreported income by more than 25%. To be safe, keep logs for six years.

Is there a way to automate the odometer reading? Not directly in Excel, but you can use a Bluetooth OBD-II scanner that syncs with your phone and exports to Excel. That’s more advanced, but it eliminates manual entry. For most people, manual entry is fine.

Final Tips for Staying Accurate

To keep your log accurate, record the odometer reading at the start of the day, not just per trip. If you make multiple business stops in one trip, you can log it as a single trip with the total miles and list all destinations in the notes. Use data validation to ensure the ending odometer is always greater than the starting one—select the column, go to Data > Data Validation, and set a custom formula like =C2>B2 for the first data row, then copy. Finally, back up your file regularly. A lost log is as bad as no log.

Related

Try it: the Date Difference Calculator: days, months, years and weekdays between two dates, with the DATEDIF formulas.

More in How-to basics

Sources: Function behaviour and menu paths: Microsoft Support documentation for Excel. Method & sources

Spotted an error in this guide? Let us know.