Last Updated: April 12, 2026

Fuel Cost Calculator

Estimate gas costs for any trip based on distance, fuel efficiency, and gas price.

Trip Fuel Cost

Total Fuel Cost
Fuel Needed
Cost per Mile
Round Trip Cost

Monthly Commute Estimate

Monthly Commute Cost
Annual Commute Cost

Cost Breakdown

How to Calculate Gas Cost

The formula for US units is:

Fuel Cost = (Distance ÷ MPG) × Gas Price

A 500-mile trip at 30 MPG and $3.50/gallon: (500 ÷ 30) × $3.50 = $58.33.

For metric units: Fuel Cost = (Distance ÷ 100) × L/100km × Price per liter.

Fuel Efficiency by Vehicle Type

Vehicle TypeAverage MPGL/100kmCost per 100 mi*
Compact Car356.7$10.00
Midsize Sedan307.8$11.67
SUV259.4$14.00
Pickup Truck2011.8$17.50
Hybrid504.7$7.00

* Based on $3.50/gallon

Saving Money on Gas

Want to see how gas savings compound over time? Run the numbers on our compound interest calculator — investing $100/month in gas savings at 7% for 20 years grows to over $52,000.

Gas vs. Electric: Cost Comparison

A gas car at 30 MPG and $3.50/gal costs about $0.117 per mile. An EV averaging 3.5 mi/kWh at $0.16/kWh costs $0.046 per mile — 60% less. Use our electricity cost calculator to estimate EV charging costs.

Frequently Asked Questions

How do you calculate fuel cost for a trip?

Divide distance by MPG, then multiply by gas price. 500 mi ÷ 30 MPG × $3.50 = $58.33.

What is good gas mileage?

30+ MPG is good for gas cars, 40+ MPG is excellent. Hybrids get 45-60 MPG.

How do I convert MPG to L/100km?

L/100km = 235.215 ÷ MPG. So 30 MPG = 7.84 L/100km.

Does driving faster use more gas?

Yes. Each 5 mph over 50 is like paying $0.20-0.30 more per gallon, per the DOE.

Electricity Cost

Calculate appliance energy costs.

Try it →
🚗

Auto Loan

Calculate car loan payments.

Try it →
🔄

Unit Converter

Convert miles, km, gallons, liters.

Try it →