★ MONEY · EVERYDAY

Gas Mileage Calculator: MPG from Miles and Gallons

30.0 mpg. Enter the miles you drove and the gallons you used, and this calculator works out your gas mileage — so you see the miles per gallon, the litres per 100 km, and the range on a full tank before you fill up again.

2759

Your gas mileage, four ways

A 300-mile trip on 10 gallons is 30.0 mpg — 7.84 L/100 km, 3.33 gallons per 100 miles, and 450 miles on a full 15-gallon tank. Enter the miles you drove and the gallons you used and the calculator works out the mileage.

How many miles you drove since the last fill-up. The default is 300 miles.

How many US gallons it took to refill the tank. The default is 10 gallons.

Your tank size in US gallons, used to work out the range on a full tank. The default is 15 gallons.

Gas mileage30.0 mpg.30.0 mpg. 300 miles on 10 gallons is 30.0 mpg — 7.84 L/100 km, 3.33 gallons per 100 miles, and 450 miles on a full tank.

Gas mileage: 30.0 mpg

Litres per 100 km: 7.84

Gallons per 100 miles: 3.33

Range on a full tank: 450 mi

30.0 mpg. 300 ÷ 10 is 30.0 miles per gallon — 7.84 L/100 km, 3.33 gallons per 100 miles, and 450 miles on a 15-gallon tank.

Defaults, 300 mi, 10 gal, 15-gal tank: the mileage is 30.0 mpg, 7.84 L/100 km, 3.33 gallons per 100 miles, and the range on a full tank is 450 miles.

200 mi, 8 gal: the mileage is 25.0 mpg, 9.41 L/100 km, 4.00 gallons per 100 miles, and the range on a full tank is 375 miles.

400 mi, 12 gal: the mileage is 33.3 mpg, 7.06 L/100 km, 3.00 gallons per 100 miles, and the range on a full tank is 500 miles.

320 mi, 10 gal: the mileage is 32.0 mpg, 7.35 L/100 km, 3.13 gallons per 100 miles, and the range on a full tank is 480 miles.

260 mi, 13 gal: the mileage is 20.0 mpg, 11.76 L/100 km, 5.00 gallons per 100 miles, and the range on a full tank is 300 miles.

420 mi, 12 gal: the mileage is 35.0 mpg, 6.72 L/100 km, 2.86 gallons per 100 miles, and the range on a full tank is 525 miles.

360 mi, 9 gal: the mileage is 40.0 mpg, 5.88 L/100 km, 2.50 gallons per 100 miles, and the range on a full tank is 600 miles.

One division, then three conversions

Gas mileage is one division: miles driven ÷ gallons used. A 300-mile trip that takes 10 gallons is 300 ÷ 10 = 30.0 miles per gallon. The other three figures are conversions of that one number. Litres per 100 km is 235.214583 ÷ mpg, so 235.214583 ÷ 30.0 is 7.84 L/100 km. Gallons per 100 miles is 100 ÷ mpg, so 100 ÷ 30.0 is 3.33 gallons per 100 miles. And the range on a full tank is mpg × tank size, so 30.0 × 15 is 450 miles. The only thing that matters for accuracy is measuring the two inputs properly: the miles since the last fill-up, and the gallons it takes to fill the tank back to the same level.

The worked example, in full

Take the defaults: 300 miles, 10 gallons, a 15-gallon tank. Step one: the mileage. 300 ÷ 10 is 30.0 mpg. Step two: litres per 100 km. 235.214583 ÷ 30.0 is 7.84 L/100 km. Step three: gallons per 100 miles. 100 ÷ 30.0 is 3.33 gallons per 100 miles. Step four: the range. 30.0 × 15 is 450 miles on a full tank. A second example, 400 miles on 12 gallons: 400 ÷ 12 is 33.3 mpg, 235.214583 ÷ 33.3 is 7.06 L/100 km, 100 ÷ 33.3 is 3.00 gallons per 100 miles, and 33.3 × 15 is 500 miles on a full tank. Kilometres per litre is the same figure again: 30.0 mpg × 0.425144 is 12.75 km/L.

Why the pump number and the sticker number disagree

The sticker mpg is a laboratory figure, measured on a fixed drive cycle with a new car, and real driving almost never matches it: short trips, cold starts, stop-start traffic, air conditioning, a loaded roof box, and a heavy right foot all cost gallons. The number that matters is your own, measured over several fill-ups, because one fill-up can be thrown off by a pump that clicks off early or a tank that was not filled to the same level. Track three or four fill-ups and average them, and the figure you get is the one to budget with.

The units matter too. This calculator uses US gallons: a UK gallon is 4.546 litres against 3.785 for a US gallon, so 30.0 US mpg is 36.0 UK mpg, while litres per 100 km is the same 7.84 either way. For the same trip priced in dollars instead of gallons, the fuel cost calculator works out what the trip costs at the pump; for the fuel the trip needs in gallons, the road trip fuel calculator does the same division the other way round.

Output · formula · meaning

