How to Calculate MPG
To calculate MPG, divide the miles you drove by the gallons of gas you used. That one division is the whole formula, and the MPG calculator above does it for you, along with the trip cost, the cost per mile, and the metric conversions. Drive 350 miles, fill up with 14 gallons, and the answer is 350 divided by 14, which is 25.0 MPG.
The hard part is not the division but the measurement. A single fill-up can mislead you by a gallon, a pump can click off early, and a short trip magnifies every error. This page walks through the tank-fill method step by step, works through four examples with the calculator’s own numbers, and lists the mistakes that make MPG figures wrong, so the number you get is one you can trust.
Vehicle presets:
Daily Commute Cost
Gas vs Electric Comparison
Compared over the trip distance above, using the trip MPG and gas price.
The MPG Formula
The formula is MPG equals miles driven divided by gallons used. There is nothing else in it: no correction factor, no temperature adjustment, no hidden constant. If you drive 350 miles and use 14 gallons, the MPG is 350 divided by 14, which is 25.0. If you drive 300 miles and use 10.71 gallons, the MPG is 300 divided by 10.71, which is 28.0. The formula works in either direction: knowing your MPG and the trip distance tells you the gallons, and knowing the gallons and the distance tells you the MPG.
The same ratio gives the metric figures. Kilometres per litre is MPG times 0.425144, so 25.0 MPG is 10.63 kilometres per litre. Litres per 100 kilometres is 235.215 divided by MPG, so 25.0 MPG is 9.41 litres per 100 kilometres. Gallons per 100 miles is 100 divided by MPG, so a 25 MPG car uses 4.00 gallons every 100 miles. These conversions matter when you compare a US car with a car sold in a country that uses litres, because the numbers look nothing alike until you convert them.
Cost follows from the same division. The cost per mile is the gas price divided by MPG: at 4.15 dollars a gallon and 28 MPG, the cost per mile is 4.15 divided by 28, which is 15 cents. The trip cost is the gallons times the price, or the miles times the cost per mile, and both routes give the same answer: 300 miles times 15 cents is 45 dollars, and the exact figure from the calculator is 44.46 dollars, because the cost per mile is really 14.8 cents and rounds to 15. The US Energy Information Administration publishes the weekly average gas price at eia.gov, and in early November 2026 the national average for regular gasoline was 4.15 dollars a gallon.
Step 1 — Fill the Tank and Reset the Trip Meter
Fill the tank until the pump clicks off the first time, then stop. Do not top up after the click, because the extra fuel makes the next measurement wrong. Reset the trip meter to zero, or write down the odometer reading. From this point, drive normally until the tank is low enough to need fuel again.
Step 2 — Fill Up Again and Record Both Numbers
At the next fill-up, again let the pump click off once and stop. Write down two numbers: the miles on the trip meter since the last fill-up, and the gallons the pump added this time. For the calculator’s default, those numbers are 350 miles and 14 gallons. The gallons added are the gallons you used, because the tank is back to the same full level it started at.
Step 3 — Divide Miles by Gallons
Divide the miles by the gallons. For 350 miles and 14 gallons, that is 350 divided by 14, which is 25.0 MPG. Enter the same two numbers in the My MPG mode of the MPG calculator and it gives the same answer, plus 10.63 kilometres per litre and 9.41 litres per 100 kilometres. Repeat the whole process over three or four fill-ups and average the results for a figure you can rely on.
Worked Examples: Calculating MPG
Each row starts from a fill-up and gives the MPG, the metric figures, and the cost per mile at the stated gas price.
| Miles driven | Gallons used | MPG | km/L | L/100 km | Cost per mile |
|---|---|---|---|---|---|
| 350 miles | 14.00 gal | 25.0 | 10.63 | 9.41 | $0.14 at $3.50 |
| 300 miles | 10.71 gal | 28.0 | 11.90 | 8.40 | $0.15 at $4.15 |
| 420 miles | 12.00 gal | 35.0 | 14.88 | 6.72 | $0.10 at $3.50 |
| 200 miles | 10.00 gal | 20.0 | 8.50 | 11.76 | $0.18 at $3.50 |
| 500 miles | 11.11 gal | 45.0 | 19.13 | 5.23 | $0.08 at $3.50 |
Check the second row against the trip default: 300 miles at 28 MPG needs 10.71 gallons, and 300 divided by 10.71 is 28.0, which closes the loop. The fifth row is a hybrid: 500 miles on 11.11 gallons is 45.0 MPG, and at 3.50 dollars a gallon the cost per mile is 3.50 divided by 45, which is 8 cents. The same arithmetic works for any car, from a pickup at 20 MPG to a hybrid at 45 MPG.
How to Use the MPG Calculator
Use My MPG mode for the measurement and Trip Cost mode for planning. Both modes keep their own numbers, so switching does not erase your work.
- Open My MPG mode. Click the My MPG button at the top of the calculator. The trip inputs hide and the fill-up inputs appear.
- Enter the miles driven. Use the trip meter reading since the last fill-up. The default is 350 miles.
- Enter the gallons used. Use the gallons the pump added at this fill-up. The default is 14 gallons, which gives 25.0 MPG.
- Read the MPG and the conversions. The result shows MPG, kilometres per litre, litres per 100 kilometres, and gallons per 100 miles in one panel.
- Switch to Trip Cost to use the figure. Enter your new MPG in the trip planner and see what a real drive costs at the current gas price.
What the Calculator Reports
The My MPG result panel gives more than the headline MPG. This table explains each figure.
| Figure | What it is | Default value |
|---|---|---|
| MPG | Miles divided by gallons | 25.0 |
| km/L | MPG times 0.425144 | 10.63 |
| L/100 km | 235.215 divided by MPG | 9.41 |
| Gallons per 100 miles | 100 divided by MPG | 4.00 |
| Cost per mile | Gas price divided by MPG | $0.14 at $3.50 |
Common Mistakes When Calculating MPG
Most wrong MPG figures come from the measurement, not the division. These are the errors to avoid.
- Topping up after the click. Fuel added after the pump clicks off is not measured the same way twice, and it makes the next tank look better than it is.
- Using a partial fill-up. If the tank is not full at both ends of the measurement, the gallons added do not equal the gallons used, and the division is meaningless.
- Measuring over too few miles. A 50-mile measurement magnifies a half-gallon pump error into a large MPG error. A full tank, 300 miles or more, is far steadier.
- Using the dashboard MPG alone. The dashboard estimate is useful, but it is computed by the car and can run a few percent high. The fill-up method is the check against it.
- Comparing MPG across gallon types. A US gallon and an imperial gallon differ by about 20 percent. Always confirm which gallon a figure uses before comparing two cars.
Where You Will Use an MPG Calculation
The formula is short, but it shows up in more places than most drivers expect.
- Checking a used car. A fill-up test on a test drive tells you more about a used car’s real economy than the window sticker does.
- Budgeting a move. Driving 1,000 miles to a new city at 25 MPG and 3.50 dollars a gallon costs 140 dollars in fuel, which belongs in the moving budget.
- Claiming business miles. Fuel is only part of the IRS standard mileage rate, but knowing your fuel cost per mile helps you judge whether a trip is worth driving.
- Choosing between two cars. The MPG gap between 25 and 35 MPG is worth about 40 percent of your fuel bill, which is easy to miss when the sticker prices are close.
- Tracking a repair. If MPG jumps back up after a service, the service helped. If it keeps falling, something else is wrong.
Tips for Accurate MPG Results
Good MPG numbers come from consistent habits, not from better arithmetic.
- Use the same pump when you can. Pumps shut off at slightly different levels, and using the same one removes that variable.
- Fill up at the same time of day. Fuel expands slightly when warm, so a consistent routine keeps the measurement comparable.
- Write the numbers down at the pump. Miles and gallons are easy to forget by the time you get home. Note them before you drive off.
- Separate city and highway tanks. A tank of pure highway driving and a tank of pure city driving are different measurements, and mixing them hides both.
- Recheck after any change. New tires, a roof rack, or a different commute all move MPG. Measure again after the change so the figure stays current.
MPG Quick Answers
These are the figures people look up most often, each one verified against the calculator above.
| Question | Answer |
|---|---|
| What is the MPG formula? | Miles driven divided by gallons used |
| 350 miles on 14 gallons is what MPG? | 25.0 MPG |
| What is 25 MPG in litres per 100 km? | 9.41 L/100 km |
| What is 28 MPG in km per litre? | 11.90 km/L |
| How many gallons per 100 miles at 25 MPG? | 4.00 gallons |
Related tools on this site: the main MPG calculator, the length converter for miles and kilometres, the time calculator for driving time, and the salary calculator to weigh a long commute against the pay.
Frequently Asked Questions
What is the formula to calculate MPG?
MPG equals miles driven divided by gallons used. Drive 350 miles, use 14 gallons, and the MPG is 350 divided by 14, which is 25.0. The calculator above runs the same division and adds the metric conversions.
How do I calculate MPG without a trip meter?
Write down the odometer reading at one fill-up and again at the next, then subtract. The difference is the miles driven. Divide that by the gallons added at the second fill-up and you have the MPG.
How many fill-ups do I need for an accurate MPG?
Three or four full tanks averaged together give a reliable figure. One fill-up can be off because pumps click off at different levels, and a single tank mixes city and highway driving in unknown proportions.
What is a good MPG for a car?
A modern sedan at 28–32 MPG is typical, a hybrid at 40–50 MPG is very good, and a pickup at 17–22 MPG is normal for its size. Compare your car with its official EPA rating at fueleconomy.gov before judging it.
How do I convert MPG to litres per 100 km?
Divide 235.215 by the MPG. For 25 MPG that is 235.215 divided by 25, which is 9.41 litres per 100 kilometres. The calculator shows this conversion automatically in My MPG mode.
Disclaimer: This calculator is for general information only. Gas prices change daily and vary by location, and your real fuel economy depends on your car, driving style, and road conditions. Use the figures as estimates for planning, not as exact costs.
