Audited 05 Aug 2026·Last updated 28 Oct 2026·3 citations·Tier 2·0 uses

Fuel Mileage Calculator

Work out real-world miles per gallon from the miles driven between fill-ups and the US gallons pumped, with the matching litres per 100 km.

Fuel Mileage Calculator

miles
gal
Fuel mileage
30
Miles traveled per US gallon of fuel over the distance entered; a higher figure means a more economical trip.
Metric consumption
7.8405L/100 km

Background.

Miles per gallon is the one fuel figure drivers can measure for themselves, and a measured figure is more honest than the number on a window sticker. Fill the tank until the pump clicks off, zero the trip odometer, drive as you normally would, then fill again: the gallons the second fill takes are the fuel the car burned over the miles on the trip meter. Divide one by the other and you have your actual economy, cold starts, traffic queues and short errands included.

The arithmetic is a single division, so all the accuracy lives in the measurement. Pumps shut off at slightly different points, and half a gallon either way on a 12-gallon refill moves a 360-mile result from 30 mpg to 28.8 or 31.3. Adding up several tankfuls of miles and gallons shrinks that error to a few percent of a much larger total.

The result is also given as litres per 100 kilometres, the convention used in Europe, Canada and Australia. The two scales run in opposite directions. Miles per gallon counts distance per unit of fuel, so higher is better; litres per 100 km counts fuel per unit of distance, so lower is better. The inversion matters when you compare cars. Over 1,000 miles, going from 10 to 20 mpg saves 50 gallons, while going from 30 to 50 mpg saves only about 13.3, even though the second improvement looks bigger on the mpg scale.

The gallons here are US gallons of 3.785 litres. A British imperial gallon holds about 20% more, so the same car reads about 20% higher in UK mpg: 30 US mpg is roughly 36 imperial.

What is fuel mileage calculator?

Fuel mileage, also called fuel economy, is the distance a vehicle covers per unit of fuel burned, given here in miles per US gallon. It is an average over the distance you enter, so a figure from one tankful blends highway cruising, idling and hard acceleration in whatever mix that tank saw. Its reciprocal, fuel consumption, describes the same performance as the litres needed to cover 100 kilometres. Electric and plug-in vehicles are rated in MPGe instead, which this page does not compute.

How to use this calculator.

  1. Fill the tank until the nozzle clicks off and reset the trip odometer, or write down the main odometer reading, before you drive away.
  2. Enter the miles shown at your next fill-up as Distance traveled. If your odometer reads in kilometres, divide by 1.609 first.
  3. Fill to the same automatic click-off and enter the gallons on the pump as Fuel consumed. If you stopped for fuel along the way, add those gallons too, because all of it was burned over that distance.
  4. Read the mpg figure, and use the L/100 km figure when comparing against a European or Canadian rating. For a dependable average, total the miles and gallons from three or four tankfuls and enter the totals.

The formula.

MPG=miles/gallons; L/100km=235.214583/MPG

Fuel mileage is distance divided by fuel: MPG = miles ÷ gallons. The metric figure turns that ratio upside down and rescales it: L/100 km = 235.214583 ÷ MPG. The constant comes from the exact unit definitions. One US gallon is 3.785411784 litres and one mile is 1.609344 kilometres, so 100 × 3.785411784 ÷ 1.609344 = 235.2146. Because consumption is the reciprocal of economy, equal steps in mpg are not equal steps in fuel used: 25 mpg is 9.41 L/100 km, 30 mpg is 7.84 and 40 mpg is 5.88. Of the two inputs, the fuel figure usually carries the larger error, since it is the smaller number and depends on where the pump stops. Fuel must be more than zero; a distance of zero reports zero for both results.

A worked example.

Example

A driver fills up, resets the trip meter, and refills 360 miles later; the pump stops at 12 gallons. Fuel mileage is 360 ÷ 12 = 30 mpg. For the metric figure, divide the conversion constant by that result: 235.214583 ÷ 30 = 7.8405, or about 7.84 litres per 100 km. As a cross-check, 360 miles is 579.36 km and 12 US gallons is 45.42 litres, and 45.42 ÷ 579.36 × 100 lands on the same 7.84. Had the second fill stopped half a gallon early, the same trip would read 360 ÷ 11.5 = 31.3 mpg; half a gallon late, 360 ÷ 12.5 = 28.8 mpg. A 2.5 mpg swing from pump click-off alone is the reason to average several tankfuls before deciding the car's economy has changed.

distance Miles360
fuel Gallons12

Frequently asked questions.

Why doesn't my measured mpg match the dashboard trip computer?
The trip computer estimates fuel from how long the injectors stay open rather than measuring what leaves the tank, so it can drift from the pump figure by a few percent. A miles-and-gallons figure averaged over several fill-ups is the better reference when the two disagree.
Why is my real mileage below the EPA rating for my car?
EPA ratings come from standardized laboratory drive cycles. Short trips that end before the engine warms up, cold weather, idling, hard acceleration, fast highway driving, roof racks and soft tires all burn extra fuel that the test cycle averages over, so everyday figures often fall below the sticker.
How do I compare my result with a UK mpg figure?
UK figures use the imperial gallon of 4.546 litres, about 20% larger than the US gallon. Multiply a UK mpg figure by 0.8327 to get US mpg, or multiply US mpg by 1.2009 to get UK mpg. The L/100 km result avoids the problem entirely, since litres are the same everywhere.
Is going from 30 to 35 mpg worth as much as going from 15 to 20?
No. Over 10,000 miles, moving from 15 to 20 mpg saves about 166.7 gallons, while moving from 30 to 35 mpg saves about 47.6 gallons. Fuel saved depends on the change in gallons per mile, which is why upgrading the thirstiest vehicle in a household usually saves the most.
What if I didn't fill the tank completely at the second stop?
Then the gallons pumped are less than the fuel burned and the mpg will come out too high. Carry the trip on until a later full fill and add every gallon pumped in between; the method only works when the first and last fills both stop at the automatic click-off.
Can I enter kilometres and litres instead?
The fields expect miles and US gallons. Divide kilometres by 1.609344 and litres by 3.785411784 before entering them; the litres per 100 km result will then match what you would get by dividing litres by kilometres and multiplying by 100.

How this page was produced

Published by
Quanta Calculator
Primary sources
3 cited below
Method
MPG=miles/gallons; L/100km=235.214583/MPG
Published
Last verified

Built with AI assistance and verified by automated tests against the cited sources — every worked example on this page is computed by the same code that runs the calculator. How we build and check calculators.

In this category

Embed

Quanta Pro

Paid features are coming later.

  • All 1560 calculators remain free
  • No billing is enabled
Coming soon