Gas Mileage Calculator

Enter the miles you drove and the fuel you burned to get your real MPG, converted to L/100km and km per liter, with cost per mile and a yearly fuel total.

📋 What's on this page: Use the free calculator to turn one tank of gas into your actual gas mileage, in miles per gallon, liters per 100 kilometers and kilometers per liter. The guide below covers the mileage formula, how to measure MPG accurately at the pump, why MPG and L/100km move in opposite directions, a worked month of fill-ups, typical figures by vehicle class, what really moves your number, and the mistakes that make a measurement useless.

Gas Mileage Calculator

Find real MPG from distance and fuel, convert units, and see cost per mile plus a yearly total

Inputs

Odometer difference between two fill-ups, or one trip meter reading.

Used only for the annual savings figure. Set a better number than your own to see what the gap is worth.

Results

32.0
Miles per Gallon
7.4
Liters per 100 km
13.6
Kilometers per Liter
$0.108
Cost per Mile
$34.50
Cost of This Tank
422
Range on a Full Tank (miles)
$1,294
Annual Fuel Cost
$111
Annual Savings at Target
Enter a distance and the fuel you added to see your real gas mileage.

How to Use This Gas Mileage Calculator

The calculator answers a single question first: what is the actual fuel economy of the car you are driving, measured from the road rather than read off a sticker. Everything else on the page is that one number expressed in different units or turned into money.

Distance driven and fuel added are the only two inputs the mileage figure needs. Distance comes from the odometer difference between two fill-ups, or from a trip meter you reset at the first one. Fuel is what the pump put in at the second fill, not the tank capacity, and not an estimate of what you think you burned. Divide one by the other and you have miles per gallon.

Fuel price turns the mileage into money. Cost per mile is the pump price divided by miles per gallon, which is the cleanest way to compare driving against any other way of making a trip, because it does not depend on how far you go. The cost of this tank is simply the fuel you bought multiplied by what it cost, and the annual figure runs your measured mileage across a year of driving.

Tank capacity produces range, the distance a full tank covers at your real mileage. It is worth knowing before a long drive, and it is the number that decides how often you stop. Use the usable figure rather than the dry capacity in the spec sheet, since a typical car leaves a gallon or two below the pickup tube that the engine cannot reach.

The target is optional and only feeds the last output. Enter the mileage you would like to get, or the figure a newer car in the same class returns, and the calculator shows what the gap costs over a year. It is the honest version of the question people ask when they wonder whether a more efficient car would pay for itself.

Unit switching converts everything you have already typed, so a 320 mile tank becomes 515 kilometers rather than a nonsense number, and the headline output changes to liters per 100 kilometers with the label following it.

The Gas Mileage Formula

Fuel economy is one division, and every other number on this page is a rearrangement of it.

What you wantUS unitsMetric units
Fuel economyMiles ÷ gallons = MPGLiters ÷ km × 100 = L/100km
Convert the units235.215 ÷ MPG = L/100km235.215 ÷ L/100km = MPG
Cost per distancePrice per gallon ÷ MPGPrice per liter × L/100km ÷ 100
Range on a tankTank gallons × MPGTank liters ÷ L/100km × 100
Annual fuel costAnnual miles ÷ MPG × priceAnnual km × L/100km ÷ 100 × price

The metric formula reads backwards to most people who grew up with miles per gallon, and that is the whole trick. Miles per gallon is distance per unit of fuel, so bigger is better. Liters per 100 kilometers is fuel per unit of distance, so smaller is better. Neither is more correct, and both describe the same tank of gas. Germany, France and most of Europe use the fuel-per-distance form, which has the advantage of scaling linearly: twice the consumption figure really does mean twice the fuel for the same trip.

The conversion constant of 235.215 comes from the unit definitions rather than from anything about cars. It is the number of miles in 100 kilometers multiplied by the number of liters in a US gallon, rearranged so that the two reciprocal units line up. Because it is a pure unit conversion, it works for a motorcycle and a semi truck alike, and it works for a single trip as well as a lifetime average.

One warning about the British figure. An imperial gallon is 4.546 liters against 3.785 for a US gallon, so the same car rated at 40 MPG in America is about 48 MPG in Britain. European test cycles add their own differences on top of that. When you compare a car you read about overseas with one you are shopping for at home, check which gallon the figure uses before drawing any conclusion.

How to Measure Gas Mileage at the Pump

The window sticker describes a laboratory. A pump measurement describes your car, on your roads, with your driving, and it takes about three weeks to establish properly.

