ThisCalculator

Everyday

Calculate Mileage for a Trip: Easy Formula

Updated · Standard formula, shown below

Average pace 5.00 min/km
Average speed
12.00 km/h
Result
Finish time
50 min
You entered
Distance
10 km
You entered

Calculate Mileage for a Trip: Easy Formula

To calculate mileage for a trip, divide the total distance driven by the number of gallons (or liters) of fuel used. Enter your distance and fuel used below to get your average fuel economy in miles per gallon (MPG) or liters per 100 kilometers (L/100 km).

Formula

The basic formula for fuel mileage is:

Mileage (MPG) = Distance Driven (miles) ÷ Fuel Used (gallons)

For metric users:

Fuel Consumption (L/100 km) = (Fuel Used (liters) ÷ Distance Driven (km)) × 100

Variables:

  • Distance – the total miles or kilometers traveled, from your trip odometer or a map.
  • Fuel Used – the amount of fuel (gallons or liters) needed to refill the tank after the trip.

This calculation gives your average fuel economy over that specific trip. A higher MPG (or lower L/100 km) means better efficiency.

Worked Example

Suppose you drive 300 miles and use 10 gallons of fuel. Using the formula:

  1. Distance = 300 miles
  2. Fuel = 10 gallons
  3. Mileage = 300 ÷ 10 = 30 MPG

So your trip average is 30 miles per gallon. In metric, if you drove 480 km and used 40 liters, the consumption would be (40 ÷ 480) × 100 = 8.33 L/100 km.

How to Measure Your Trip Mileage Accurately

To get a reliable number, follow these steps:

  • Fill your tank completely and reset the trip odometer to zero.
  • Drive your normal route for the trip.
  • When you return, fill the tank again at the same pump, noting how many gallons or liters it takes.
  • Read the trip odometer for the exact distance.

Using the same pump reduces variability. For highway vs. city comparisons, run separate trips and record the conditions.

Why Your Mileage Varies

Several factors affect real-world fuel economy:

  • Driving speed – fuel efficiency typically drops above 50 mph (80 km/h) due to aerodynamic drag.
  • Traffic and idling – stop-and-go driving burns more fuel per mile.
  • Tire pressure – underinflated tires increase rolling resistance.
  • Load and cargo – extra weight requires more energy.
  • Weather – headwinds, rain, and cold temperatures all increase consumption.
  • Vehicle condition – dirty air filters or worn spark plugs can reduce efficiency.

Your trip mileage is an average, not a fixed number. Short trips in winter will be far worse than a steady highway run in summer.

Common Mistakes When Calculating Mileage

People often make these errors:

  • Not resetting the odometer – using total miles instead of trip miles skews the result.
  • Mixing units – dividing miles by liters or kilometers by gallons gives meaningless numbers. Convert first (1 gallon = 3.785 liters, 1 mile = 1.609 km).
  • Topping off inconsistently – if you don’t fill to the same level each time, the fuel amount is wrong.
  • Using the dashboard display – built-in estimators are often optimistic; manual calculation is more accurate.

For a precise comparison, always use the same method each time.

How to Use Mileage for Trip Planning

Once you know your average MPG, you can estimate fuel needs for a future trip:

  1. Estimate the total distance of the trip (e.g., 600 miles).
  2. Divide by your average MPG (e.g., 30 MPG).
  3. That gives the gallons needed (600 ÷ 30 = 20 gallons).
  4. Multiply by the current fuel price to get the cost.

For metric: multiply the distance (km) by the L/100 km figure, then divide by 100. For example, 800 km × 8 L/100 km = 64 liters.

This helps you budget and decide whether a more efficient route or vehicle is worth it.

Comparing Vehicles and Driving Styles

Mileage is a key metric for comparing cars. The U.S. EPA publishes official ratings for new vehicles, but real-world numbers often differ. To compare fairly:

  • Use the same route and conditions for both vehicles.
  • Track several tanks, not just one.
  • Note the type of driving (city, highway, mixed).

Driving style also matters: smooth acceleration, maintaining a steady speed, and anticipating stops can improve mileage by 10–20% compared to aggressive driving.

Frequently Asked Questions

How do I calculate mileage for a trip without a trip odometer?

Use a GPS app or an online map service to measure the distance between your start and end points. Alternatively, note the odometer reading at the start and end, then subtract to get the trip distance.

What’s the difference between MPG and L/100 km?

MPG (miles per gallon) is a measure of efficiency – higher is better. L/100 km (liters per 100 km) measures fuel consumption – lower is better. To convert MPG to L/100 km, divide 235.2 by the MPG value (US gallons). For imperial gallons, use 282.5.

Can I calculate mileage for a trip using the fuel gauge?

Yes, but less accurately. Fill the tank, note the exact distance when the gauge reaches a certain mark (e.g., half), then fill again and measure how much fuel was used to cover that distance.

Why does my car’s computer show different mileage than my manual calculation?

Dashboard computers estimate fuel flow based on engine parameters and often don’t account for idling, tire changes, or aftermarket modifications. Manual calculation from actual fuel purchases is generally more accurate.

How many miles can I drive on a full tank?

Multiply your tank capacity (in gallons) by your average MPG. For example, a 15-gallon tank at 28 MPG gives 420 miles of range. In metric, divide the tank capacity (liters) by the L/100 km figure and multiply by 100.

Does the mileage calculation work for electric vehicles?

No, EVs use kilowatt-hours per 100 miles (kWh/100 mi) or miles per kWh. The same logic applies: divide energy used by distance, but the units are different.

Related

Formula used
in t | Finish time | min | 50 | 0
in d | Distance | km | 10 | 0
out pace | Average pace | min/km | t / d | 2
out speed | Average speed | km/h | d / (t / 60) | 2

Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.