MPG Calculator
Calculate your vehicle fuel efficiency in miles per gallon (MPG) with our free online MPG calculator. Estimate fuel consumption, trip cost, and gas usage instantly.
MPG Calculator — Estimate Fuel Costs & Consumption
Plan your road trip budget or evaluate your vehicle's fuel efficiency with this free MPG calculator. Enter your trip distance, your car's average fuel economy (miles per gallon), and the current gas price to instantly calculate how many gallons you will burn and exactly what the trip will cost you.
How fuel consumption and trip cost are calculated
Fuel economy is measured in miles per gallon (MPG) — the number of miles your vehicle can travel on one gallon of fuel. To find out how much fuel a trip requires, divide the total distance by the vehicle's MPG:
$$\text{fuel needed (gal)} = \frac{\text{distance (mi)}}{\text{fuel economy (mpg)}}$$
Once you know the fuel volume, multiply it by the price per gallon to get the total trip cost:
$$\text{trip cost (\$)} = \text{fuel needed (gal)} \times \text{fuel price (\$/gal)}$$
For example, a 300-mile trip in a car that gets 25 MPG with gas at $3.50 per gallon would require 12 gallons of fuel and cost $42.00.
What affects your vehicle's real-world MPG?
The MPG rating on your car's window sticker is a laboratory estimate. Real-world fuel economy depends on driving habits (aggressive acceleration lowers MPG), terrain (hills reduce efficiency), traffic conditions (stop-and-go city driving burns more fuel than highway cruising), vehicle maintenance (underinflated tires and dirty air filters hurt MPG), and weather (cold engines and air conditioning both increase consumption). Use this calculator with a conservative MPG estimate for a more accurate budget.
Example calculation
A 100-mile commute in a vehicle averaging 25 MPG with fuel priced at $3.50/gal:
$$\text{fuel needed} = \frac{100}{25} = 4\ \text{gallons}$$
$$\text{trip cost} = 4 \times \$3.50 = \$14.00$$
If that same trip is driven weekly, the monthly fuel cost would be about $56, and the yearly cost roughly $728. For more automotive calculators, see the Cost Per Mile Calculator, Commute Calculator, and Gas Mileage Calculator.
Frequently Asked Questions
What is a good MPG for a car?
A fuel-efficient modern sedan typically achieves 30–40 MPG on the highway. SUVs and trucks often range from 18–25 MPG. Hybrid and electric vehicles can exceed 50 MPGe. Check your owner's manual or the EPA fuel economy database for your specific model.
How can I improve my car's MPG?
Maintain proper tire pressure, use the recommended motor oil, replace dirty air filters, avoid aggressive acceleration and hard braking, remove excess weight from the trunk, and reduce idling time. Even a 5–10% MPG improvement can save hundreds of dollars per year.
Does city or highway driving affect MPG differently?
Yes. City driving with frequent stops and idling typically yields lower MPG than steady-speed highway cruising. Most cars display separate city and highway MPG ratings. Use the rating that matches your typical driving pattern for the most accurate estimate.
How accurate is this MPG calculator?
The calculator uses the standard formula (distance ÷ MPG = fuel needed). Its accuracy depends on the MPG value you enter. For best results, use your vehicle's observed real-world MPG (calculated from odometer readings and actual fuel refills) rather than the sticker rating.
What if my fuel is priced per liter instead of per gallon?
Convert the price using the factor 1 US gallon = 3.785 liters. Multiply the per-liter price by 3.785 to get the per-gallon equivalent. For example, $0.92/L × 3.785 = approximately $3.48/gal.