Fuel Cost Calculator
Gallons = miles ÷ MPG; cost = gallons × $/gal. Click any i for detail.
Trip & fuel
Distance (miles)
i
Miles
One-way miles unless round trip is checked. |
|
|---|---|
Fuel economy (MPG)
i
MPG
Expected miles per gallon. |
|
Fuel price ($/gallon)
i
Price
Price at the pump. |
|
Round trip
i
RT
Doubles the distance. |
How to use this calculator
- Enter trip miles.
- Set MPG and $/gallon.
- Check round trip if needed.
- Read gallons and total cost.
Results explained
Trip fuel cost is distance divided by MPG, times fuel price. Round trip doubles miles. Real MPG varies with speed, load, weather, and traffic.
Quick reference: fuel cost
cost = (miles ÷ MPG) × price; RT doubles miles.
| Item | Detail |
|---|---|
| 300 mi @ 28 MPG | ~10.7 gal |
| @$3.50/gal | ~$37.50 one way |
| Round trip | ×2 distance |
| Highway vs city | Adjust MPG |
Estimate only — pump price and MPG vary.
How the estimate is built
dist = miles × (roundTrip ? 2 : 1); cost = (dist/mpg) × price.
Example scenario
300 miles, 28 MPG, $3.50/gal → about $37.50 one way.
FAQ
Metric liters?
Convert distance and economy first, or use consistent units.
EV trips?
Use an electricity cost worksheet instead.
Idling / traffic?
Lower effective MPG — adjust the MPG field.
See MPG page?
Yes — for economy from gallons and miles.