MPG / Gas Mileage Calculator
Two numbers off your last tank — miles driven and gallons to refill — give you your real fuel economy, not the EPA lab estimate, plus what that mileage costs per mile and per year.
25.0 mpg
9.4 L/100km · 4.00 gal per 100 mi
- Cost per mile
- 14.4¢
- Cost per fill
- $43
- Gallons / year
- 480 gal
- Fuel / year
- $1,728
What this computes
MPG is the simplest car number there is — miles divided by gallons — yet almost nobody measures their own. This does, and then turns it into the figures that matter: gallons per 100 miles, the metric L/100km, cost per mile at today's gas price, and what a full year of your driving burns in fuel.
The math
mpg = miles driven / gallons used
gallons / 100 mi = (gallons / miles) × 100
L/100km = 235.215 / mpg
cost per mile = gas price / mpg
annual fuel cost = (annual miles / mpg) × gas price MPG flatters big numbers — the jump from 10 to 20 mpg saves far more fuel than 30 to 40. That's why gallons-per-100-miles (and L/100km) exist: they scale with what you actually spend.
Going from 10 to 20 mpg saves more gas than going from 20 to 40. MPG hides that; cost per mile doesn't.
How to measure it
- Fill up and reset the trip odometer to zero.
- Drive a normal mix of your real commuting and errands — a few hundred miles.
- Refill the tank and read the gallons off the pump and the miles off the trip odometer.
- Enter both here. For a steadier number, average three or four tanks, or use total miles ÷ total gallons if you track every fill.
Why it beats the EPA number
- The EPA tests in a lab. Your commute, climate, and right foot aren't in the cycle.
- Real loss is 10-25%. Cold starts, short trips, highway speed, AC, and cargo all push you below the sticker.
- Your number is the one that spends money. Budget and comparisons should use measured MPG, not the window sticker.
What this calculator doesn't model
- Everything but fuel — depreciation, insurance, and maintenance dwarf gas in the true cost of a mile.
- Pump cut-off variation — a single partial fill can skew one reading; average a few.
- Seasonal swings — winter blends and cold weather lower MPG; summer raises it.
- EVs — for electric range and charging, use the EV charging cost calculator instead.
Frequently asked questions
How do I calculate my car's MPG? +
Why is my real MPG lower than the EPA sticker? +
What's a good MPG? +
How do I convert MPG to L/100km? +
Does cost per mile here include everything? +
Should I use one tank or an average of several? +
Related calculators
- Fuel Cost — plug your measured MPG in to price a trip or a year.
- Cost Per Mile — fuel is one line; this adds depreciation, insurance, and the rest.
- EV Charging Cost — the electric equivalent of MPG, in dollars per mile.
- Gas vs Electric — once you know your real MPG, compare it to an EV.
Curious why your real MPG trails the sticker? Read your real MPG isn't the EPA number.
AutoMath is an educational tool. The numbers above depend entirely on the miles, gallons, and price you enter.