Audited 27 Jul 2026·Last updated 28 Oct 2026·6 citations·Tier 1·0 uses

MPG Calculator

Work out fuel economy from distance and fuel used, in miles or km and US gallons, UK gallons or litres: US MPG, UK MPG, km/L, L/100 km and gal/100 mi.

MPG Calculator

Miles or kilometres covered since the last full tank. Use a fill-to-fill measurement (see the steps below) for the cleanest result.
Distance unit
Volume of fuel added at the second fill-up — the amount it took to top the tank back to the same mark. Pick the unit below to match the pump receipt.
Fuel unit
US MPG
25
Miles per US gallon, the unit on US fuel-economy labels and in CAFE standards; higher means less fuel for the same distance.
Kilometres per litre
10.6286 km/L
Litres per 100 km
9.4086 L/100km
UK MPG (imperial)
30.0237 mpg UK
Gallons per 100 miles
4 gal/100mi

Background.

Fuel economy is one division — distance driven over fuel used — and the arithmetic is the easy part. The trouble is the units. A US gallon is 3.785411784 litres and an imperial gallon, the one used for British MPG figures, is 4.54609 litres; both are exact by definition, and the imperial gallon is about 20% bigger. So a car reviewed at 50 mpg in a British magazine is managing roughly 41.6 mpg by the American measure, with nothing about the car different. More confused comparisons start there than anywhere else.

Most of the world avoids the gallon altogether and quotes consumption instead of economy: litres per 100 kilometres, where lower is better. That choice is not just habit. Fuel used, fuel cost and tailpipe CO2 all rise in straight proportion to L/100 km, while MPG is a reciprocal and bends the comparison. Researchers Richard Larrick and Jack Soll named the effect the MPG illusion in Science in 2008: people tend to treat equal MPG gains as equal savings, so a jump from 15 to 25 mpg and one from 40 to 50 look alike, yet over every 100 miles the first saves about 2.667 gallons and the second only half a gallon.

The US fuel-economy label added gallons per 100 miles alongside MPG from the 2013 model year for exactly that kind of comparison. Here all five common units come out side by side — US MPG, UK MPG, kilometres per litre, litres per 100 km and US gallons per 100 miles — so you can read whichever one answers your question, whether that is a budget, a comparison with a window sticker or a figure a friend quoted from abroad. The conversions rest on three exact constants: the international mile of 1.609344 km, fixed by the 1959 agreement on the yard and pound, and the two gallons. The inputs are the uncertain part, and the steps below show how to measure them from one fill-up to the next.

What is mpg calculator?

Miles per gallon is the ratio of distance driven to fuel consumed, and it is the unit of US fuel-economy labels and of the Corporate Average Fuel Economy (CAFE) programme run by the National Highway Traffic Safety Administration, which sets a sales-weighted fleet average each carmaker's new vehicles must meet; the first passenger-car standard, in 1978, was 18 mpg. A car that covers 300 miles on 12 US gallons does 25 mpg. Litres per 100 km turns the ratio upside down and scales it: a car using 12 litres every 100 km does about 19.6 US mpg, and for any car US MPG multiplied by L/100 km comes to about 235.215. British MPG figures divide by the larger imperial gallon, so they run about 20% higher than US figures for the same driving. None of these numbers is an engine efficiency in the thermodynamic sense; they are distance-per-fuel ratios, useful because distance and fuel are what a driver can actually observe.

How to use this calculator.

  1. Fill the tank until the pump nozzle clicks off the first time and reset the trip odometer. Don't top off past the click: it adds little, risks spills, and what matters is stopping at the same point at both fill-ups.
  2. Drive normally for at least one tank, ideally two, so that small differences in where the pump shuts off matter less. A tank of mixed town and highway driving is the fairest comparison with a combined rating.
  3. Refuel the same way, stopping at the first click. The amount on the pump is the fuel you used; the trip odometer reading is the distance.
  4. Enter the distance and choose miles or kilometres, then enter the fuel and choose the unit on your receipt: US gallons at a US pump, litres almost everywhere else, UK gallons only if a British figure is what you have.
  5. Read the five outputs. US MPG compares with an American window sticker; L/100 km or gallons per 100 miles feed a fuel-cost or CO2 estimate; UK MPG should come out about 20.1% above US MPG, a quick check that the units went in correctly.
  6. To track a car over months, keep a running total of distance and fuel and divide the totals, rather than averaging each tank's MPG — one of the questions below shows why the two differ.

The formula.

MPG = mi ⁄ gal ; L/100km = 235.215 ⁄ MPG

