Skip to content

Gas Mileage Calculator

Measure fuel economy from a refill or trip, compare US and imperial MPG with metric consumption, and estimate fuel cost per mile using your own pump price.

Free, no sign-up · Last updated

Distance entry
Gallon definition
Optional
Fuel price is per
US defaults ·

US miles per gallon

30 MPG

US MPG30
UK MPG (imperial)36.028
Litres per 100 km7.84
Kilometres per litre12.754
Distance driven300 miles
Fuel used37.854118 L
Fuel cost per mile$0.1167
Fuel cost for this distance$35.00

US and imperial gallons differ. The price per selected gallon uses the gallon definition above; choose per litre for a pump price in litres. Leave price at zero to omit cost. Compare full-tank refills covering the same distance. Costs include fuel only, excluding maintenance, insurance and depreciation.

Definition

What miles per gallon means

Miles per gallon (MPG) is the distance a vehicle covers in miles per gallon of fuel used. Higher MPG means the vehicle goes farther on the same amount of fuel. The result depends on whether the gallon is defined by the US or imperial standard.

Numerator
Miles covered during the fuel measurement
Denominator
US or imperial gallons consumed
In L/100 km
Lower means less fuel for the same distance

Measure fuel economy from a refill

Enter the miles driven over a measured interval and the gallons consumed during that same interval. You can enter the distance directly or use starting and ending odometer readings. Odometer readings must both be in miles, and the ending reading must be larger. The calculator subtracts the two readings before applying the fuel-economy formulas. The result describes the measured trip or refill interval, rather than predicting an official vehicle rating.

For a useful full-tank measurement, fill to a consistent point, record the odometer, drive normally, and refill to the same point. The amount bought at the second refill estimates the fuel consumed between the two readings. A partial refill paired with the entire distance can make the economy look artificially high. Small differences in pump shutoff, parking slope and fill level can also affect one tank, so keep several records when looking for a trend.

Choose the correct gallon

US gallons and imperial gallons measure different volumes. One US gallon is exactly 3.785411784 litres, while one imperial gallon is exactly 4.54609 litres. Because an imperial gallon holds more fuel, the same physical fuel economy has a larger numerical UK MPG figure than US MPG. Always check which gallon definition a vehicle specification, road test or dashboard setting uses before comparing numbers.

Select the gallon definition that matches the quantity you enter. Both MPG results are then shown, alongside litres per hundred kilometres and kilometres per litre. The mile is converted using exactly 1.609344 kilometres. The calculator retains these constants during arithmetic and rounds only the displayed results. Switching the gallon definition changes what the input quantity means; it does not automatically convert a previously typed number of gallons to preserve the original volume.

Read MPG and metric consumption

Miles per gallon and kilometres per litre measure distance travelled for each unit of fuel. Higher values mean that less fuel is needed for a given journey. Litres per hundred kilometres reverses that relationship: it measures the fuel needed to cover a fixed distance, so a lower number means better economy. These measures describe the same observation from different directions and should move consistently when you change an input.

Three hundred miles on ten US gallons is thirty US MPG. The same observation is about 36.028 UK MPG and 7.840 litres per hundred kilometres. A move from twenty to thirty MPG saves more fuel over a fixed distance than a move from thirty to forty MPG, even though both changes add ten MPG. To combine several tanks, add all their miles and all their fuel first. Averaging tank MPG values without accounting for their sizes can produce a misleading figure.

Estimate cost per mile and compare trips

Enter a fuel price if you want a cost estimate. The per-gallon option follows the selected gallon definition, while the per-litre option uses the converted volume in litres. Check the unit on your pump receipt rather than assuming that a currency identifies the volume unit. Currency selection changes how money is displayed; it does not perform an exchange-rate conversion or change the fuel-economy measurement.

Ten US gallons at 3.50 per gallon cost 35.00. Over three hundred miles, that is approximately 0.1167 per mile. This is fuel cost only, and it excludes tyres, servicing, insurance, depreciation, tolls and parking. Leave the price blank or at zero to omit the cost rows. Use the fuel cost calculator to plan the expense of a future journey from an expected distance and economy. This page is most useful for calculating actual economy from distance and fuel already measured.

Step-by-step example

Drive 300 miles on 10 US gallons of fuel at an example price of $3.50 per US gallon.

StepResult
US fuel economy30 US mpg
UK fuel economy36.028 UK mpg
Litres used per 100 km7.840 L/100 km
Kilometres travelled per litre12.754 km/L
Fuel cost for the trip$35.00
Fuel cost per mile$0.1167

Formulas used

Fuel economy conversions

US MPG = miles / (litres / 3.785411784)

UK MPG = miles / (litres / 4.54609)

Kilometres = miles × 1.609344

L/100 km = 100 × litres / kilometres

km/L = kilometres / litres

Cost per mile = total fuel cost / miles

US MPG
miles per US gallon
UK MPG
miles per imperial gallon
L/100 km
litres per 100 kilometres
km/L
kilometres per litre

Example: 300 miles / 10 US gallons = 30 US MPG. Fuel is 37.85411784 L and distance is 482.8032 km, giving 7.840486 L/100 km. At 3.50 per gallon, fuel cost is 35 / 300 = 0.116667 per mile.

When the answer can mislead

  • An odometer set to kilometres will overstate MPG if you enter its readings as miles.
  • A short run can make small differences in refill volume look like large changes in MPG.
  • Compare trips with similar conditions if you want to isolate a change in fuel economy.

Questions

Why is UK MPG higher than US MPG?

The imperial gallon contains more litres than the US gallon. A vehicle travels farther per imperial gallon, so the numerical UK MPG figure is higher for the same economy.

Can I use odometer readings?

Yes. Choose odometer entry and enter the starting and ending readings in miles. Use the fuel consumed between those readings, and ensure the ending reading exceeds the starting one.

Is lower L/100 km better?

Yes. It means fewer litres are needed to travel one hundred kilometres. MPG and kilometres per litre work the other way: larger values indicate better fuel economy.

Does cost per mile include maintenance?

It includes only the fuel price and consumption you enter. Total ownership costs also depend on servicing, insurance, tyres, depreciation and other expenses outside this calculation.

How should I average several refills?

Sum the distances and sum the fuel volumes using a consistent unit, then divide total distance by total fuel. A simple average of individual MPG figures can give the wrong combined result.

Sources

  1. U.S. Department of Energy and EPA: Calculating miles per gallon
  2. NIST: Converting miles per gallon and liters per 100 kilometers
Last updated How we check
Embed this calculator
Cite this calculator

Gas Mileage Calculator. CalculatorLab. https://calculatorlab.site/calculators/gas-mileage-calculator/. Last updated .