Calculate gallons per mile from MPG or from fuel used and distance, find how many miles a number of gallons of gas will go, or estimate trip fuel and cost.

Your car’s MPG, or switch the unit to L/100 km or gal/mi. The average new US vehicle gets about 27 mpg.

Optional settings


Related Calculators

Calculator Functions

FunctionWhat it doesWhat it requires
Gallons per mile from MPGConverts a fuel economy figure to gallons per mileRequires the fuel economy in MPG, L/100 km, km/L or imperial MPG
Gallons per mile from fuel used and distanceFinds gallons per mile from a fill-upRequires the fuel consumed and the distance traveled
Miles from gallons of fuelFinds how many miles an amount of fuel coversRequires the gallons of fuel and the fuel economy
Gallons needed and cost for a tripFinds the fuel a trip needs and what it costsRequires the distance, the fuel economy and the fuel type. A fuel price is optional
Tailpipe COโ‚‚Estimates the carbon dioxide a trip puts out of the tailpipeRequires the distance, the fuel economy and the fuel type

Fuel can be in US gallons, liters or imperial gallons, distance in miles or kilometers, and price in dollars per gallon or per liter. Results that give gallons per mile also list MPG, L/100 km, km/L and imperial MPG.

Gallons Per Mile Formulas

GPM = F รท D
GPM = 1 รท MPG
GPMGallons per mile (US gal/mi)
FFuel consumed (US gallons)
DDistance traveled (miles)
MPGMiles per US gallon

Gallons per mile from MPG

A car that gets 25 MPG uses 1 รท 25 = 0.04 gallons per mile. Metric and imperial figures are converted first, with 1 US gallon = 3.785411784 L, 1 mile = 1.609344 km and 1 imperial gallon = 4.54609 L [3], so 8 L/100 km is 0.034 gallons per mile.

Gallons per mile from fuel used and distance

15 gallons burned over 300 miles is 15 รท 300 = 0.05 gallons per mile, which is 20 MPG.

Miles from gallons of fuel

D = F ร— MPG

14 gallons at 25 MPG covers 14 ร— 25 = 350 miles. One gallon of gas goes as many miles as the car’s MPG.

Gallons of gasMiles at 20 MPGMiles at 25 MPGMiles at 30 MPG
1202530
480100120
5100125150
10200250300
13260325390
14280350420
15300375450
16320400480
18360450540
19380475570
20400500600

Gallons needed and cost for a trip

Cost = D รท MPG ร— price

A 300 mile trip at 25 MPG needs 300 รท 25 = 12 gallons. At $3.50 a gallon that is 12 ร— 3.50 = $42.00, or 14 cents a mile.

Tailpipe COโ‚‚

COโ‚‚ = gallons ร— factor [1]

The factor is the grams of COโ‚‚ made by burning one gallon [1] [2]. The 12 gallons of gasoline in the trip above make 12 ร— 8,887 = 106,644 g, or 106.64 kg, which is far more than the fuel weighs because the carbon joins with oxygen from the air [2].

FuelCOโ‚‚ (grams per gallon)
Gasoline8,887
Diesel10,180
E85 (83% ethanol)6,295
CNG (per gasoline gallon equivalent)7,030

Limits of This Estimate

  • Fuel economy changes with speed, load, weather and traffic, so a range or trip cost from a single MPG figure is an estimate.
  • The COโ‚‚ figures cover carbon dioxide from the tailpipe only. They leave out the emissions from making and delivering the fuel, and other greenhouse gases.
  • E85 sold at the pump varies in ethanol content, and CNG amounts are gasoline gallon equivalents, an energy measure, not a volume of compressed gas.

Sources

  1. U.S. EPA, Greenhouse Gas Rating: tailpipe COโ‚‚ per gallon of gasoline, diesel, E85 and CNG
  2. U.S. EPA, Greenhouse Gas Emissions from a Typical Passenger Vehicle: the gasoline and diesel factors, and why a gallon makes more COโ‚‚ than it weighs
  3. NIST, Handbook 44 (2026), Appendix C, General Tables of Units of Measurement: the US gallon in liters, the mile in kilometers and the imperial gallon