Gas Mileage Calculator

Calculate how many miles per gallon your vehicle gets and see exactly how much you spend on fuel. Switch between imperial and metric to work in whatever units make sense for you.

Fuel Efficiency

0 MPG
Cost Per Mile
$0.00
Annual Fuel Cost
$0.00
Cost for this trip: $0.00
Gallons used this trip: 0.0

How to Use This Calculator

Choose your unit system first. Most US drivers use imperial, which means miles and gallons. Drivers in Canada, Europe, and Australia typically work with kilometers and liters.

Enter the distance you drove and how much fuel you filled up to cover that distance. The most accurate way to measure this is to fill your tank completely, drive your usual route, then fill up again and note the exact gallons or liters it takes to top off the tank. That refill amount is your actual fuel consumption for that trip.

Add your current local fuel price and your estimated yearly mileage to see your annual fuel cost. This number is useful for comparing the real running cost of different vehicles before you buy.

How Gas Mileage Is Calculated

The formula is different depending on which system you use.

MPG (miles per gallon) = Miles driven / Gallons used

L/100km (liters per 100 kilometers) = (Liters used / km driven) x 100

Note that higher MPG means better efficiency. But with L/100km it is the opposite: a lower number is better. A vehicle at 6 L/100km is more efficient than one at 10 L/100km. This trips people up when comparing across units.

To convert MPG to L/100km, divide 235.21 by your MPG figure. So 30 MPG equals 235.21 / 30, which is approximately 7.84 L/100km.

Cost per mile = Fuel price per gallon / MPG

Annual fuel cost = Cost per mile x Annual miles driven

Real Fuel Cost Examples

These numbers make it clear why fuel efficiency matters so much when picking a vehicle. The difference compounds over a few years of ownership.

Frequently Asked Questions

What is considered good gas mileage?

For a passenger car, anything above 30 MPG is considered good. Compact cars and sedans often hit 35 to 42 MPG. Hybrids typically reach 45 to 55 MPG combined. Full-size trucks and SUVs usually sit between 16 and 24 MPG. Electric vehicles do not have a direct MPG equivalent but are often rated as MPGe, or miles per gallon equivalent.

Why does my real-world MPG differ from the EPA estimate?

EPA estimates are measured under lab conditions designed to be repeatable. Real-world driving involves traffic, hills, climate control use, cold engine starts, and varying speeds. Most drivers see fuel economy 10% to 20% below the EPA label in everyday driving. Highway driving tends to be closer to the estimate than city driving.

How can I improve my gas mileage?

The biggest gains come from steady driving speeds. Aggressive acceleration and heavy braking can reduce fuel economy by 15% to 30% at highway speeds. Checking tire pressure is also worthwhile since under-inflated tires increase rolling resistance. Removing heavy items from your trunk and using cruise control on the highway help too.

How do gas prices affect annual fuel costs?

The relationship is completely linear. If gas prices rise by 20%, your annual fuel bill rises by exactly 20%, assuming the same driving distance and vehicle. The only factor you can control is how much you drive or what vehicle you drive. A more fuel-efficient car insulates you from price spikes more effectively than a less efficient one.

Published by the QuixCalc Team. Fuel efficiency formulas verified against US EPA and EU standards. Last updated: August 2026.

Want this calculator on your site? Grab the embed code.

Featured & Listed On
Fazier badge
Featured on Twelve Tools
Featured on Findly.tools
TinyLaunch Badge
QuixCalc — Featured on Smol Launch
Featured on TheDevToolsDir
NoLogin Verified