MPG Calculator

Work out mpg, the fuel a drive uses and what it costs.

US and UK mpg, L/100 km, km/L, miles or kilometres, and 20 currencies.

Updated November 27, 2026
Frank Zhao - Creator
CreatorFrank Zhao
Loading calculator…

Introduction

Miles per gallon is one small division wrapped in a lot of unit baggage. Three hundred miles on twelve gallons is 25 mpg, but the same drive quoted in litres per 100 km looks like a different car, and a UK gallon quietly lifts the number by a fifth. This page keeps the division honest and lets you read the result in whichever of the four economy units you actually use.

There are two jobs here. The first is to price a drive: enter the distance, the car’s fuel economy and the pump price, and the page returns the fuel the trip burns and the money it costs. The second is diagnostic: enter the miles you drove and the fuel that went back into the tank, and the page recovers the economy the car actually delivered — the figure that matters when the dashboard and the receipt disagree.

Every box on the page is both an input and a result. Fill in the ones you know and the rest are worked out; type over a calculated number and it becomes your input, while a different box gives way to keep the arithmetic consistent. If you are splitting the fuel bill between passengers, the gas calculator does the division per person; if you only want to translate a figure between mpg, L/100 km and km/L, the mpg to L/100 km converter is the shorter stop.

5 linked boxes

Distance, fuel, economy, price and trip cost

4 economy units

L/100 km, US mpg, UK mpg and km/L

20 currencies

Pump price and trip cost at the current rate

Quick start

1

Set the units first, then type the numbers

Distance can be entered in kilometres or miles, fuel in litres or US or UK gallons, and fuel economy in litres per 100 km, US mpg, UK mpg or km per litre. Changing a unit afterwards converts the number already in the box, so either order works — but picking the units first keeps the reading straightforward. The fuel price carries two menus of its own: the currency, then the volume the pump quotes it per.

2

Enter the distance once

Put in the whole distance you want to price. Nothing doubles it behind your back, so a there and back drive needs the round-trip total entered directly.

3

Give the car’s fuel economy — or the fuel you actually used

Either half of the relation will do. Type the economy from the handbook, a review or your own records and the fuel appears; type the litres or gallons from a fill and the economy is recovered instead.

4

Add the pump price if you want money

The price is money per litre, per US gallon or per UK gallon, in any of the listed currencies. The exchange rate is applied to the money only, never to the fuel or the distance, so a correctly quoted price stays correct when you switch currency.

5

Read the fuel and the bill

A 250 km drive in a car that burns 8 L/100 km, with fuel at 1.50 a litre:

VfuelV_{\mathrm{fuel}}==250100×8\frac{250}{100} \times 8==20 L20\ \mathrm{L}
CtripC_{\mathrm{trip}}==20×1.5020 \times 1.50==30.0030.00

Twenty litres, thirty in fuel money. The figures the page calculates are marked in blue; the ones you typed stay dark. A red number is not hidden — it means the value is mathematically possible but implausible, and the note beside it says what to check.

How the figures are built

One division for the fuel, one multiplication for the money, and the same two statements rearranged for every reverse question.

Fuel burned on the drive

A fuel economy in litres per 100 km tells you how much the car drinks over each 100 km block, so the distance is counted in those blocks first and then multiplied by the economy. In the base units the page works in — metres for distance, litres for fuel — the two conversion factors fold into a single denominator of 100,000:

Vfuel=Dm×E1000×100V_{\mathrm{fuel}} = \frac{D_{\mathrm{m}} \times E}{1000 \times 100}

A 250 km drive at 8 L/100 km is two and a half blocks of 100 km, so it burns 20 litres. The same arithmetic works with miles and gallons because the distance, the volume and the economy are all converted to their base units before the formula runs.

What that fuel costs

Fuel is multiplied by the price only after both have been normalised: litres for the volume, and US dollars per litre for the money. That ordering is what lets a price quoted per US gallon, in euro, still price a trip in litres and dollars correctly.

