How fuel cost is calculated
The formula is straightforward:
Total cost = (distance ÷ MPG) × price per gallon
For a round trip, distance doubles. Per-person cost divides the total by the number of passengers.
EPA vehicle class defaults
The vehicle class dropdown uses EPA median combined MPG for model years 2025–2026 from fueleconomy.gov/vehicles.csv, computed as the median of all non-EV vehicles in each EPA class. Combined MPG is 55% city / 45% highway per the EPA test cycle. Your actual fuel economy depends on driving style, speed, load, terrain, and climate control use. The default vehicle is a Midsize Car (~28 MPG combined — Toyota Camry, Honda Accord, Hyundai Sonata).
Gas price source
The default gas price comes from the U.S. Energy Information Administration (EIA) weekly petroleum report — the most authoritative national gas price survey in the US, covering over 1,000 retail stations. Source: EIA petroleum prices.
Disclaimer: Fuel costs are estimates. Actual costs depend on your vehicle, driving conditions, and local gas prices.