Mastering Mileage: A Step-by-Step Guide to Calculate Miles in Excel

Montreal Jul 09, 2026

Calculating miles in Excel is a common task when working with geographical data or converting units. Excel provides several built-in functions that simplify this process. Let's explore how to calculate miles using different methods in Excel.

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

Before we dive into the calculations, ensure your Excel version is up-to-date. The methods mentioned here work best in Excel 2010 and later versions.

Get Mileage from Excel Lookup Table - Contextures Blog
Get Mileage from Excel Lookup Table - Contextures Blog

Using Built-in Functions

Excel offers several built-in functions to perform conversions, including miles to kilometers and vice versa. These functions make calculations quick and easy.

Excel IFTA Calculator for Miles and Gallons per State
Excel IFTA Calculator for Miles and Gallons per State

Here are two primary functions to calculate miles in Excel:

CONVERT Function

Mileage Log Excel Spreadsheet
Mileage Log Excel Spreadsheet

The CONVERT function is the most straightforward way to convert units in Excel. It uses the following syntax:

CONVERT(value, from_unit, to_unit)

To calculate miles, you can use it like this:

Mileage Log Excel Spreadsheet
Mileage Log Excel Spreadsheet

CONVERT(km, "km", "mi")

This formula will convert kilometers (km) to miles (mi).

UNITCONVERT Function

Top 21 Excel Formulas
Top 21 Excel Formulas

The UNITCONVERT function is another built-in function that can convert units, including miles. Its syntax is as follows:

UNITCONVERT(value, from_unit, to_unit)

Editable Mileage Tracker: Google Sheets & Excel Template
Editable Mileage Tracker: Google Sheets & Excel Template
Project Milestone Chart Using Excel | MyExcelOnline
Project Milestone Chart Using Excel | MyExcelOnline
Mileage Tracker Excel & Google Sheets Spreadsheet Template
Mileage Tracker Excel & Google Sheets Spreadsheet Template
UK Business Mileage Tracker, Monthly Expenses Claim Form in Excel
UK Business Mileage Tracker, Monthly Expenses Claim Form in Excel
Trucking Business Startup Calculator | Break-Even, Profit per Mile, 12-Month Forecast (Excel & Google Sheets)
Trucking Business Startup Calculator | Break-Even, Profit per Mile, 12-Month Forecast (Excel & Google Sheets)
Simplified Editable Mileage Tracker for Google Sheets & Excel
Simplified Editable Mileage Tracker for Google Sheets & Excel
Mileage Log Template (Purple) | Excel & Google Sheets | Track Business Miles + Tax Deductions | Small Business | Instant Download
Mileage Log Template (Purple) | Excel & Google Sheets | Track Business Miles + Tax Deductions | Small Business | Instant Download
Freelancer Mileage & Expense Log Spreadsheet | Excel and Google Sheets Auto-Calculating Tax Tracker
Freelancer Mileage & Expense Log Spreadsheet | Excel and Google Sheets Auto-Calculating Tax Tracker
Mileage Log Spreadsheet | Business Vehicle Tracker | Tax Deduction Calculator | Excel Google Sheets
Mileage Log Spreadsheet | Business Vehicle Tracker | Tax Deduction Calculator | Excel Google Sheets
The Mileage & Maintenance Tracker Excel Spreadsheet | Expense Log | Vehicle Tracking Calculator
The Mileage & Maintenance Tracker Excel Spreadsheet | Expense Log | Vehicle Tracking Calculator
Mike Tholfsen - Microsoft tips on TikTok
Mike Tholfsen - Microsoft tips on TikTok
ms excel formula
ms excel formula
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
Excel Formulas: Basic to Advanced
Excel Formulas: Basic to Advanced
a notebook with microsoft excel written on it
a notebook with microsoft excel written on it
US Mileage Tracker Spreadsheet | IRS Log, Tax Dashboard (Excel, Google Sheets)
US Mileage Tracker Spreadsheet | IRS Log, Tax Dashboard (Excel, Google Sheets)
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
Digital Mileage Tracker | Excel & Google Sheets | Vehicle Mileage Log | Tax Deduction | Small Business Travel Log | Instant Download
Digital Mileage Tracker | Excel & Google Sheets | Vehicle Mileage Log | Tax Deduction | Small Business Travel Log | Instant Download
calculate gst in excel, how to calculate gst, gst calculator, gst calculator in
calculate gst in excel, how to calculate gst, gst calculator, gst calculator in
how to create a sum formula in excel and wordpress - infographical poster
how to create a sum formula in excel and wordpress - infographical poster

You can use it to convert kilometers to miles like this:

UNITCONVERT(km, "km", "mi")

Both CONVERT and UNITCONVERT functions will give you the same result. Choose the one that you find more convenient.

Manual Conversion

If you prefer not to use built-in functions, you can perform manual conversions using the conversion factor between miles and kilometers. There are approximately 1.60934 kilometers in a mile.

To convert kilometers to miles manually, divide the kilometer value by 1.60934:

km / 1.60934

And to convert miles to kilometers, multiply the mile value by 1.60934:

mi * 1.60934

Using Custom Functions (VBA)

If you're comfortable with programming, you can create custom functions using Visual Basic for Applications (VBA) to calculate miles in Excel. This approach offers more flexibility and can handle complex conversions.

Here's a simple VBA function that converts kilometers to miles:

Function KmToMi(km As Double) As Double KmToMi = km / 1.60934 End Function

You can add this function to your personal macro workspace and use it like any other built-in function in Excel.

Incorporating these methods into your Excel workflow will streamline your calculations and save you time. Whether you prefer built-in functions, manual conversions, or custom functions, Excel provides the tools to calculate miles efficiently. Happy calculating!