Mastering Mileage Calculation in Excel: Step-by-Step Guide

Montreal Jul 09, 2026

Calculating mileage in Excel can be a breeze once you understand the basic functions and formulas. Whether you're tracking your car's fuel efficiency, planning a road trip, or analyzing business travel expenses, Excel provides the tools you need to perform these calculations accurately. Let's dive into the step-by-step process of calculating mileage in Excel.

How to Calculate Mileage Reimbursement in Excel (Step-by-Step Guide)
How to Calculate Mileage Reimbursement in Excel (Step-by-Step Guide)

Before we begin, ensure you have the necessary data: the total distance traveled and the total cost of fuel. You can input these values into separate cells in your Excel worksheet. For this example, let's assume you've entered the total distance in cell A1 and the total fuel cost in cell B1.

How to Calculate Gas Mileage in Excel | Techwalla
How to Calculate Gas Mileage in Excel | Techwalla

Calculating Fuel Efficiency

Fuel efficiency, measured in miles per gallon (mpg), is the first metric we'll calculate. This value tells you how many miles you can travel on a single gallon of fuel. To calculate fuel efficiency, you'll divide the total distance traveled by the total gallons of fuel used.

Mileage Log Excel Spreadsheet
Mileage Log Excel Spreadsheet

In Excel, you can perform this calculation using the following formula: `=A1/B1`. Here, A1 represents the total distance traveled, and B1 represents the total fuel cost. Place this formula in a cell where you want the fuel efficiency result to appear, such as cell C1.

Calculating Fuel Efficiency with Known Fuel Consumption

Mileage Log Excel Spreadsheet
Mileage Log Excel Spreadsheet

In some cases, you might know the total gallons of fuel consumed instead of the total fuel cost. In this scenario, you can still calculate fuel efficiency using the same formula: `=A1/B1`. Just replace B1 with the cell containing the total gallons of fuel consumed.

For example, if you've entered the total gallons of fuel consumed in cell B2, the formula would look like this: `=A1/B2`. This will give you the fuel efficiency in miles per gallon.

Calculating Fuel Efficiency with Known MPG

The Mileage & Maintenance Tracker Excel Spreadsheet | Expense Log | Vehicle Tracking Calculator
The Mileage & Maintenance Tracker Excel Spreadsheet | Expense Log | Vehicle Tracking Calculator

Sometimes, you might already know the fuel efficiency of your vehicle in miles per gallon (mpg). In this case, you can calculate the total gallons of fuel consumed by dividing the total distance traveled by the known fuel efficiency.

Using the same cells as before, A1 for total distance and B1 for known mpg, the formula would be: `=A1/B1`. The result in cell C1 will now represent the total gallons of fuel consumed.

Calculating Cost per Mile

Editable Mileage Tracker: Google Sheets & Excel Template
Editable Mileage Tracker: Google Sheets & Excel Template

Cost per mile is another essential metric that tells you how much it costs to travel one mile. To calculate cost per mile, you'll divide the total fuel cost by the total distance traveled.

In Excel, use the following formula to calculate cost per mile: `=B1/A1`. Here, A1 represents the total distance traveled, and B1 represents the total fuel cost. Place this formula in a cell where you want the cost per mile result to appear, such as cell C2.

