Fuel Cost Calculator
Calculate gas money for a trip or commute: distance, mpg and fuel price, with cost per mile and per passenger when carpooling.
Results appear instantly as you type — nothing is sent to any server.
What does that road trip or daily commute actually cost in gas? Enter distance, your car’s real-world MPG and the local fuel price for total cost, cost per mile, and the split per passenger. Also handy for comparing a hybrid swap or setting a fair carpool contribution.
Gallons in, dollars out
Fuel cost = distance ÷ MPG × price per gallon. Cost per mile = price ÷ MPG — at $3.20/gal: 20 MPG = 16¢/mi, 35 MPG = 9¢/mi. The blinkers-off number is total cost of ownership: the IRS standard business mileage rate (70¢ in 2025, ~70¢ in 2026 pending the December announcement) bundles fuel, depreciation, insurance and maintenance — use it when reimbursing someone for full vehicle costs, fuel-only when sharing just the gas.
Frequently asked questions
How much gas for a 400-mile trip?
At 30 MPG and $3.20/gal: 13.3 gallons ≈ $42.70.
What is the IRS mileage rate for 2026?
The 2025 rate was 70¢/mile; the 2026 rate is announced each December — use the current IRS notice for reimbursements.
EV cost comparison?
At 3.5 mi/kWh and $0.15/kWh: ~4.3¢/mile — roughly a third of a 30-MPG gas car at current prices.