CalculatorSignAll calculators

Gas Mileage and Cost per Distance Calculator

Use recorded miles and gallons to calculate fuel economy, fuel cost per mile, and cost for a separate projected route.

Gas Mileage and Cost per Distance Calculator

Result
—

Use this calculator on your site

Paste the full code, including the CalculatorSign credit, into a Custom HTML block on your site.

Preview widget

Estimate fuel economy and the cost of a separate route

Enter recorded miles traveled and U.S. gallons consumed during the same measurement interval. Provide an assumed price per gallon and the length of a proposed route. The calculator divides the observed miles by the gallons to get fuel economy. It then multiplies the route's estimated gallon use by the chosen price to estimate fuel cost.

Verify the recorded mileage calculation

The preset describes 342 miles driven with 11.4 U.S. gallons. Dividing 342 by 11.4 gives 30 miles per gallon. At 3.60 per gallon, the assumed fuel cost per mile is 3.60 divided by 30, or 0.12. For a 470-mile route using the same fuel economy, the model estimates about 15.67 gallons and a fuel cost of 56.40.

The result uses the same efficiency to extend a record to a hypothetical future trip. If the mileage estimate changes, the number of gallons changes with it. If the price alone changes, the estimated fuel requirement stays the same while the cost changes. Recording both assumptions makes it possible to explain which input moved a revised trip estimate.

Choose a reliable recorded interval

To estimate fuel used between two fill-ups, compare equivalent tank levels. The gallons added at the later fill can represent consumption only if it returns the tank to roughly the same level as at the start. A partial later fill may make the vehicle appear to use less fuel than it really did. A long enough measured interval reduces the influence of minor inconsistency in when a pump stops.

Use the distance associated with the same fuel record. If a receipt shows the gallons from a later date, it should match the segment you measured since the last comparable fill. A dashboard trip distance can be useful if it was reset at the same point the fuel record began. Preserve start and end readings if an observed result needs verification.

Understand what may change on the proposed drive

A car that averaged 30 mpg in mixed commuting may behave differently during a loaded highway trip, heavy traffic, mountain driving or a cold start. Try a separate scenario with an efficiency appropriate to the expected conditions if there is good information to support it. The estimate assumes the entered record is representative of the proposed route, which may be a deliberately simplified planning choice.

A drive may also cross areas where the unit fuel price varies. Use an appropriate average only if it represents the fuel purchased at each price. A simple average of two station prices gives both equal effect, even when you expect to buy more gallons at one. For a detailed plan, split the trip into separate legs with their own consumption and prices.

Keep the units for distance and fuel paired

The mileage fields are miles and U.S. gallons. A different kind of gallon or a litre measurement requires conversion before entry. Likewise, a kilometre route needs conversion to miles before using a cost per mile. An efficiency figure in litres per hundred kilometres reports fuel per distance, which moves in the opposite direction from miles per gallon. A lower litres-per-hundred-kilometres figure describes better efficiency on that scale.

The per-mile cost is displayed as currency to cents, but the total uses the unrounded ratio. If a displayed cost looks like 0.13 per mile, multiplying the shown cents by hundreds of miles can differ from the reported total. Use the underlying measured values to check the exact model rather than treating the rounded line as the computation input.

Compare fuel costs without folding in other trip expenses

Parking, tolls and other route costs are outside the calculation. Adding them separately gives a broader trip budget. The model also does not apply changes to fuel quantity from detours unless you update route miles. For a round trip, enter the total distance you intend to travel, unless the two directions have different fuel assumptions that need separate estimates.

An entered fuel price of zero gives a zero fuel cost while preserving the mileage result. If the price is unknown, treat the cost as missing rather than a realistic zero-dollar estimate. Record the date and place of a price assumption if you expect to revisit the budget later.

Frequently asked questions

Can a short trip yield an accurate mileage result?

The arithmetic works with any positive entered miles and gallons. Short measurement intervals can amplify small errors in the distance, refill amount or initial fuel level. Use an interval with reliable measurements for comparison.

What happens if the return trip is a different length?

Add the two distances together if the same mileage and fuel price are reasonable for both. Otherwise, calculate the legs separately and add their estimated costs. Keep a note of which leg used each assumption.

Does the estimated cost depend on the full tank capacity?

Tank capacity is not part of the formula. The model uses measured fuel consumption per mile and an entered fuel price. Whether a particular route requires a stop depends on starting fuel and available range separately.

U.S. Department of Energy fuel economy tracking