The procedure is short. Fill the tank until the nozzle clicks off and record the odometer. Drive normally. At the next fill, stop at the click again and write down the gallons and the new odometer reading. Subtract the two odometer readings and divide by the gallons. That is your figure for one tank.

Three details make the difference between a measurement and a guess.

Stop at the first click. Topping off after the click pushes fuel into the filler neck, and how much fits there varies with the car, the pump and the temperature. That variability goes straight into your error bar. If you always stop at the click, the variation largely cancels because you start the next tank from the same place.

Use the same pump when you can. Pumps shut off at slightly different points, and a pump that clicks a quarter gallon early makes your next tank look better than it was. This matters little over ten tanks and a lot over one, which is exactly the tank people quote when they tell you what their car gets.

Do not change your driving to improve the reading. A measurement of a driving style you do not normally use tells you nothing useful. Measure the commute, the school run and the Costco trip as they actually happen. If you want a highway number for a road trip budget, measure a separate all-highway tank and use that figure for the trip instead.

One trip meter trick saves arithmetic. Reset the trip meter at every fill. Then the distance you need is already on the dashboard when you next stop for gas, and the only number you have to remember is gallons from the receipt. Drivers who write the trip reading on the receipt and keep them in the glovebox build a fuel log without any extra effort, and a fuel log is the only reliable way to spot a problem like a failing thermostat showing up as a ten percent mileage drop.

MPG and L/100km: Why the Numbers Move in Opposite Directions

People comparing cars across unit systems get confused because a bigger number means better in one and worse in the other. The two units are exact reciprocals, scaled by a constant, and that reciprocity produces a result that surprises almost everyone.

Improving from 15 to 20 miles per gallon saves far more fuel over a fixed distance than improving from 35 to 40, even though both are a five mile per gallon gain. Going from 15 to 20 cuts fuel use by a quarter. Going from 35 to 40 cuts it by an eighth. Over 12,000 miles at $3.45 per gallon, the first improvement is worth about $690 a year and the second is worth about $148.

ChangeGallons per 12,000 milesCut in fuel useSaved per year at $3.45
15 to 20 MPG800 down to 60025 percentAbout $690
20 to 25 MPG600 down to 48020 percentAbout $414
25 to 30 MPG480 down to 40017 percentAbout $276
35 to 40 MPG343 down to 30012 percentAbout $148
50 to 55 MPG240 down to 2189 percentAbout $76

The practical lesson is about where to spend your effort. The biggest fuel savings in a household usually sit in the thirstiest vehicle in the driveway, not in squeezing the last mile per gallon out of the efficient one. Trading a 16 mile per gallon truck for a 20 mile per gallon truck saves more fuel than trading a 40 mile per gallon sedan for a 50 mile per gallon hybrid, and it is usually the cheaper swap as well.

In liters per 100 kilometers the same effect appears without the mental gymnastics. The scale runs the other way, so a drop from 12 to 10 is a 17 percent cut and a drop from 6 to 4 is a 33 percent cut, and both are two liter improvements. The metric unit makes the comparison linear, which is the main argument for its use in fuel economy policy.

Typical Gas Mileage by Vehicle Class

These are realistic combined figures for a well maintained vehicle at 2026 efficiency levels, useful as a sanity check on a measurement and as a starting point before you have one.

VehicleReal world MPGL/100kmAnnual fuel at 12,000 miles
Compact car30 to 356.7 to 7.8$1,180 to $1,380
Midsize sedan26 to 307.8 to 9.0$1,380 to $1,590
Hybrid sedan45 to 554.3 to 5.2$750 to $920
Small SUV or crossover24 to 288.4 to 9.8$1,480 to $1,730
Minivan20 to 249.8 to 11.8$1,730 to $2,070
Half-ton pickup16 to 2011.8 to 14.7$2,070 to $2,590
Large SUV15 to 1912.4 to 15.7$2,180 to $2,760

Two caveats on the table. First, these are combined figures. A city-heavy week in a hybrid can beat the top of its range while a highway week in a pickup can approach the bottom. Second, the EPA ratings that feed dealer listings tend to run a little optimistic in real use, mostly because the test cycle is gentle on acceleration and does not include roof racks, hills or cold starts. A well maintained car driven normally usually lands slightly below the combined rating rather than above it.

Worked Example: One Month of Fill-Ups

A driver with a 2019 midsize sedan logs four tanks in a month and wants to know what the car actually returns and what it costs.

