Fuel is one of the biggest ongoing costs of owning a car, and yet most people have only a vague sense of what they actually spend or how many miles per gallon they really get. Knowing how to calculate your fuel cost and MPG turns that vague feeling into hard numbers, so you can budget accurately, spot when something is wrong with your car, and make smarter choices about which vehicle to buy. A car that gets 10 fewer MPG than another can cost you well over a thousand dollars a year more in gas, so this stuff adds up fast.
This guide shows you exactly how to calculate your fuel cost and MPG, how to work out your cost per mile, practical ways to save gas, and what fuel economy tells you when buying a used car.
Work out your numbers in our fuel cost and MPG calculator - enter miles, gallons and price and get the result instantly.
How to calculate your MPG
Miles per gallon is simply how far you travel on one gallon of fuel, and you can measure your real MPG with a couple of numbers from your next fill-up:
- Fill the tank completely and reset your trip odometer (or note the odometer reading).
- Drive normally until you need gas again.
- Fill the tank completely again and note how many gallons it took, and how many miles you drove since the last fill.
- Divide miles by gallons. If you drove 320 miles and it took 10 gallons to refill, that is 32 MPG.
The formula is: MPG = miles driven / gallons used. Doing this over a few tanks gives a reliable real-world figure, which is usually a bit lower than the EPA sticker number, especially in city driving or cold weather. Your car’s trip computer estimates MPG too, but it can be optimistic, so the fill-up math is the honest measure.
How to calculate fuel cost
Once you know your MPG, working out cost is easy:
- Cost per mile = price per gallon / MPG. At $3.50 a gallon and 32 MPG, that is about 11 cents per mile.
- Cost for a trip = (miles / MPG) x price per gallon. A 300-mile trip at 32 MPG and $3.50 a gallon uses about 9.4 gallons, or roughly $33.
- Annual fuel cost = (annual miles / MPG) x price per gallon. Driving 12,000 miles a year at 32 MPG and $3.50 a gallon comes to about $1,310 a year.
Run those numbers for two different cars and the difference jumps out. The same 12,000 miles in a 22 MPG vehicle at $3.50 a gallon costs about $1,910, roughly $600 more every year, and more if gas prices climb. That gap is a real part of what a car costs to own; our guide on the cost of owning a used car puts fuel alongside insurance, maintenance, and depreciation.
How to save gas
A lot of fuel economy comes down to driving habits and basic maintenance, and small changes add up:
- Ease off the throttle. Hard acceleration and high speeds burn far more fuel. Smooth, gentle driving and anticipating stops can improve economy by 10 to 20 percent or more.
- Slow down on the highway. Fuel economy drops sharply above about 55 to 60 mph because of air resistance. Backing off a few mph saves noticeable gas.
- Keep tires properly inflated. Underinflated tires increase rolling resistance and hurt MPG, besides wearing faster. See our guide on tire pressure and TPMS.
- Lose the weight and drag. Empty the trunk of junk and remove roof racks or cargo boxes when not in use.
- Keep up with maintenance. Fresh air filters, the right oil, and healthy spark plugs and sensors all help. A dragging brake, a bad oxygen sensor, or a clogged air filter quietly kills economy.
- Avoid excessive idling and combine short trips, since a cold engine is least efficient.
If your MPG suddenly drops with no change in how you drive, treat it as a symptom. A failing oxygen sensor, a dragging brake, low tire pressure, or a clogged air filter can all cause it. Our guide on bad oxygen sensor symptoms explains one of the most common culprits, and a sudden economy drop with a warning light is worth checking against our check engine light guide.
MPG when buying a used car
Fuel economy is a major running cost, so it deserves real weight when choosing a used car:
- Compare the real-world MPG of the models you are considering, not just the sticker, and multiply the difference by your annual mileage to see the true cost gap.
- A car getting worse economy than it should may have a mechanical problem, a tired oxygen sensor, dragging brakes, or an engine issue, that is worth investigating before you buy.
- Fuel type matters too. A car that requires premium gas costs more per mile than one that runs on regular, even at the same MPG.
- Match the car to your driving. A thirsty V8 truck makes little sense for a long commute, while a hybrid or efficient compact can save thousands over a few years.
Catching a car that is quietly burning too much fuel is part of a good inspection. The MotoPPI app reads oxygen sensor and fuel-system data through an OBD scan and walks you through the checks that reveal an engine running rich or inefficiently, so you do not buy a car that costs far more at the pump than it should. For the full routine, see how to inspect a used car.
Calculating your fuel cost and MPG is simple, miles divided by gallons for economy, price per gallon divided by MPG for cost per mile, and it pays off twice: it helps you drive more efficiently now, and it helps you choose a used car whose thirst you can actually afford. Track it over a few tanks, and you will never be surprised by what your car really costs to run.