Fuel Cost Calculator — Trip Gas Cost & Per Mile
Enter distance, efficiency & price — costs appear instantly.
A fuel cost calculator for road trips: enter distance, your vehicle’s fuel efficiency (mpg), and the gas price — get the total fuel cost and cost per mile instantly. Planning a cross-country drive? Splitting gas money fairly? This does the math.
Fill in all three fields — costs calculate instantly.
How to use the fuel cost calculator
- Enter the trip distance in miles — check Google Maps for your route.
- Enter your fuel efficiency in miles per gallon (mpg).
- Enter the current gas price per gallon.
- Read the results: total trip fuel cost and cost per mile.
The formula
Total cost = (Distance ÷ MPG) × Price per gallon
Example — 1,000-mile road trip:
- Car gets 30 mpg → 1,000 ÷ 30 = 33.3 gallons
- Gas at $3.50/gal → 33.3 × $3.50 = $116.67
Cost per mile = Total cost ÷ Distance = $0.117/mile. Use it to split gas money: each passenger pays (their miles × cost per mile).
Frequently asked questions
How do you calculate gas cost for a trip?
Formula: (Distance ÷ MPG) × Price per gallon. Example: 300 miles at 30 mpg with $3.50/gal → (300 ÷ 30) × 3.50 = 10 × 3.50 = $35.00.
How do I find my car's real MPG?
The manual way: fill the tank, reset the trip odometer, drive normally, then refill. MPG = miles driven ÷ gallons added. Or check your dashboard's trip computer on modern cars.
What's a reasonable cost per mile for fuel?
It depends on efficiency and gas prices: a 30-mpg car at $3.50/gal costs about $0.12/mile in fuel. A 15-mpg truck costs about $0.23/mile. Per-mile cost is handy for splitting gas money fairly.
Does this work for diesel or motorcycles?
Yes. Motorcycles often get 50–60 mpg (very efficient); diesel trucks use the per-gallon diesel price. Just enter your vehicle's numbers.
Does this include tolls and parking?
No — this is fuel cost only. Add tolls, parking, and food separately for a complete trip budget.