How to Calculate Fuel Cost Per Mile
Cost per mile connects pump prices to every mile on your odometer.
By Gas Tracker Editorial · Published 2026-01-25 · Updated 2026-03-01
Short answer
Fuel cost per mile = price per gallon ÷ MPG, or total fuel spend ÷ miles driven over the same period.
Example
$3.60/gal and 30 MPG → $0.12 per mile in fuel only (insurance and depreciation are separate).
Use the Cost Per Mile Calculator.
Why it matters
Cost per mile lets you compare commutes, vehicles, and whether a longer detour for cheaper gas pays off.
In the app
Gas Tracker AI surfaces cost per mile when your log has enough fill-ups and mileage data.