Formula and method
Convert entered distance to miles and economy to US MPG. Dividing miles by MPG gives US gallons; multiply by the price on the same volume basis. Annual mileage scales the budget separately. A comparison economy uses the same price, so its difference describes efficiency savings rather than a change in the pump price.
US gallons used = trip miles / US MPG
Trip cost = US gallons used × price per US gallon
Annual fuel cost = annual miles / US MPG × price per US gallon
Monthly budget average = annual fuel cost / 12
Understanding your inputs
- Distance unit
- miles or kilometers
- Trip distance
- Enter mi. Accepted input range: 0–1000000.
- Annual distance
- Enter mi. Accepted input range: 1–10000000.
- Fuel economy unit
- MPG (US) or MPG (Imperial) or L/100 km or km/L
- Vehicle fuel economy
- Enter mpg (US). Accepted input range: 0.01–1000.
- Comparison fuel economy
- Enter mpg (US). Accepted input range: 0.01–1000.
- Fuel price volume unit
- US gallons or Imperial gallons or liters
- Fuel unit price
- Enter USD/US gal. Accepted input range: 0–1000.
Worked example
At 300 mi, 30 US MPG and $3.50 per US gallon, the trip needs 10 US gallons and costs $35. With 12,000 annual miles, fuel cost is $1,400 a year. Comparison economy is an illustrative 40 US MPG.
Example inputs
- Distance unit
- miles
- Trip distance
- 300 mi
- Annual distance
- 12000 mi
- Fuel economy unit
- MPG (US)
- Vehicle fuel economy
- 30 mpg (US)
- Comparison fuel economy
- 40 mpg (US)
- Fuel price volume unit
- US gallons
- Fuel unit price
- 3.5 USD/US gal
Default result: Fuel required for the trip: 10.000 US gal.
Assumptions
- Economy and unit price are representative of the route; all money is in US dollars.
- US and Imperial gallons are distinct. When changing a selector, enter values in the newly selected unit.
Limitations
- This estimates fuel spending, not maintenance, accommodation, road tolls or total travel cost.
- Mileage, price and annual usage are user inputs, not live vehicle or fuel-price data.
Common mistakes
- Entering L/100 km in an MPG field or using a liter price with a gallon price selector.
- Assuming the annual monthly average predicts seasonal spending exactly.
Sources and methodology
Method reviewed October 1, 2026. Formulas are implemented independently; references explain the dimensions, ratings or application requirements.
- US EPA — fuel economy and annual fuel cost conventions ↗
MPG, consumption per distance and estimated annual fuel costs depend on explicit assumptions.
- NIST — SI conversion factors ↗
Miles, liters, US/Imperial gallons and reciprocal fuel-economy conversions.
Frequently asked questions
Can this use kilometers and liters?
Yes. Select kilometer distance, L/100 km or km/L economy, and a liter-based fuel price; the calculation normalizes the quantities before multiplying.
Does Gas Calculator include ownership costs?
No. It totals fuel use and spending. Use Car Cost per Mile for an estimate that also allocates entered non-fuel ownership expenses.