Output Formula What it means
Gas mileage 300 ÷ 10 30.0 mpg at the defaults.
Litres per 100 km 235.214583 ÷ 30.0 7.84 L/100 km at the defaults.
Gallons per 100 miles 100 ÷ 30.0 3.33 gal/100 mi at the defaults.
Kilometres per litre 30.0 × 0.425144 12.75 km/L at the defaults.
Range on a full tank 30.0 × 15 450 mi at the defaults.
200 mi, 8 gal 200 ÷ 8 25.0 mpg / 9.41 L/100 km.
400 mi, 12 gal 400 ÷ 12 33.3 mpg / 7.06 L/100 km.
320 mi, 10 gal 320 ÷ 10 32.0 mpg / 7.35 L/100 km.
260 mi, 13 gal 260 ÷ 13 20.0 mpg / 11.76 L/100 km.
420 mi, 12 gal 420 ÷ 12 35.0 mpg / 6.72 L/100 km.
360 mi, 9 gal 360 ÷ 9 40.0 mpg / 5.88 L/100 km.

Who uses this

  • The road-tripper: 300 miles on 10 gallons is 30.0 mpg, so she knows the 450-mile range covers the whole drive with one tank to spare.
  • The commuter comparing cars: a 40-mpg car uses 2.50 gallons per 100 miles and a 20-mpg car uses 5.00 — the efficient car halves the fuel on the same commute.
  • The car shopper: the sticker says 33 mpg, but his own fill-ups say 30.0, and 7.84 L/100 km is the figure he compares against the next car’s 7.06.
  • The fleet manager: 260 miles on 13 gallons is 20.0 mpg, and that van is now flagged for a service check before the next route.

Accuracy & limitations

The arithmetic is exact: mpg = miles ÷ gallons, L/100 km = 235.214583 ÷ mpg, gallons per 100 miles = 100 ÷ mpg, range = mpg × tank size, and km/L = mpg × 0.425144. The estimate is only as good as the two inputs: a partial fill, a pump that clicks off early, or a trip meter that was not reset will all move the answer, so measure over several fill-ups and average. It assumes US gallons: a UK gallon is 4.546 litres, so 30.0 US mpg is 36.0 UK mpg. Miles must be over 0 and no more than 100,000; gallons over 0 and no more than 1,000; tank size 0 to 100 gallons. For the trip priced in dollars, use the fuel cost calculator.

Cite this calculatorBright Side Kit. “Gas Mileage Calculator: MPG from Miles and Gallons” brightoolbox.com, 2026. Method: mpg = miles ÷ gallons; L/100 km = 235.214583 ÷ mpg; gallons per 100 miles = 100 ÷ mpg; range = mpg × tank size.Bright Side Kit. "Gas Mileage Calculator: MPG from Miles and Gallons" https://brightoolbox.com/gas-mileage-calculator/ Accessed November 5, 2026.
Embed this calculator

Paste this into any web page to embed the live calculator. The “Powered by Bright Side Kit” link below it must stay intact.

What your mpg costs over a year

Miles per gallon is hard to feel until it is priced per year. At 12,000 miles a year — about the US average — the gallons add up fast, and the difference between two cars is measured in hundreds of gallons:

MPGGallons per 12,000 miles
20600
25480
30400
35343
40300

Going from 20 to 30 mpg saves 200 gallons a year; going from 30 to 40 saves only 100 — half as much for the same 10-mpg improvement. That is because mpg is not linear: the fuel a car uses is gallons per mile, and the savings shrink as the mileage rises. It is the reason L/100 km is the better comparison number — halving the fuel halves the figure, at any level.

Frequently asked questions

How do you calculate gas mileage?

Divide the miles driven by the gallons used. On the defaults, 300 ÷ 10 is 30.0 mpg; litres per 100 km is 235.214583 ÷ 30.0, or 7.84.

What is good gas mileage?

25 to 30 mpg is typical for a modern petrol car, 40 mpg or more is efficient, and under 20 mpg is thirsty. At 30 mpg you use 3.33 gallons per 100 miles; at 40 mpg it is 2.50.

How do I convert mpg to L/100 km?

Divide 235.214583 by the mpg. 30.0 mpg is 7.84 L/100 km, 25.0 mpg is 9.41, and 40.0 mpg is 5.88. Lower is better in L/100 km; higher is better in mpg.

How far can I go on a full tank?

Multiply the mpg by the tank size. At 30.0 mpg, a 15-gallon tank gives 450 miles; at 33.3 mpg the same tank gives 500 miles.

Why is my real mpg lower than the sticker?

The sticker is a laboratory figure on a fixed drive cycle. Short trips, cold starts, stop-start traffic, air conditioning, and a loaded roof box all cost gallons — measure over several fill-ups for your true figure.

What are gallons per 100 miles?

100 ÷ mpg: the fuel a car uses for every 100 miles. At 30.0 mpg it is 3.33 gallons; at 20.0 mpg it is 5.00. Unlike mpg, lower is better.

Do I need a full tank to measure mileage?

No — you need the same level twice. Fill the tank, reset the trip meter, drive, then fill again and divide the miles by the gallons just added. A partial fill only works if you know exactly how much went in.

What is km per litre?

Mpg × 0.425144. 30.0 mpg is 12.75 km/L, 25.0 mpg is 10.63 km/L, and 40.0 mpg is 17.01 km/L.

How many gallons does a year of driving take?

Divide your annual miles by your mpg. At 12,000 miles a year, a 30-mpg car uses 400 gallons and a 20-mpg car uses 600 — the table above shows every level from 20 to 40 mpg. Multiply by your local gas price for the annual fuel bill.

Why is L/100 km better than mpg for comparing cars?

Because it is linear in fuel use. Going from 20 to 30 mpg saves 200 gallons a year at 12,000 miles, but going from 30 to 40 saves only 100 — the same 10-mpg step is worth half as much. In L/100 km the same cars read 11.76, 7.84, and 5.88: each step down is the same fuel saved, so the number means the same thing everywhere on the scale.