The first tank covers 318 miles on 11.2 gallons, which is 28.4 miles per gallon. The second covers 344 miles on 11.8 gallons, or 29.2. The third is a short tank of 210 miles on 8.1 gallons, giving 25.9, because it was all city driving in cold weather. The fourth covers 391 miles on 12.4 gallons for 31.5, mostly interstate.

The four tank average is 28.7 miles per gallon, and the total is 1,263 miles on 43.5 gallons. Enter 1,263 and 43.5 into the calculator and you get the same answer, along with the conversions: 8.2 liters per 100 kilometers, 12.2 kilometers per liter, and a cost of 12 cents per mile at $3.45 per gallon.

The spread between the best and worst tank is 5.6 miles per gallon, which is normal. It is also the reason a single tank measurement is a poor basis for a decision. The cold weather city tank came in 10 percent below the average, and if that had been the only tank measured, the driver would have concluded the car had a problem. Averaging four tanks shows a car performing exactly as its class should.

Now the annual view. At 28.7 miles per gallon, 12,000 miles a year and $3.45 per gallon, the fuel bill is about $1,443, or roughly $120 a month. If the driver wanted 35 miles per gallon, the target field shows an annual saving of about $272. That is the size of the prize for a newer, more efficient car in the same class, and it is worth holding against the monthly payment on one before treating the upgrade as a money saver.

What Actually Moves Your Gas Mileage

Fuel economy advice tends to mix measurable effects with folklore. These are the factors with a real number attached.

FactorEffectWhat to do
Highway speedDown 10 to 20 percent above 65 mphDrop 10 mph, the largest free lever most drivers have
Cold weather and short tripsDown 10 to 25 percentCombine errands, accept the seasonal drop
Roof rack or cargo boxDown 10 to 25 percent at speedTake it off between trips
Tire pressure below specDown 1 to 3 percentCheck monthly, use the door jamb figure
Aggressive acceleration and brakingDown 15 to 30 percent in city drivingAccelerate firmly, look further ahead, coast to stops
Excess idlingZero miles per gallon while it runsShut off for waits over a minute or two
Stuck-open thermostatDown 5 to 15 percent year roundReplace it, a cheap fix with a real payoff
Failing oxygen sensorDown 10 to 15 percentUsually sets a check engine light first
Fouled spark plugsDown 5 to 10 percentReplace at the interval in the manual

Taken together, the driving habits on that list are worth roughly 15 to 25 percent on a mixed week. The maintenance items are worth another 5 to 15 percent if any of them apply. That is why a sudden ten percent drop with no change in driving is a signal to look at the car rather than at your right foot: thermostat, oxygen sensor, tire pressure and a dragging brake cover most of the realistic causes.

Two pieces of common advice deserve a correction. Warming up the engine in the driveway does not help modern fuel injected cars and costs fuel at zero miles per gallon; driving gently warms them faster. And air conditioning is not the fuel disaster people remember from the 1980s. In a modern car at highway speed, the drag of open windows costs more than running the compressor, so use the air conditioning and keep the windows up.

Five Mistakes That Ruin a Mileage Measurement

A fuel economy figure is easy to get wrong, and most wrong numbers err in the flattering direction.

  1. Using the tank capacity instead of the fuel added. A 13 gallon tank that took 9 gallons at the pump burned 9 gallons, not 13. Using capacity inflates the mileage by a third and produces a figure no car in the class could achieve.
  2. Reading the odometer instead of the trip meter. Subtracting two large numbers by hand is where the arithmetic errors live. Reset the trip meter at each fill and the distance is already calculated for you when you next stop.
  3. Measuring one tank and treating it as the car's figure. A single tank carries the weather, the route and the pump shutoff point. Three tanks in a row is the minimum for a figure worth quoting, and a month is better.
  4. Changing driving habits mid-tank. If you drive gently for a tank to see what the car can do, you have measured a driving style rather than your fuel economy. It is fine as an experiment, as long as you know that is what it is.
  5. Comparing across unit systems without converting. A 40 MPG figure from a British review is about 33 MPG in US gallons, and a 6 liter per 100 kilometer figure from a German review is about 39 MPG. Check which gallon and which test cycle a number came from before it influences a purchase.

None of this needs laboratory precision to be useful. A mileage figure that is accurate to within five percent settles every practical question: what a commute costs, how far a tank goes, whether a problem has developed, and whether the more efficient car on the lot is actually worth its price. The measurement takes three fill-ups and a note on each receipt, and it turns fuel spending from something that happens to you into a number you control.

You Might Also Need

Tools that pair with fuel economy and vehicle cost planning: