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.
Related Calculators
- km Per Liter Calculator
- Rate Per km Calculator
- Fuel Price Calculator
- Gas Cost Per Month Calculator
- All Automotive Calculators
Calculator Functions
| Function | What it does | What it requires |
|---|---|---|
| Gallons per mile from MPG | Converts a fuel economy figure to gallons per mile | Requires the fuel economy in MPG, L/100 km, km/L or imperial MPG |
| Gallons per mile from fuel used and distance | Finds gallons per mile from a fill-up | Requires the fuel consumed and the distance traveled |
| Miles from gallons of fuel | Finds how many miles an amount of fuel covers | Requires the gallons of fuel and the fuel economy |
| Gallons needed and cost for a trip | Finds the fuel a trip needs and what it costs | Requires 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 tailpipe | Requires 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 | Gallons per mile (US gal/mi) |
| F | Fuel consumed (US gallons) |
| D | Distance traveled (miles) |
| MPG | Miles 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
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 gas | Miles at 20 MPG | Miles at 25 MPG | Miles at 30 MPG |
|---|---|---|---|
| 1 | 20 | 25 | 30 |
| 4 | 80 | 100 | 120 |
| 5 | 100 | 125 | 150 |
| 10 | 200 | 250 | 300 |
| 13 | 260 | 325 | 390 |
| 14 | 280 | 350 | 420 |
| 15 | 300 | 375 | 450 |
| 16 | 320 | 400 | 480 |
| 18 | 360 | 450 | 540 |
| 19 | 380 | 475 | 570 |
| 20 | 400 | 500 | 600 |
Gallons needed and cost for a trip
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โ
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].
| Fuel | COโ (grams per gallon) |
|---|---|
| Gasoline | 8,887 |
| Diesel | 10,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
- U.S. EPA, Greenhouse Gas Rating: tailpipe COโ per gallon of gasoline, diesel, E85 and CNG
- 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
- 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