Gas Mileage Tracker. Mileage Log Sheet. Auto Calculate Excel Spreadsheet & Google Sheets. Work Gas Tracker. Mileage Work Trip. Driving Log.
Gas Mileage Tracker. Mileage Log Sheet. Auto Calculate Excel Spreadsheet & Google Sheets. Work Gas Tracker. Mileage Work Trip. Driving Log.
Simplified Editable Mileage Tracker for Google Sheets & Excel
Simplified Editable Mileage Tracker for Google Sheets & Excel
Mileage Log Excel, Mileage Calculator, Mileage Form, Mileage Tracker, Mileage Tracking, Travel Chart, Miles Traveled, Vehicle Mileage Excel - Etsy
Mileage Log Excel, Mileage Calculator, Mileage Form, Mileage Tracker, Mileage Tracking, Travel Chart, Miles Traveled, Vehicle Mileage Excel - Etsy
Top 21 Excel Formulas
Top 21 Excel Formulas
Mileage Expense Tracker, Mileage Log, Mileage Calculator, Mileage Tracker Spreadsheet, Mileage Tracking, Car Mileage Tracker Google Sheet
Mileage Expense Tracker, Mileage Log, Mileage Calculator, Mileage Tracker Spreadsheet, Mileage Tracking, Car Mileage Tracker Google Sheet
UK Business Mileage Tracker, Monthly Expenses Claim Form in Excel
UK Business Mileage Tracker, Monthly Expenses Claim Form in Excel
Mileage Tracker, Excel Template, Car Mileage, Personal Finance, Tax Deductibles, Spreadsheet Template, Mileage Spreadsheet, Excel Tracker
Mileage Tracker, Excel Template, Car Mileage, Personal Finance, Tax Deductibles, Spreadsheet Template, Mileage Spreadsheet, Excel Tracker
Download the Business Mileage Tracking Log
Download the Business Mileage Tracking Log
Mileage Log - Excel Download, Calculates Reimbursement
Mileage Log - Excel Download, Calculates Reimbursement
Track Business Miles Easily – Simple Mileage Log for Self-Employed
Track Business Miles Easily – Simple Mileage Log for Self-Employed
Mileage Tracker Excel Template: Expenses Log, Reimbursement Calculator (Digital Download)
Mileage Tracker Excel Template: Expenses Log, Reimbursement Calculator (Digital Download)
Mileage Reimbursement Form in PDF (Simple)
Mileage Reimbursement Form in PDF (Simple)
Mileage tracker for vehicle business expense reports and tax mileage deduction, Excel spreadsheet mileage log for car miles
Mileage tracker for vehicle business expense reports and tax mileage deduction, Excel spreadsheet mileage log for car miles
How to Calculate Weighted Average in Excel
How to Calculate Weighted Average in Excel
Mileage Log Template (Green) for Microsoft Excel & Google Sheets - Small Business Mileage Log - Track Tax Deductions - Instant Download
Mileage Log Template (Green) for Microsoft Excel & Google Sheets - Small Business Mileage Log - Track Tax Deductions - Instant Download
Mileage Tracking Excel Mileage Template Business Expense Tracking Workbook Digital Download Tax Deduction Log Driver Record Trip Data
Mileage Tracking Excel Mileage Template Business Expense Tracking Workbook Digital Download Tax Deduction Log Driver Record Trip Data
Mileage Tracker Log: Car, Truck, Vehicle Miles/Kilometres Travelled | With Auto-Summarizing and Printable PDF Verisons (Letter)
Mileage Tracker Log: Car, Truck, Vehicle Miles/Kilometres Travelled | With Auto-Summarizing and Printable PDF Verisons (Letter)
Mileage Log Template (Green) for Microsoft Excel & Google Sheets - Small Business Mileage Log - Track Tax Deductions - Instant Download
Mileage Log Template (Green) for Microsoft Excel & Google Sheets - Small Business Mileage Log - Track Tax Deductions - Instant Download
how to calculate hours worked
how to calculate hours worked
Mike Tholfsen - Microsoft tips on TikTok
Mike Tholfsen - Microsoft tips on TikTok

Calculating Cost per Mile with Known Fuel Cost per Gallon

If you know the fuel cost per gallon instead of the total fuel cost, you can still calculate cost per mile. First, you'll need to calculate the total fuel cost by multiplying the fuel cost per gallon by the total gallons of fuel consumed. Then, divide that result by the total distance traveled.

Using cells A1 for total distance, B3 for fuel cost per gallon, and B2 for total gallons consumed, the formula would be: `=(B3*B2)/A1`. The result in cell C3 will represent the cost per mile.

Calculating Cost per Mile with Known MPG

If you know the fuel efficiency of your vehicle in miles per gallon (mpg) and the fuel cost per gallon, you can calculate cost per mile using a similar approach. First, calculate the total gallons of fuel consumed by dividing the total distance traveled by the known fuel efficiency. Then, multiply that result by the fuel cost per gallon and divide it by the total distance traveled.

Using cells A1 for total distance, B4 for fuel cost per gallon, and B1 for known mpg, the formula would be: `=(B4*(A1/B1))/A1`. The result in cell C4 will represent the cost per mile.

Now that you've learned how to calculate mileage in Excel, you can easily track and analyze your fuel consumption and costs. Whether you're a business owner managing company vehicles or an individual looking to optimize your personal travel expenses, these formulas will help you make informed decisions. Happy calculating!