How to calculate gas mileage
Gas mileage, also called fuel economy, is the distance a vehicle covers per unit of fuel. The most reliable way to measure it is the full-tank method: fill the tank, note the odometer, drive normally, then fill the tank again. The fuel needed to refill the tank is the amount you burned over that distance.
Gas mileage = distance ÷ fuel added
Worked example
Your odometer read 12,300 miles at the last fill-up and reads 12,600 now. You add 10 gallons. You drove 300 miles, so your mileage is 300 ÷ 10 = 30 mpg. At $3.50 a gallon that fill-up cost $35.00, or about $0.117 per mile.
Unit conversions
| From | To | Formula |
|---|---|---|
| mpg (US) | L/100 km | 235.215 ÷ mpg |
| mpg (US) | km/L | mpg × 0.425144 |
| L/100 km | km/L | 100 ÷ L/100 km |
For example, 600 kilometers on 50 liters is 12 km/L, which equals 8.33 L/100 km or about 28.2 mpg.
Tips for accurate readings
- Fill up at the same pump and stop at the first automatic click-off each time.
- Use the same driving mix for the whole interval, or track highway and city separately.
- Measure over several tanks and average. A single tank can vary with weather and traffic.
- Do not use the figure on the pump display of a partial fill. The calculation assumes the tank is full both times.
How to improve gas mileage
Keep tires inflated to the placard pressure, remove unneeded weight and roof racks, accelerate gently, anticipate stops so you can coast, and keep highway speeds moderate. Fix check-engine lights promptly, since a faulty oxygen sensor can quietly cost several miles per gallon. Combine short trips so the engine stays warm, and use the oil grade your manufacturer specifies.
Cost per distance
If you enter the fuel price, the calculator divides the fill-up expense by the distance driven. That cost per mile (or kilometer) is useful for comparing vehicles, budgeting commutes or splitting fuel with passengers. Multiply it by your annual mileage to see your yearly fuel budget: at $0.117 per mile and 12,000 miles that is about $1,400.
Limits
Odometers can be a few percent off, especially with non-stock tires, and pumps have small measurement tolerances. For a precise figure, average at least three consecutive tanks.
Tracking mileage over time
Record each fill-up in a notebook or spreadsheet with date, odometer, gallons and price. After five or six entries you will see a stable average and any sudden drop. A fall of more than 10% that lasts for several tanks is worth investigating: common causes are low tire pressure, a dragging brake, a dirty air filter, worn spark plugs or a failing sensor.
Highway versus city
Most gasoline cars do better on the highway, where the engine runs at a steady load, while hybrids often do better in town because they recover braking energy. If you drive both, measure a tank of mostly each to see your own split rather than relying on the label numbers.
Example with metric units
You drive 600 km between fill-ups and add 50 liters at $1.00 per liter. Mileage is 600 ÷ 50 = 12 km/L, which equals 100 ÷ 12 = 8.33 L/100 km or 28.23 mpg. The fill-up costs $50, so each kilometer costs $0.0833, or 12 kilometers for every dollar spent.
Why partial fills mislead
The formula only works when both fill-ups bring the tank to the same level. If you top off sloppily one time and stop at the first click the next, the fuel measured will be off by a gallon or more, which on a short interval can shift the result by several mpg. Use the same station and pump, level ground and the same stopping rule each time, and prefer longer intervals of at least 200 miles.
Another cross-check is the trip computer in your car. Compare it with the calculated figure over three tanks; if it reads consistently higher by a few percent, you can apply that correction in the future.