Automotive calculators

Mileage Calculator

Updated Jun 12, 2026 By Jehan Wadia
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. If you're planning a route with toll roads, our Toll Calculator can help you estimate those specific costs.

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. For a deeper look at speed and distance relationships, you can also try our Speed Calculator.

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. If you need help determining your vehicle's fuel efficiency, check out our Gas Mileage Calculator.

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. For a more detailed breakdown of fuel expenses, try our Fuel Cost Calculator.

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. If you're also curious about the straight-line distance between two points, our Distance Calculator can help with that.

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 depreciation, which you can explore with our Car Depreciation Calculator. For those tracking mileage for business purposes, keeping records can also help when using a Self Employment Tax Calculator to handle deductions at tax time.

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. If you are also planning air travel as part of a longer journey, our Flight Time Calculator can help you estimate that portion of your trip. You may also want to consider financing costs if you're purchasing a vehicle for regular driving. Our Auto Loan Calculator can help you understand monthly payments, while the Car Lease Calculator is useful if you're leasing instead of buying.

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. If you need to convert between other measurement units for construction or home projects, tools like our Meters to Feet Calculator can also be helpful.


Frequently asked questions

What cities does the mileage calculator recognize?

The calculator has a built-in list of major U.S. cities like New York, Boston, Chicago, Los Angeles, Miami, Dallas, Denver, Seattle, and more. You can also type in any address or GPS coordinates (like 40.7128, -74.0060) for places not on the list.

How accurate is the distance estimate?

The calculator uses the haversine formula to find the straight-line distance and then adds a road-winding factor to estimate real driving distance. It is a good estimate for planning, but actual mileage may differ based on the exact route, traffic, and road conditions.

Can I use this calculator for trips outside the United States?

Yes. Switch the unit to kilometers, and enter GPS coordinates for locations outside the U.S. The calculator works for any two points on Earth as long as you provide valid coordinates or a recognized city name.

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 do I enter GPS coordinates?

Type latitude and longitude separated by a comma in the From or To field. For example, enter 34.0522, -118.2437 for Los Angeles. Latitude must be between -90 and 90, and longitude must be between -180 and 180.

What does the Avoid Highways option do?

Checking Avoid Highways increases the estimated distance by about 18% to account for taking smaller, slower roads instead of highways or motorways. This gives you a rough idea of how much farther an alternate route might be.

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.

Can I use this to track mileage for tax deductions?

Yes. Enter your work-related trips and use the IRS mileage rate ($0.67/mile for 2024) as the cost per mile. The calculator gives you the total distance and cost, which you can use as a reference for your mileage log. Always keep detailed records for tax filing.

What happens if I check multiple avoidance options at once?

Each avoidance option adds to the total distance estimate. Avoid Highways adds about 18%, Avoid Tolls adds about 7%, and Avoid Ferries adds about 5%. If you check all three, the distance increases by about 30% total over the base estimate.

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.

Can I print or save my results?

You can use your browser's built-in print function (Ctrl+P on Windows or Cmd+P on Mac) to print or save the page as a PDF. The results table and chart will be included.

Why does the swap button recalculate automatically?

When you click the swap button, the calculator switches your start and end points and runs the calculation right away. This saves you a step so you can quickly see the return trip distance without pressing Calculate again.