Automotive calculators

Mileage Calculator

Updated Aug 31, 2026 By Jehan Wadia
1.0 · Rate Formulas
Route
e.g. "New York, NY", a street address, or 40.7128, -74.0060
Place name, address, or GPS coordinates.
Up to 5 intermediate waypoints.
For reference only — does not affect calculation.

Avoidance preferences adjust the estimated route distance and time.
Units, Cost & Speed
Used to estimate fuel needed.

Route Summary

Total Distance
Estimated Drive Time
Estimated Trip Cost
Estimated Fuel Used
Route Legs
Leg From To Distance Time Cost
Distances are great-circle estimates scaled by a road-winding factor; named locations are geocoded from a built-in city library when available.
Distance by Leg

Introduction

This free mileage calculator helps you find the driving distance between two or more places. Enter your start point and end point, and the tool gives you the total miles or kilometers, estimated drive time, trip cost, and fuel used. You can add up to five stops along your route, swap between miles and kilometers, and set your own fuel economy, fuel price, and average speed. Whether you are planning a road trip, tracking work mileage for tax purposes, or just want to know how far one city is from another, this calculator gives you quick and clear results. It also breaks down each leg of your trip in a simple table and chart so you can see exactly how the distance adds up.

How to Use Our Mileage Calculator

Enter your starting point, destination, and trip details below. The calculator will show you the total distance, drive time, trip cost, and fuel needed for your route.

From: Type the city, address, or GPS coordinates where your trip starts. For example, "New York, NY" or "40.7128, -74.0060".

To: Type the city, address, or GPS coordinates where your trip ends.

Swap Button: Click the arrow button between the two fields to switch your starting point and destination.

Add a Stop: Click this button to add up to 5 stops along your route. Each stop changes the total distance and time.

Trip Date: Pick a date for your trip if you want it shown in your results. This does not change the math.

Avoid Highways, Tolls, or Ferries: Check these boxes to skip certain road types. This will make the estimated distance a bit longer.

Distance Unit: Choose between miles or kilometers. This changes all distance, speed, and fuel labels to match.

Cost per Mile or Kilometer: Enter how much each mile or kilometer costs you. The default is $0.67 per mile, which is the standard IRS mileage rate.

Avg Speed: Enter your expected average driving speed. The calculator uses this to estimate your total drive time.

Fuel Economy: Enter your car's fuel economy in miles per gallon or kilometers per liter. This helps estimate how much fuel you will use.

Fuel Price: Enter the current price of gas per gallon or liter. The calculator uses this with your fuel economy to estimate your fuel cost.

Calculate: Click this button to run the calculator and see your results, including a breakdown for each leg of your trip and a bar chart.

Reset: Click this button to clear all your changes and go back to the default settings.

What Is a Mileage Calculator?

A mileage calculator helps you figure out the distance between two or more places by car. It takes your starting point, your destination, and any stops along the way, then estimates how far you will drive. This is useful when you are planning a road trip, tracking work-related driving, or trying to figure out how much a trip will cost in gas and wear on your car.

How Mileage Is Calculated

The distance between two points on Earth is measured using a method called the haversine formula. This finds the straight-line distance between two locations based on their coordinates. Since roads curve and twist instead of going in a straight line, the calculator adds a winding factor to give you a more realistic driving distance. If you choose to avoid highways, tolls, or ferries, the estimated distance goes up a bit because alternate routes are usually longer.

Why Mileage Matters for Drivers

Knowing your mileage helps you in several ways. You can estimate how much fuel you will need and what it will cost. You can plan how long your drive will take based on your average speed. If you drive for work, you can use mileage to calculate reimbursement since the IRS standard mileage rate for 2024 is 67 cents per mile. Many employers and self-employed workers rely on accurate mileage records for tax deductions. If you're financing a vehicle, understanding mileage is also important for calculating car depreciation.

Fuel Economy and Trip Cost

Fuel economy tells you how far your car can go on one gallon of gas or one liter of fuel. The average car in the United States gets about 25 miles per gallon. When you enter your car's fuel economy and the current price of gas, the calculator estimates how much fuel you will use and what it will cost. This makes it easy to budget for any trip before you leave home. For a detailed look at your vehicle's gas consumption, our Gas Mileage Calculator lets you input fill-up data for a precise reading.

Miles vs. Kilometers

In the United States, distance is measured in miles. Most other countries use kilometers. One mile equals about 1.6 kilometers. This calculator lets you switch between both units so it works no matter where you are driving.


Formulas used

Haversine Distance (Great-Circle)
d_{\text{gc}} = 2R \cdot \arctan2\!\left(\sqrt{a},\,\sqrt{1-a}\right), \quad a = \sin^2\!\left(\frac{\Delta\phi}{2}\right) + \cos\phi_1 \cos\phi_2 \sin^2\!\left(\frac{\Delta\lambda}{2}\right)
Estimated Road Distance
d_{\text{road}} = d_{\text{gc}} \times f_{\text{winding}} \times f_{\text{avoidance}}
Total Distance (Unit Conversion)
d_{\text{mi}} = d_{\text{road}} \times 0.621371, \quad d_{\text{km}} = d_{\text{road}}
Estimated Drive Time
t = \frac{d}{v_{\text{avg}}}
Estimated Trip Cost
C_{\text{trip}} = d \times c_{\text{per\_unit}}
Fuel Used
F = \frac{d}{\text{FuelEconomy}}
Fuel Cost
C_{\text{fuel}} = F \times P_{\text{fuel}}

Frequently asked questions

What is the default cost per mile based on?

The default value of $0.67 per mile is the IRS standard mileage rate for 2024. This rate covers gas, insurance, depreciation, and general wear on your car. You can change it to any number that fits your needs.

How many stops can I add to my route?

You can add up to 5 intermediate stops between your starting point and destination. Each stop creates a new leg in your trip, and the calculator shows the distance, time, and cost for every leg.

How is drive time calculated?

Drive time is calculated by dividing the total distance by your average speed. For example, if your trip is 220 miles and your average speed is 55 mph, the estimated time is 4 hours. It does not account for traffic, rest stops, or speed changes.

How is fuel used calculated?

The calculator divides your total distance by your fuel economy. If you drive 250 miles and your car gets 25 mpg, you will use about 10 gallons. It then multiplies that by your fuel price to show the fuel cost.

Does the trip date affect the calculation?

No. The trip date is for your own reference only. It shows up in the results so you can keep track of when a trip happened, but it does not change the distance, time, or cost numbers.

What fuel economy should I enter if I don't know my car's mpg?

The average car in the U.S. gets about 25 miles per gallon. If you drive an SUV or truck, try 18–22 mpg. For a hybrid, try 40–55 mpg. You can check your owner's manual or the EPA's fueleconomy.gov website for your exact model.