The core relationship is US MPG = distance in miles ÷ fuel in US gallons. The calculator converts whatever you enter into kilometres and litres first, then derives every unit from the same ratio using exact constants: 1 mile = 1.609344 km and 1 US gallon = 3.785411784 L (NIST SP 811), and 1 imperial gallon = 4.54609 L (UK Weights and Measures Act 1985).

L/100 km = 235.214583 ÷ US MPG km/L = US MPG × 0.4251437 UK MPG = US MPG × 1.20095 gal/100 mi = 100 ÷ US MPG

The constant 235.214583 is not arbitrary: it is 3.785411784 × 100 ÷ 1.609344, the litres in a US gallon times 100, divided by the kilometres in a mile. The 0.4251437 is 1.609344 ÷ 3.785411784, and 1.20095 is the ratio of the two gallons, 4.54609 ÷ 3.785411784.

Two of the five outputs, L/100 km and gal/100 mi, measure consumption and grow in proportion to the fuel you burn. The other three measure economy and are reciprocals of consumption, which is where intuition goes wrong. Two cars 5 mpg apart at the low end, 15 and 20 mpg, differ by about 1.667 gallons every 100 miles; two cars 5 mpg apart at the top, 40 and 45 mpg, differ by about 0.2778 gallons — one sixth as much. Whenever the question is about money or emissions, compare the consumption figures.

A worked example.

Example

You drive 300 miles between fill-ups and the pump clicks off after 12 US gallons. 300 ÷ 12 = 25 US MPG, the headline figure. The other units follow from the exact constants. Litres per 100 km is 235.214583 ÷ 25 = 9.4086 L/100 km. Kilometres per litre is 25 × 0.4251437 = 10.6286 km/L, the unit quoted in Japan and India. UK MPG is 25 × 1.20095 = 30.0237, about 20% higher only because the imperial gallon is bigger. Gallons per 100 miles is 100 ÷ 25 = 4. That last figure is the one to budget with. At a pump price of, say, $3.50 a gallon, 4 gallons per 100 miles is $14 of fuel per 100 miles, and a 1,200-mile road trip needs 48 gallons, or $168. The same car driven in kilometres shows the metric pair. Cover 450 km on 38 litres and the calculator gives 11.8421 km/L and 8.4444 L/100 km — the two numbers are reciprocals, 100 ÷ 11.8421 = 8.4444 — which is 27.8544 US MPG and 33.4517 UK MPG.

distance Unitmi
distance300
fuel12
fuel Unitgal-us

Frequently asked questions.