Ctrip=Vfuel×pfuelC_{\mathrm{trip}} = V_{\mathrm{fuel}} \times p_{\mathrm{fuel}}

Every box works in both directions

The same two statements rearranged answer the questions that arrive the other way round — a measured fill instead of a book figure, a fuel budget instead of a distance:

D=100 VfuelED = \frac{100\,V_{\mathrm{fuel}}}{E}\qquadE=100 VfuelDE = \frac{100\,V_{\mathrm{fuel}}}{D}\qquadVfuel=CtrippfuelV_{\mathrm{fuel}} = \frac{C_{\mathrm{trip}}}{p_{\mathrm{fuel}}}\qquadpfuel=CtripVfuelp_{\mathrm{fuel}} = \frac{C_{\mathrm{trip}}}{V_{\mathrm{fuel}}}

One consequence is worth knowing before you type: a zero distance is treated as a real, if degenerate, drive. It burns zero fuel and costs zero money, and those zeros stay on screen. But the economy cannot be recovered from a fill over zero distance — there is no distance to divide by — so that box stays empty with a note explaining why. A zero fuel economy or a zero price is a different matter: neither describes a car or a pump, and both are rejected.

DDDistance of the drive, entered once
EEFuel economy of the car, in litres per 100 km
VfuelV_{\mathrm{fuel}}Fuel the drive burns, in litres or gallons
pfuelp_{\mathrm{fuel}}Pump price per litre, gallon or other volume
CtripC_{\mathrm{trip}}Money the drive costs in fuel

Plausibility limits, not arithmetic limits

Three sanity checks sit beside the formulas: a single drive longer than 10,000 km, a car that burns more than 60 L/100 km, and a fuel price above 100 US dollars per litre. None of them blocks the arithmetic. The number stays visible in red, with a note pointing at the unit or the figure most likely to be wrong, because an implausible answer is still evidence worth reading.

MPG across units

The four economy units are not four ways of writing the same number: two of them run in the opposite direction to the other two.

Miles per gallon and litres per 100 km pull opposite ways

A bigger mpg is a better car; a bigger L/100 km is a worse one. The page therefore converts between the two mpg scales and km/L by division rather than by a simple multiplier:

EL/100 km=100×3.785411784mpgUS×1.609344E_{\mathrm{L/100\,km}} = \frac{100 \times 3.785411784}{\mathrm{mpg}_{\mathrm{US}} \times 1.609344}

That inverse shape has a practical consequence when you compare upgrades. Going from 20 to 30 mpg saves a third of the fuel on the same drive, while going from 40 to 50 mpg saves only a fifth — both are “ten mpg better”, but they are not the same saving. In litres per 100 km the scale is linear, which is why engineers and fleet managers usually compare cars in L/100 km or in cost per 100 km rather than in mpg.

Which gallon?

A US gallon is 3.785411784 litres and a UK gallon is 4.54609 litres, so a UK gallon is about 20% larger. The same car therefore returns a UK mpg figure about 20% higher than its US mpg figure. This is not a rounding difference — it is a different gallon. The page keeps the two scales separate, and the worked example below shows the size of the gap.

Kilometres per litre

km/L is the simplest of the inverse measures: 100 divided by the economy in km/L gives L/100 km, and the same division converts back. A car quoted at 15 km/L is a 6.67 L/100 km car, not a 15 L/100 km one.

Pick the unit on the pump, not the one in the review

Petrol in the United States is sold by the US gallon, in the United Kingdom by the litre, and in much of Europe by the litre. Set the volume menu to what the pump actually charges per before you enter the price. A price per US gallon typed into a per-litre box is the single most common way this page produces a trip that costs four times too much.

Worked examples

1

Did that tank match the sticker?

Situation: The trip meter reads 300 miles since the last fill, and refilling the tank to the same point took 11.2 US gallons. Fuel costs 3.50 a US gallon.

Inputs

Distance300 miles
Fuel used11.2 US gallons
Fuel price3.50 / US gallon

Result

