Calculators

Gas Mileage Calculator

Estimate fuel economy in miles per gallon from miles driven and gallons of fuel used. Enter the distance and fuel consumed for the same trip or measurement period.

Loading calculator...

What this Gas Mileage Calculator does

This Gas Mileage Calculator estimates a vehicle's fuel economy in miles per gallon, or mpg. It divides the miles driven by the US gallons of fuel used during the same interval. For example, if a trip covers 120 miles and uses 4 gallons, the estimate is 30 mpg.

The result is a straightforward ratio based on the figures you enter. It can help with trip planning by turning a fuel-use record into a distance-per-gallon estimate. You can compare similar journeys, estimate how far a known quantity of fuel might take you under similar conditions, or keep a consistent record over time.

This calculator uses US gallons. A result in mpg depends on the gallon unit, so do not compare it directly with a figure based on Imperial gallons or litres per 100 kilometres without converting units. It also describes the distance and fuel you report. It does not independently measure fuel use or predict the exact result of a future journey.

How to use the Gas Mileage Calculator

Enter the distance and fuel used for one matching trip or measurement period. Use the odometer or trip meter for miles, and use the same method each time you record the fuel. The distance and fuel amounts need to cover the same interval for the ratio to be meaningful.

  • Miles driven: Enter the number of miles covered during the period.
  • Fuel used: Enter the US gallons consumed during that same period.

For a worked example, suppose your trip meter shows 120 miles and your record shows 4 US gallons used. The formula is miles driven divided by fuel used, so 120 miles / 4 gallons = 30 miles per gallon. The displayed result is 30.00 mpg.

For a multi-day trip, you can use the total miles and total gallons over the full period. Add the distance records together and add the fuel records together before calculating. The total ratio reflects the combined journey. Averaging individual mpg readings without accounting for the amount of fuel in each interval can give a different figure.

How the Gas Mileage Calculator formula works

The formula is miles driven / fuel used. It expresses how many miles correspond to each gallon in the recorded period. If you drive farther while using the same amount of fuel, the calculated mpg rises. If you use more fuel over the same distance, the result falls.

The units explain the result. Dividing miles by gallons produces miles per gallon. For example, 240 miles / 12 gallons = 20 mpg. The arithmetic is simple, but the estimate is only as consistent as the measurements. A distance from one interval should not be divided by fuel used in another.

The calculator accepts positive values for both inputs, which avoids a zero denominator and gives the calculation a defined result. Use the amount of fuel actually consumed across the distance, rather than the tank's capacity. Tank capacity alone does not show how much fuel was used.

Use cases for the Gas Mileage Calculator

A gas mileage estimate can be useful when organizing a drive and reviewing past trips. It gives you one repeatable figure to note alongside the route and conditions. Possible uses include:

  • Recording fuel economy after a road trip.
  • Comparing repeated drives when the route and measurement method are similar.
  • Checking how a change in route or driving conditions corresponds with a recorded result.
  • Creating a rough planning estimate from a recent, relevant trip record.

For a rough distance estimate from a known fuel amount, rearrange the same relationship: estimated miles = gallons × mpg. If a prior measured result is 30 mpg, then 5 gallons multiplied by 30 miles per gallon gives 150 miles as a simple arithmetic estimate. Treat that as an illustration based on the earlier figure, not a guarantee for a new route. Actual consumption may differ.

Other factors to consider when calculating gas mileage

Fuel economy can vary between measurement periods. Traffic, speed, hills, weather, idling, vehicle load, tire condition, and maintenance can all affect the fuel used on a journey. A route with frequent stops may produce a different result from a steady drive, even in the same vehicle.

Measurement choices also matter. A trip meter may be reset at a different point than the fuel record begins, and a partial fill-up can make the gallons attributed to one interval less representative. For a more useful comparison, record distance and fuel consistently over several intervals and note the relevant conditions. Each calculation still describes its own recorded period.

Use one distance unit and one gallon definition throughout. This tool expects miles and US gallons. If your records use kilometres or litres, convert them before entering values, or use a calculator designed for those units. Rounding can also affect the result, especially when the distance or fuel amount is small.

Frequently asked questions

What does mpg mean?

MPG means miles per gallon. It describes the number of miles associated with one gallon of fuel in the measured interval. This calculator reports miles per US gallon.

Should I enter the tank's capacity?

No. Enter the fuel used during the same period as the miles driven. Tank capacity is the amount the tank can hold, not necessarily the amount consumed on the trip.

Can I use this for a whole road trip?

Yes. Use the trip's total miles and the total US gallons used over that same trip. Keeping both totals aligned gives a combined fuel economy estimate for the journey.

Why is my result different from a vehicle's published mpg?

Your route, traffic, speed, load, weather, and measurement method may differ from the conditions used for a published figure. This calculator uses your entered records, while published results may come from standardized testing.

Does this result predict how far I can drive next?

It can support a rough estimate when conditions are similar, but it cannot guarantee future range. Fuel economy changes with driving conditions, and the calculator does not account for route details or reserve fuel.

Written by

blackdown-hills.net Editorial Team

Editorial team

blackdown-hills.net publishes practical how-to guides and educational articles with clear steps and useful context.