What is the difference between a US gallon and a UK (imperial) gallon?
A US gallon is exactly 3.785411784 litres and an imperial gallon exactly 4.54609 litres, so the imperial gallon is about 20.095% larger. The US gallon descends from the old English wine gallon of 231 cubic inches, fixed under Queen Anne in 1707; Britain replaced its various gallons in 1824 with the imperial gallon, defined as the volume of 10 pounds of water at 62 °F. A car rated 36 mpg in US terms is about 43.23 in UK terms. To turn a British figure into a US one, multiply by about 0.8327.
What is the 'MPG illusion' and why does it matter?
Larrick and Soll's 2008 paper in Science showed that people judge fuel savings as if MPG were linear, when it is a reciprocal. Asked to compare upgrades, most expect going from 34 to 50 mpg to save more than going from 18 to 28. Over 10,000 miles the second saves about 198 gallons and the first about 94, so the smaller-looking upgrade saves twice as much. Comparing gallons per 100 miles or litres per 100 km removes the trap, because those figures fall in step with the fuel you actually buy.
How do I average my MPG over several tanks?
Add up the distances, add up the fuel, and divide the totals. Averaging each tank's MPG gives short tanks too much weight. Drive 300 miles on 12 gallons (25 mpg) and then 100 miles on 5 gallons (20 mpg): the simple average of the two figures is 22.5, but the car actually covered 400 miles on 17 gallons, which is about 23.53 mpg. The total-over-total figure is the one that matches what you paid for fuel.
Why doesn't my measured MPG match the window sticker?
The sticker comes from standardised laboratory test cycles run on a dynamometer, not from your roads. Since the 2008 model year the EPA has adjusted label values using additional tests for higher speeds, air-conditioning use and cold temperatures, which brought them closer to typical driving, but they remain averages built for comparing cars with each other. Your speed, climate, trip length, tyre pressure, load and terrain all move the real figure, so a fill-to-fill measurement over several tanks is the better guide to your own costs.
How do I turn an MPG figure into a cost for a trip?
Divide the trip distance by the MPG to get gallons, then multiply by the pump price. At 25 mpg, a 1,200-mile trip needs 48 gallons, and at an illustrative $3.50 a gallon that is $168. In metric units, multiply the distance in kilometres by the L/100 km figure, divide by 100 and multiply by the price per litre. Add some margin for hills, headwinds, a loaded roof box or long stretches at high speed, all of which raise consumption.
How much CO2 does my car emit per mile?
Burning fuel turns its carbon into carbon dioxide in a fixed proportion. The EPA puts the figure at about 8,887 grams of CO2 per US gallon of gasoline, which is about 2,348 grams per litre. Divide by your MPG for grams per mile: a 25 mpg car emits about 355 g/mile, or roughly 221 g/km at its 9.4086 L/100 km. Because the figure scales directly with fuel used, the consumption outputs are the natural ones for carbon comparisons.
How do I convert an EV's MPGe rating to a real cost per mile?
MPGe, miles per gallon equivalent, puts electric cars on the MPG scale by treating 33.7 kilowatt-hours of electricity as energy-equivalent to one US gallon of gasoline. An EV rated at 120 MPGe therefore uses 33.7 ÷ 120 ≈ 0.2808 kWh per mile. Multiply by what you pay for electricity: at an illustrative $0.15 per kWh that is about $0.0421 a mile, against $0.125 a mile for a 28 mpg car at $3.50 a gallon. MPGe compares energy use; local electricity and fuel prices decide the cost.
Why does the EPA combined MPG figure matter more than city or highway for hybrids?
For a conventional car the highway figure is usually the higher one, because the engine runs at a steady, efficient load. Many hybrids reverse that: regenerative braking recovers energy in stop-and-go traffic and the electric motor handles low-speed driving, so their city figure can match or beat their highway figure. The combined rating weights the two as 55% city and 45% highway, averaging fuel used rather than MPG — a car rated 30 city and 40 highway comes out at about 33.8 combined, not 35. It is the fairest single figure for comparing cars.
Why does my real-world MPG drop so much in cold weather and on short trips?
A cold engine runs a richer fuel mixture until it warms up, and its oil and transmission fluid are thicker, so friction is higher; on a short trip a large share of the drive happens in that warm-up phase. Cold air also lowers tyre pressure, raising rolling resistance, and heater fans, defrosters and seat heaters draw power. Winter-blend gasoline holds slightly less energy per gallon than summer blend as well. Combining errands into one longer trip, once the engine is warm, recovers some of the loss.

References& sources.

  1. [1]U.S. Environmental Protection Agency. Fuel Economy Guide (model year 2025). The authoritative annual publication of EPA combined, city, and highway MPG ratings for every US-market vehicle, plus the gallons-per-100-miles secondary metric introduced in 2013.
  2. [2]U.S. National Highway Traffic Safety Administration. Corporate Average Fuel Economy (CAFE) Standards — official regulatory text and history. The federal programme that sets the sales-weighted MPG floor each automaker's new-vehicle fleet must meet, beginning with the 18-mpg passenger-car standard of 1978.
  3. [3]Thompson, A. & Taylor, B. N. (2008). NIST Special Publication 811: Guide for the Use of the International System of Units (SI). U.S. Department of Commerce. The authoritative source for the exact conversion constants used in this calculator: 1 mile = 1.609344 km and 1 US gallon = 3.785411784 L, both fixed by international agreement.
  4. [4]International Energy Agency. Global Fuel Economy Initiative — annual report on light-duty vehicle fuel-economy trends across IEA member countries. The authoritative cross-country reference for how the US, EU, Japan, China, and India each express and regulate vehicle fuel economy.
  5. [5]Larrick, R. P. & Soll, J. B. (2008). 'The MPG Illusion'. Science, vol. 320, no. 5883, pp. 1593–1594. The peer-reviewed paper that documented systematic consumer misperception of fuel savings from MPG improvements, and which motivated the EPA's 2013 addition of gallons-per-100-miles to the window sticker.
  6. [6]United Kingdom. Weights and Measures Act 1985, Schedule 1. The statute that fixes the imperial gallon at 4.54609 litres exactly — the legal definition behind every UK window-sticker MPG figure and the source of the roughly 20% gap between UK and US MPG ratings.

How this page was produced

Published by
Quanta Calculator
Primary sources
6 cited below
Method
MPG = mi ⁄ gal ; L/100km = 235.215 ⁄ 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