WayAuto Blog
How to calculate your gas mileage (mpg) by hand
Work out your car's real mpg, L/100 km, or km/L from two fill-ups: the full-tank method, a three-tank worked example, how to do it on your iPhone, and the mistakes that throw it off.
Your car's spec sheet says one number, your dashboard says another, and the friend who owns the same model swears they get something better than both. Meanwhile the gas station seems to see you more often than it used to. At some point you just want to know what your car really gets, on your roads, with your driving.
Photo: KurtClark on Flickr ( Public Domain )
The good news is that you only need two fill-ups and a bit of division. Here's the full-tank method that the EPA's fueleconomy.gov describes, with a worked example and the mistakes that throw the number off.
The formula in one line
Gas mileage is just distance divided by fuel. In the US that's miles per gallon:
mpg = miles driven ÷ gallons used
Take the miles since your last full tank and divide by the gallons it took to fill up again.
If you use kilometers and liters, there are two common ways to say it. Most of Europe uses liters per 100 km, where lower is better. Some countries, including Japan and India, often use kilometers per liter, where higher is better, like mpg.
L/100 km = liters used ÷ km driven × 100
km/L = km driven ÷ liters used
For L/100 km, divide the liters by the kilometers, then multiply by 100. For km/L, divide the kilometers by the liters.
That's all the calculator above does. The hard part is getting honest numbers to put into it.
Step 1: Fill up and write down your starting point
Everything depends on starting from a completely full tank, so the next fill-up tells you exactly how much fuel you burned.
- Fill the tank until the pump clicks off. Try to use the same pump setting each time, and don't keep topping it off after the click.
- Write down the odometer reading, or reset your trip meter to zero. Either works, but pick one and stick with it.
- Drive normally. You want your everyday number, not a test-day number.
fueleconomy.gov describes both versions, and warns that it's easy to mix up the main odometer and the trip odometer, especially in a car you haven't had long.
Step 2: Fill up again and do the division
When the tank is low enough that you'd fill up anyway, it's time to measure.
- Fill the tank completely again, until the pump clicks off.
- Write down the gallons or liters from the pump display or your receipt. That's the fuel you used since the last fill-up.
- Write down the new odometer reading, or the trip meter, then reset the trip meter for next time.
- Subtract the old odometer reading from the new one to get the distance.
- Divide the distance by the fuel.
The example on fueleconomy.gov: the odometer went from 32,645.1 to 33,001.3 miles, which is 356.2 miles, and the fill-up took 13.5 gallons. 356.2 ÷ 13.5 = 26.4 mpg.
Use more than one tank
One tank is a snapshot. A week of highway driving and a week of school runs give very different numbers. Repeat for three tanks or more, then add up all the miles, add up all the gallons, and divide the totals.
Worked example: three tanks of real driving
Say you fill up on a Sunday with the odometer at 41,268.0 miles, then keep filling up whenever the tank gets low. Here's the log after three more fill-ups:
| Fill-up | Odometer | Miles driven | Gallons | mpg | L/100 km | km/L |
|---|---|---|---|---|---|---|
| Start | 41,268.0 | |||||
| 1 | 41,571.4 | 303.4 | 11.2 | 27.1 | 8.7 | 11.5 |
| 2 | 41,889.9 | 318.5 | 12.4 | 25.7 | 9.2 | 10.9 |
| 3 | 42,244.6 | 354.7 | 11.9 | 29.8 | 7.9 | 12.7 |
| Total | 976.6 | 35.5 | 27.5 | 8.6 | 11.7 |
The math for each row:
- Tank 1: 41,571.4 minus 41,268.0 = 303.4 miles. 303.4 ÷ 11.2 = 27.1 mpg.
- Tank 2: 41,889.9 minus 41,571.4 = 318.5 miles. 318.5 ÷ 12.4 = 25.7 mpg.
- Tank 3: 42,244.6 minus 41,889.9 = 354.7 miles. 354.7 ÷ 11.9 = 29.8 mpg.
- Overall: 976.6 miles ÷ 35.5 gallons = 27.5 mpg.
To get the metric columns, the overall 27.5 mpg is 235.215 ÷ 27.5 = 8.6 L/100 km, and 27.5 × 0.425144 = 11.7 km/L. The mpg to L/100 km guide explains where those constants come from.
Tank 2 was the worst, maybe a week of short trips or traffic. Tank 3 was the best, probably more highway. That spread is normal, and it's why one tank isn't enough to judge a car.
The same thing in kilometers and liters
If your car and your pump work in metric, nothing changes except the units. Say you drove 512 km since the last full tank and it took 38.4 liters to fill up:
- L/100 km: 38.4 ÷ 512 × 100 = 7.5 L/100 km.
- km/L: 512 ÷ 38.4 = 13.3 km/L.
- US mpg, for comparison: 235.215 ÷ 7.5 = 31.4 mpg.
How to keep a fill-up log on your iPhone
You don't need a spreadsheet for this. Two apps already on your iPhone cover it.
Keep the log in Notes
- Open the Notes app and start a new note. Call it something like "Fill-ups."
- Tap the table button to add a table.
- Make columns for date, odometer, and gallons (or liters).
- Add a row every time you fill up. It's quick enough to do at the pump.
Let Math Notes do the division
On recent versions of iOS, Notes and the Calculator app can solve math inline. Type an expression followed by an equal sign and the answer appears. You can also name values, which makes a fill-up log read almost like plain English.
- In the Calculator app, switch to Math Notes and start a new note. A regular note in the Notes app works too.
- Type
miles = 976.6on one line andgallons = 35.5on the next. - On a new line, type
miles / gallons =and the answer appears. It may show a few more decimals, which round to 27.5.
Apple says you need to set a variable before you use it, and variable names can only use Latin letters. When you change a number later, results that use it update on their own.
Compare your number with the official rating
Once you have your own mpg, it's worth checking it against the official one. fueleconomy.gov lists EPA ratings by year, make, and model, with separate city, highway, and combined numbers.
Don't panic if yours is lower. fueleconomy.gov says the EPA estimates come from standardized tests, and how and where you drive, the car's condition, fuel variations, and even engine break-in can change your number. The ratings are useful for comparing cars but may not predict your own average.
Weather matters more than most people expect. fueleconomy.gov says that in city driving, a conventional gas car's mileage is roughly 15% lower at 20°F than at 77°F, and it can drop as much as 24% on short trips of 3 to 4 miles. So a winter tank full of short errands will look worse than a summer road trip, even in the same car.
Many cars also show average mpg on the trip computer. It's handy for spotting changes, but it's calculated by the car, not measured at the pump, so the full-tank method is a good way to check it.
Where WayAuto fits, and where it doesn't
WayAuto is an iPhone app I make. It logs your drives in the background and keeps the distance for each one, so you don't have to remember to start anything. It doesn't track fuel, receipts, or mpg, so it won't replace the fill-up log above. What it can do is show where those miles went.
- Open a drive. The distance and duration are shown at the top.
- To keep a fill-up next to the drive it happened on, tap Notes on that drive, type something like "Full tank, 11.9 gal, odometer 42,244.6", and submit the note.
- Open your License and look at the Garage. Each car you've added shows its total distance and drive time, which helps if you split your driving between two cars.
- Tap All Drive Stats for your total Drive Distance, and change the Stats period to look at one year.
Every drive also adds to a map of every road you've driven. More on that in Is there an app that tracks where you've driven?
If what you really want is a long-term fuel log with mpg trends, cost per mile, and service reminders, a dedicated fuel log app is a better fit than WayAuto. fueleconomy.gov's own My MPG tool also helps you calculate and track your fuel economy online.
Common mistakes
- Not filling to full both times. If either fill-up is partial, the gallons don't match the miles and the result is wrong. One partial fill can make a tank look great and the next one look terrible.
- Averaging the mpg numbers. If one tank was a short 120 miles on 6.0 gallons (20 mpg) and the next was 400 miles on 12.5 gallons (32 mpg), the average of 20 and 32 is 26. But the real number is 520 miles ÷ 18.5 gallons = 28.1 mpg. Always divide total miles by total gallons.
- Mixing up the odometer and the trip meter. Write down which one you used. Subtracting a trip meter reading from an odometer reading gives you nonsense.
- Forgetting to reset the trip meter. If you use the trip meter, reset it at every fill-up, or the next tank includes the last one's miles.
- Mixing US and UK gallons. A UK gallon is about 4.55 liters and a US gallon is about 3.79, so the same car shows a higher number in UK mpg. The mpg to L/100 km converter handles both.
- Judging the car from one tank. Weather, traffic, and a single road trip can swing one tank a lot. Use three or more.
Put the number to work
Once you know your real mpg, the trip fuel cost calculator turns it into a budget for your next drive, and How to calculate gas cost for a road trip walks through it. For a whole year of driving, see How to figure out how many miles you drive a year. If your odometer and your head use different units, the miles to km converter sorts out the distance.
Questions
How do I calculate my gas mileage?
Fill the tank to full and note the odometer. At the next fill-up, fill to full again, subtract the old odometer reading from the new one, and divide those miles by the gallons you just put in.
What is a good mpg?
It depends on the car. fueleconomy.gov says the production-weighted average for 2025 model year vehicles was 36.6 mpg for cars, 25.0 mpg for trucks, and 28.1 mpg for cars and trucks combined. The most useful comparison is your car's own EPA rating.
How do I calculate L/100 km?
Divide the liters you used by the kilometers you drove, then multiply by 100. For example, 38.4 liters over 512 km is 7.5 L/100 km.
How do I calculate km per liter?
Divide the kilometers you drove by the liters you used. 512 km on 38.4 liters is 13.3 km/L. Higher is better, just like mpg.
Why is my real mpg lower than the sticker?
The official rating comes from standardized tests, and your driving, weather, car condition, and fuel can all change the result. Cold weather and short trips have an especially big effect, so winter numbers are often lower.