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.
★ MONEY · EVERYDAY
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.
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.
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.
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.
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 | 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. |
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.
Bright Side Kit. "Gas Mileage Calculator: MPG from Miles and Gallons" https://brightoolbox.com/gas-mileage-calculator/ Accessed November 5, 2026.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:
| MPG | Gallons per 12,000 miles |
|---|---|
| 20 | 600 |
| 25 | 480 |
| 30 | 400 |
| 35 | 343 |
| 40 | 300 |
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.