Skip to content

Gas Mileage Calculator

Your actual MPG or L/100 km from a fill-up, and the cost per mile.

mi
mi
gallons
$per gallon

Fuel economy

29.2 mpg

8.06 L/100 km

Miles per gallon (US)
29.17
Liters per 100 km
8.06
Kilometers per liter
12.4
Miles per gallon (UK)
35.03
Distance
350 mi
Fuel cost
$38.40
Cost per mile
$0.11

Most accurate when you fill the tank completely both times, so the fuel added equals the fuel used.

How it was calculated

  1. 350 mi ÷ 12 gal = 29.17 mpg

Calculations run on this device and your inputs are not uploaded. A share link puts your inputs in the URL, so anyone with the link can read them.

More Other Calculators

All calculators

How the gas mileage calculator works

Fill the tank, note the odometer, drive, then fill up again. The fuel added the second time is what you used, so MPG = miles driven ÷ gallons added.

Metric economy is usually quoted as liters per 100 km: liters ÷ km × 100. To convert, L/100 km = 235.215 ÷ MPG (US gallons). UK MPG is 1.201 times the US figure because the imperial gallon is larger.

Using and checking your result

Published by JustYourCalculator. Check the units and assumptions above, and compare a known example before relying on the output. Calculations use browser arithmetic and may round displayed values.

Share links may contain your input values. Anyone with the URL can read them; avoid sharing sensitive personal or financial information.

Frequently asked questions

Divide the miles you drove since the last full tank by the gallons it took to fill up again. 350 miles on 12 gallons is 29.2 mpg.

Short trips, cold weather, idling, aggressive driving, roof racks and underinflated tires all cut economy below the official test figure.

Yes. Every calculator is free with no sign-up. Clearly labeled ads keep it that way.

Calculations run in your browser. Share links put inputs in the URL, which can be read by anyone you send it to and is sent to the hosting server when opened. Avoid sharing sensitive numbers. Currency conversion requests public exchange rates.

Results follow the formulas and assumptions shown, with normal rounding and numerical limits. Taxes, rates and health guidance can change, so treat these as estimates and confirm important decisions with a qualified professional.