Fuel Cost Calculator

Estimate how much a road trip or your daily commute costs in gas.

miles
mpg
$per gal
Total Fuel Cost
$0
Gallons Needed
0
Cost Per Mile
$0
Disclaimer: This calculator is for general educational and informational purposes only. It does not constitute financial advice, investment advice, tax advice, or legal advice and is not a substitute for consultation with a qualified professional. No fiduciary or advisory relationship is created by your use of this tool. Results are estimates based on the inputs you provide, standard mathematical formulas, and publicly available data that may not be current and may not reflect your individual financial situation, applicable tax laws, or other relevant factors. Neither MayoCalc nor Cook Media Systems assumes any liability for losses, damages, or other consequences arising from the use of any information or results provided by this tool. Always consult a qualified financial advisor, certified public accountant, or attorney before making financial decisions. See our full Disclaimer and Terms of Service.

How Fuel Costs Are Calculated

Trip fuel cost depends on three variables: distance, vehicle fuel efficiency, and fuel price. Divide the trip distance by your vehicle's miles per gallon (MPG) to get gallons needed, then multiply by the price per gallon. A vehicle averaging 28 MPG on a 500-mile trip uses about 17.9 gallons. At $3.40 per gallon, the trip costs roughly $61. This calculator supports both U.S. (MPG, gallons, dollars) and metric (L/100km, liters) units.

Gallons Needed = Distance / MPG
Trip Cost = Gallons Needed x Price per Gallon
Cost per Mile = Price per Gallon / MPG

Highway vs. City Fuel Economy

The EPA rates vehicles with separate city, highway, and combined MPG figures. Highway driving is more fuel-efficient because engines operate closer to their optimal RPM range and there is less braking and accelerating. City driving can use 20 to 40% more fuel per mile than highway driving. For long road trips, use the highway MPG rating. For mixed commuting, the combined rating is more accurate. Real-world fuel economy often comes in 10 to 15% below EPA estimates due to driving habits, weather, and vehicle condition.

Speed has a significant effect on highway fuel economy. Most vehicles achieve peak efficiency between 35 and 55 mph. Above 55 mph, aerodynamic drag increases with the square of speed, so fuel economy drops noticeably. The Department of Energy estimates that every 5 mph above 50 mph is roughly equivalent to paying an additional $0.20 to $0.30 per gallon of gas at 2025 prices.

Changing tire sizes? The Tire Size Calculator checks speedometer accuracy and fitment for new tire sizes.

Factors That Affect Real-World MPG

Tire pressure is one of the simplest factors to control. Underinflated tires increase rolling resistance and can reduce fuel economy by 1 to 3%. Aggressive driving (rapid acceleration and hard braking) can lower gas mileage by 15 to 33% at highway speeds and 10 to 40% in stop-and-go traffic, according to the Department of Energy. Excess cargo weight also matters: every 100 extra pounds in the vehicle reduces MPG by about 1 to 2% for passenger cars.

Cold weather reduces fuel economy because engines take longer to reach efficient operating temperature, tire pressure drops, and winter-blend gasoline has slightly less energy per gallon. Air conditioning use in hot weather can reduce fuel economy by more than 25% on short trips. For a broader trip planning tool that includes fuel stops and drive time, see the Road Trip Calculator.

Fuel Cost FAQ

How do I find my car's actual MPG?
Fill your tank completely, reset your trip odometer, drive normally until you need fuel again, fill up again, and divide the miles driven by the gallons added. Repeat over several fill-ups for a reliable average. The EPA window sticker rating is a standardized estimate, not a guarantee of what you will achieve in your specific driving conditions.
Is premium gas worth the extra cost?
Only if your vehicle requires it. Cars designed for regular 87-octane fuel gain no benefit from premium. Vehicles that require premium (usually high-compression or turbocharged engines) can experience knocking, reduced power, and potential engine damage on regular fuel. If your owner's manual says premium is "recommended" but not "required," you can safely use regular with a possible minor reduction in peak performance.
How does fuel cost compare between gas, diesel, and electric?
At 2025 averages, a gasoline car (28 MPG, $3.40/gal) costs about $0.12 per mile. A diesel truck (22 MPG, $3.80/gal) costs about $0.17 per mile. An electric vehicle (3.5 mi/kWh, $0.17/kWh) costs about $0.05 per mile. The per-mile advantage of electric vehicles is significant, though the total cost of ownership also depends on vehicle purchase price, insurance, and maintenance.

Understanding Fuel Efficiency

Fuel efficiency varies significantly based on driving conditions. Highway driving is typically 15 to 30% more efficient than city driving due to fewer stops, starts, and idling periods. Aggressive driving (rapid acceleration, hard braking, speeding) can reduce fuel economy by 15 to 33% on the highway and 10 to 40% in the city, according to the U.S. Department of Energy. Tire pressure is a commonly overlooked factor: properly inflated tires improve fuel economy by up to 3%. Additional factors include vehicle weight (every 100 extra pounds reduces MPG by about 1%), air conditioning use (can reduce fuel economy by more than 25% in certain conditions), and engine maintenance (a properly tuned engine can improve MPG by 4%). For electric vehicles, equivalent efficiency is measured in miles per kWh rather than miles per gallon.