The measured economy is 300 ÷ 11.2 = 26.786 US mpg, which is 8.78 L/100 km. The fill cost 11.2 × 3.50 = 39.20.

E=30011.2E = \frac{300}{11.2}==26.786 US mpg26.786\ \mathrm{US\,mpg}≈\approx8.78 L/100 km8.78\ \mathrm{L/100\,km}

If the handbook claims 30 US mpg, the gap is real but not alarming: a short-town tank with a cold start, air conditioning and a roof rack will easily account for three miles per gallon.

2

What does a 60 fuel budget buy?

Situation: Fuel is 1.80 a litre and there is 60 to spend before the weekend. The car returns about 7 L/100 km on the motorway.

Inputs

Fuel price1.80 / L
Trip cost (budget)60
Fuel economy7 L/100 km

Result

The budget buys 60 ÷ 1.80 = 33.33 litres, and at 7 L/100 km those litres cover 33.33 ÷ 7 × 100 = 476.19 km.

VfuelV_{\mathrm{fuel}}==601.80\frac{60}{1.80}==33.33 L33.33\ \mathrm{L}
DD==33.337×100\frac{33.33}{7} \times 100==476.19 km476.19\ \mathrm{km}

Notice that the distance came out of the budget, not the other way round — the same boxes answer the question in either direction.

Getting a figure you can trust

Measure a full tank, not a guess

Fill until the pump clicks off, reset the trip meter, drive normally, then refill at the same pump until it clicks again. The litres on the second receipt divided into the trip distance is your real economy, and it accounts for everything the handbook figure cannot.

Average more than one tank

A single tank is noisy: pump shut-off varies, the tank rarely refills to exactly the same level, and one motorway trip can flatter a car that spends most of its life in traffic. Three or four tanks give a figure worth comparing against the book.

Keep the trip meter honest

If the car counts miles and the pump sells gallons, keep both in those units rather than converting one by hand. A mistyped 100 instead of 160 is the usual source of a spectacular mpg figure that never repeats.

Let the price carry its own volume

The price box has a currency and a volume for a reason. Enter the number exactly as the pump displays it and choose the volume next to it; the page handles the conversion, and switching currency later does not disturb the fuel itself.

Questions

Q

Why is my calculated mpg higher than the dashboard?

The dashboard estimates fuel use from the engine’s own measurements and is usually optimistic by a few percent, especially on short trips where a cold engine burns extra fuel. A fill-up calculation measures what actually left the pump, so it is the more honest of the two — provided the tank was refilled to the same level both times.

Q

Why does switching between US and UK mpg change the number so much?

Because the gallon is different. A UK gallon is 4.54609 litres against 3.785411784 litres for a US gallon, about 20% more fuel, so the same car covers about 20% more miles on a UK gallon. The page converts the figure rather than relabelling it, which is why a number around 45 UK mpg becomes about 37.47 US mpg and 6.28 L/100 km.

Q

Do I need to double the distance for a return trip?

No. The calculator prices exactly the distance you enter, once. For a there and back journey, add the two legs yourself and enter the total; otherwise the fuel and the cost will be half of what you actually spend.

How far to trust it

A planning estimate, not a measurement instrument

The arithmetic is exact, but the numbers going into it are not. Real fuel economy moves with speed, load, tyre pressure, weather, air conditioning, towing and even the blend of fuel in the tank. The handbook figure describes a test cycle, and the pump price changes from station to station and week to week.

The money side uses a daily exchange rate rather than a locked one, so a trip priced in a foreign currency can move slightly between visits. Fuel prices hold all the normal caveats of a quoted price: it is what the pump advertises, before any loyalty discount or card fee.

Finally, the three sanity bounds — 10,000 km, 60 L/100 km and 100 US dollars per litre — are there to catch a wrong unit, not to police unusual vehicles. A heavy truck or a generator can legitimately exceed the economy limit, and the page will still show the figure; it simply warns that a passenger car rarely does.

MPG Calculator - Miles per Gallon, Fuel Used and Trip Cost