Calculators

Gas Mileage Calculator

Estimate fuel economy from the distance traveled and fuel used, with selectable distance and fuel units for trip planning.

Loading calculator...

What this Gas Mileage Calculator does

This Gas Mileage Calculator estimates a vehicle's fuel economy from the distance traveled and the fuel consumed. It converts the distance to miles and the fuel amount to US gallons, then divides miles by gallons. The result is expressed as miles per gallon (mpg), a familiar measure for comparing trip efficiency when the underlying records use compatible units.

The inputs are Distance traveled, Distance unit, Fuel used, and Fuel unit. You can enter miles or kilometers for distance and US gallons or liters for fuel. The calculator's unit choices apply fixed conversions: one kilometer is treated as 0.621371 miles, and one liter as 0.264172 US gallons. These rounded factors are adequate for an estimate, though they can create small differences from a vehicle display or a calculation using more precise conversion constants.

This estimate describes the distance and fuel entered. It does not predict how far a vehicle can travel on a future tank, determine fuel costs, or account for changing road conditions. For a meaningful result, use distance and fuel amounts that refer to the same trip or measurement interval.

How to use the Gas Mileage Calculator

Gather the distance traveled and fuel used for one interval. A trip odometer reading paired with a fuel amount from the same period can work. If you are measuring between fill-ups, record the distance since the previous fill-up and the amount needed to refill the tank. Use a consistent method each time so comparisons are useful.

  1. Enter the distance. Type the miles or kilometers covered during the interval.
  2. Select its unit. Choose Miles or Kilometers to match your distance record.
  3. Enter the fuel amount. Use the amount consumed over that same interval.
  4. Select the fuel unit. Choose US gallons or Liters to match the fuel record.
  5. Read the result. The estimate appears as miles per US gallon.

For example, if a route covers 300 miles and uses 10 US gallons, enter 300, select Miles, enter 10, and select US gallons. The result is 30.00 mpg. If the records are 480 kilometers and 36 liters, select those units. The calculation first converts both values and then divides, giving approximately 13.80 mpg.

Enter the actual fuel amount used, rather than the tank's capacity. A 50-liter tank does not imply that 50 liters were consumed during a particular trip. If your fuel record is in imperial gallons, convert it to liters or US gallons before entering it, because the calculator's gallon option means US gallons.

How the Gas Mileage Calculator formula works

The calculator applies this formula: (distance × distance unit conversion) ÷ (fuel × fuel unit conversion). Miles use a multiplier of 1, while kilometers use 0.621371. US gallons use a multiplier of 1, while liters use 0.264172. The calculation turns the inputs into miles and US gallons before dividing.

Using the 300-mile, 10-gallon example, the arithmetic is (300 × 1) ÷ (10 × 1), which equals 30 mpg. With 480 kilometers and 36 liters, it is (480 × 0.621371) ÷ (36 × 0.264172), or roughly 13.80 mpg. This demonstrates why both unit selections matter. Dividing a kilometer value directly by a gallon value would produce a different unit and would not match the result label.

The formula assumes the entered distance and fuel amount cover the same interval. It treats the values as measured inputs and does not add a correction for terrain, weather, passenger load, or driving style. The displayed two decimal places are a convenient presentation; they do not make the source measurements more precise.

Use cases for the Gas Mileage Calculator

For trip planning, a measured fuel economy can help describe how efficiently a vehicle performed on a completed journey. Comparing similar trips over time may show whether the measured figure varies across routes or conditions. Keep notes about the trip context if you want to interpret those variations.

The estimate can also help organize travel records. For example, a traveler can record distance and fuel after each leg, then calculate an individual leg's fuel economy. A fleet or household log can use the same process for different vehicles, as long as each entry records the matching distance and fuel quantities.

Fuel economy alone does not provide a trip budget. To estimate fuel expense, a traveler would also need a fuel price and a planned distance, and prices can change along a route. This calculator focuses on measured fuel efficiency and does not supply route information or current prices.

Other factors to consider when calculating gas mileage

A single trip can produce a result that differs from a vehicle's usual performance. Stop-and-go traffic, sustained highway speeds, hills, temperature, wind, cargo, tire condition, and driving patterns can all affect fuel consumed. The calculator does not model these influences, so treat its output as a summary of the entered interval.

Measurement choices matter as well. An odometer may have a small measurement difference, and a fuel pump may stop at a different point on each refill. For a steadier comparison, use the same vehicle, comparable trip boundaries, and a consistent refill approach across multiple intervals. Several readings can provide more context than one result.

Also check whether the units mean what you expect. A US gallon differs from an imperial gallon, while liters are the same volume unit across these entries. If a source gives imperial gallons, convert that quantity before using this calculator. Keep unrounded input values when available, since rounding distance or fuel too early can shift the result.

Frequently asked questions

What does miles per gallon mean?

Miles per gallon states how many miles were traveled for each US gallon of fuel used. A higher number indicates more distance per gallon for the measured interval, but comparisons are most useful when vehicles and driving conditions are considered.

Can I enter kilometers and liters?

Yes. Select Kilometers and Liters. The calculator converts both inputs to miles and US gallons before producing its mpg estimate.

Why should distance and fuel cover the same period?

The formula divides one quantity by the other. If distance is for a whole journey but fuel is only for one part, the quotient will not represent that journey's fuel economy.

Is this a measure of future driving range?

No. It is an average based on the values supplied. Range would also depend on usable fuel remaining and conditions during the future drive, which this calculation does not estimate.

Why might the result differ from my dashboard?

Dashboard readings may use a different measurement period, conversion precision, or vehicle data. Differences can also arise from refill and odometer variation. Treat this result as a transparent calculation from your entered figures.

Written by

acrossandabroad.com Editorial Team

Editorial team

acrossandabroad.com publishes practical how-to guides and educational articles with clear steps and useful context.