The formula
- Gallons = miles ÷ MPG
- Cost = gallons × price per gallon
- Per person = cost ÷ people
- L/100 km = 235.215 ÷ MPG (from 1 gallon = 3.785 411 784 L and 1 mile = 1.609 344 km)
Worked examples
| Trip | Miles | MPG | $/gal | Gallons | Fuel cost |
|---|---|---|---|---|---|
| City to beach, one way | 300 | 30 | 3.50 | 10.0 | $35.00 |
| Same trip, round trip | 600 | 30 | 3.50 | 20.0 | $70.00 |
| Pickup truck, cross-state | 450 | 18 | 3.80 | 25.0 | $95.00 |
| Hybrid commuter week | 250 | 50 | 3.20 | 5.0 | $16.00 |
Getting better inputs
- MPG: look up your exact year, make and model on FuelEconomy.gov, the U.S. Department of Energy and EPA site. For gasoline vehicles the label shows city, highway and combined MPG; combined is the headline number for comparing cars.
- Distance: use the route distance from your map app, not a straight line.
- Price: prices differ by state and by station. The U.S. Energy Information Administration publishes weekly regional averages; for a budget, use the price you actually see near your route and add a margin.
What it leaves out
FuelEconomy.gov lists what pulls real MPG below the label: aggressive driving (roughly 15% to 30% lower at highway speeds), higher speeds, cold weather and short trips, and roof cargo boxes or racks, which the tests do not include. For an electric car, use cost per kWh and miles per kWh instead; this calculator is for gasoline and diesel.