MPG Calculator
Calculate miles per gallon from miles driven and gallons used. See cost per mile.
By Konstantin Iakovlev · Updated April 2026 · Source: DOE
MPG
30.0
Cost per Mile
$0.14
Comparison
| Your MPG | 30.0 |
| Gas Cost/Mile | $0.14 |
| EV Cost/Mile (avg) | $0.04 |
| Annual Gas (12K mi) | $1,640.00 |
| Annual EV (12K mi) | $480.00 |
| Potential EV Savings | $1,160.00 |
Use the MPG Calculator above to calculate your results. Enter your values and see instant results — all calculations run in your browser.
Disclaimer: This calculator is for informational purposes only and does not constitute tax, financial, or legal advice. Results are estimates based on the information you provide and current rates. Always consult a qualified tax professional or financial advisor for advice specific to your situation.
How It Works
Fuel efficiency comes down to two numbers worth tracking: miles per gallon and the cost per mile your vehicle racks up. With regular unleaded projected to average around $4.15 per gallon in 2026, those figures move from trivia to budgeting tools, and a sudden drop in MPG can be an early sign that something mechanical needs attention. Watched over time, they inform both how you drive and when you service the car, which can add up to hundreds of dollars a year.
The arithmetic is direct. MPG comes from dividing the total miles driven by the gallons consumed, and cost per mile comes from dividing what you paid for the fuel by those same miles. Drive 300 miles on 10 gallons that cost $41.50, for example, and you land at 30 MPG and $0.138 per mile.
Clean inputs make the difference between a useful number and a misleading one. Filling the tank all the way each time you log gallons gives the most reliable average, because partial fills throw the figure off. It's worth remembering that aggressive driving, heavy loads, and underinflated tires all eat into MPG, so keep those conditions in mind when you read what the calculator returns.
Example: Calculating Fuel Efficiency for a Road Trip
- 1 You just completed a 450-mile road trip. You started with a full tank and refilled 15 gallons of regular unleaded gas at a total cost of $62.25 (assuming $4.15/gallon in 2026).
- 2 MPG = 450 miles / 15 gallons = 30 MPG. Cost per mile = $62.25 / 450 miles = $0.138 per mile.
- 3 Your vehicle achieved 30 miles per gallon, and each mile driven cost you approximately $0.138.
- 4 Understanding this data allows you to compare your vehicle's performance against its EPA rating, identify if your car is performing less efficiently than expected, or project future fuel costs for similar trips.
Source: DOE · Last updated: April 2026
Frequently Asked Questions
How do I calculate my car's MPG?
Why is my actual MPG lower than the EPA rating?
What is a good MPG for a car in 2026?
You might also need
Fuel Cost Calculator
Calculate fuel cost for a trip or commute. Compare gas vs EV costs side by side.
EV vs Gas Savings Calculator
Compare total cost of owning an electric vehicle vs gas car. See fuel, maintenance, and total savings over 5-10 years.
Car Depreciation Calculator
Estimate your car's current value based on age and depreciation curve. See year-by-year value decline.