Key takeaways
- MPG = miles ÷ gallons. Cost per mile = price per gallon ÷ MPG.
- Measure fill-to-fill. One tank is noisy; three to five tanks give a stable average.
- US and imperial gallons differ. The L/100km constants are 235.215 and 282.481.
- MPG hides the size of gains at the top end. Gallons per 100 miles shows the fuel actually saved.
- The label is a test result. Real-world economy is often 10–20% lower.
- Diesel and gasoline mpg are not directly comparable. A gallon of diesel holds more energy.
The formula and the two numbers it needs
The calculation takes two numbers from the same fill-up period: distance driven and fuel used. MPG = miles ÷ gallons. If the trip odometer reads 324 miles and the tank takes 12.0 gallons, the result is 27.0 mpg. Cost per mile is price per gallon ÷ MPG, and total fuel cost for the tank is gallons × price.
The order matters. Dividing gallons by miles gives gallons per mile, a small decimal that is easy to misread. Gallons per 100 miles is the same idea scaled up: 100 ÷ MPG. A 27 mpg car uses 3.70 gallons per 100 miles.
The two inputs must describe the same period. If you reset the trip meter but forget to fill the tank to the same level, the gallons and the miles no longer match. That is the most common source of a wild result.
How to measure MPG at the pump
- Fill the tank until the pump clicks off at the same station, ideally the same pump.
- Record the odometer and reset the trip meter.
- Drive normally and do not refuel early unless necessary.
- At the next fill-up, record the odometer and the gallons needed to reach the same click-off point.
- Divide the miles since the last fill-up by those gallons.
- Repeat for three to five tanks and divide total miles by total gallons.
One tank is noisy. Weather, traffic, and a partial fill can move the result by several mpg. Average by summing all miles and dividing by all gallons; averaging the individual MPG figures weights small tanks too heavily.
A partial fill breaks the method because the starting and ending fuel levels differ. The trip computer is convenient but is an estimate, and some models are optimistic. The pump method is the reference.
Cost per mile, per tank, and per year
Cost per mile = price ÷ MPG. At $3.50 per gallon, 20 mpg costs $0.175 per mile and 30 mpg costs $0.117. Over 12,000 miles that is $2,100 versus $1,400, a $700 annual difference for the same distance.
For a single trip, multiply distance by cost per mile, or divide distance by MPG and multiply by price: 480 miles ÷ 32 mpg = 15 gallons, and 15 × $3.60 = $54. For a monthly budget, multiply cost per mile by monthly miles; for a year, use annual miles.
Fuel is not the whole cost of driving. Insurance, depreciation, maintenance, tires, and registration are largely fixed or time-based. Cost per mile here means fuel cost, the part that changes with efficiency and price.
MPG, L/100km, and gallons per 100 miles
MPG and L/100km are reciprocals. Because one is distance per volume and the other is volume per distance, the conversion is a division, not a multiplication. For US gallons, the constant is 100 × 3.785411784 ÷ 1.609344 = 235.214583, so L/100km = 235.215 ÷ MPG and MPG = 235.215 ÷ (L/100km).
Imperial gallons change the constant to 282.481, because an imperial gallon is 4.54609 L. A car that gets 30 mpg US gets 36.0 mpg imperial; the same car quoted at 30 mpg imperial is 25.0 mpg US. The 20% gap is large enough to change a comparison.
| MPG (US) | Gallons per 100 miles | L/100km |
|---|---|---|
| 10 | 10.0 | 23.5 |
| 15 | 6.7 | 15.7 |
| 20 | 5.0 | 11.8 |
| 25 | 4.0 | 9.4 |
| 30 | 3.3 | 7.8 |
| 40 | 2.5 | 5.9 |
| 50 | 2.0 | 4.7 |
Gallons per 100 miles is the linear measure. Improving 18 mpg to 20 mpg saves 0.56 gallons per 100 miles; improving 40 to 50 saves 0.50. The first improvement looks smaller on a spec sheet but saves more fuel. That is why fleet comparisons and fuel-economy research often use gallons per 100 miles or liters per 100 kilometers instead of mpg.
Worked examples
300 miles, 10 gallons, $3.50. 30 mpg; $35.00; $0.1167 per mile; 7.84 L/100km.
450 miles, 15 gallons, $4.00. 30 mpg again; $60.00; $0.1333 per mile; 7.84 L/100km. The higher price raises cost but not efficiency.
200 miles, 8 gallons, $3.25. 25 mpg; $26.00; $0.13 per mile; 9.41 L/100km.
Annual comparison. 12,000 miles at 20 mpg uses 600 gallons; at 30 mpg, 400 gallons. At $3.50, that is $2,100 versus $1,400.
Trip cost. 480 miles at 32 mpg and $3.60: 15 gallons, $54.00.
Why the label and the road disagree
US fuel-economy labels come from laboratory test cycles, not a road test. The combined figure weights city and highway results 55/45, and the test suite includes city, highway, high-speed, air-conditioning, and cold-temperature cycles. Since 2008 the published values have been adjusted downward to better match real driving, which is why otherwise similar cars from different model years can carry different labels.
Even with the adjustment, many drivers see 10–20% below the label. Short trips in cold weather are the worst case because the engine, oil, and cabin never reach efficient temperatures. A long highway run in mild weather can match or beat the label. Break-in, fuel blend, and tire condition add variation.
Use the label to compare vehicles on the same test, and your own fill-up log to budget. The two numbers answer different questions.
What actually moves the number
Above about 50 mph, aerodynamic drag rises with the square of speed, so fuel economy falls quickly as speed climbs. Rapid acceleration and hard braking can cut economy by 15–30% at highway speeds and 10–40% in stop-and-go traffic. Idling burns roughly a quarter to a half gallon per hour.
Every 100 pounds of extra weight costs about 1% of fuel economy. A loaded roof rack adds drag that grows with speed. Proper tire inflation can recover up to about 3%, and a serious maintenance fault such as a failing oxygen sensor can cost far more. Air conditioning can cut economy by 10% or more in hot weather; at highway speed, windows-down drag can be worse than running the AC.
These effects stack. A cold engine, soft tires, a roof box, and aggressive driving can turn a 30 mpg car into a 22 mpg car with nothing mechanically wrong.
Diesel, hybrids, and electric vehicles
A gallon of diesel contains roughly 15% more energy than a gallon of gasoline, so diesel mpg is not directly comparable with gasoline mpg. A diesel engine’s higher compression ratio also improves thermal efficiency.
Hybrids recover braking energy and gain most in city driving. Plug-in hybrids and electric vehicles use MPGe for labeling: 33.7 kWh of electricity is treated as equivalent to one gallon of gasoline. That is a comparison unit, not a physical conversion. For an EV, the useful numbers are kWh per 100 miles and cost per mile = consumption × electricity price.
A car using 30 kWh per 100 miles at $0.16 per kWh costs $4.80 per 100 miles, or $0.048 per mile. Home rates, public fast charging, and seasonal efficiency vary widely, so use your own rate rather than a national average.
Common mistakes
Dividing gallons by miles. That gives gallons per mile, not mpg, and the small decimal is easy to misread.
Not resetting the trip meter. The miles and gallons then cover different periods, and the result can be off by a large margin.
Mixing imperial and US gallons. A 30 mpg imperial figure is 25 mpg US, a 20% difference that matters when comparing international reviews.
Comparing mpg ratios instead of gallons. A 5 mpg gain at 15 mpg saves far more fuel than a 5 mpg gain at 45 mpg. Convert both to gallons per 100 miles.
Trusting one tank. A single fill-up can be skewed by wind, traffic, or a partial fill. Use a multi-tank average.
Using the sticker as a budget. The label is a comparison tool; your driving is the budget input.
Frequently asked questions
How do I calculate MPG?
Divide the miles driven since the last fill-up by the gallons used to refill the tank. Use the same fill level both times.
How do I convert MPG to L/100km?
Divide 235.215 by US mpg. For imperial mpg, divide 282.481 instead.
Why is my MPG lower than the window sticker?
The label comes from laboratory cycles. Cold starts, short trips, high speed, air conditioning, roof loads, and aggressive driving all reduce real-world economy.
Is 30 mpg good?
It is above the US light-duty fleet average, but “good” depends on vehicle class, fuel, and driving. Compare within the same class, and use gallons per 100 miles to size an improvement.
Does premium fuel improve MPG?
Only if the engine is designed for the higher octane and can adjust timing to use it. In an engine that specifies regular, premium usually delivers no measurable gain.
How do I calculate cost per mile?
Divide the price per gallon by MPG. At $3.50 and 25 mpg, the fuel cost is $0.14 per mile.
Further reading