Gas Mileage Calculator

Your dashboard MPG is an estimate, and it is often optimistic. The only number you can trust is the one from your own fill-ups: miles driven divided by gallons used. This free Gas Mileage Calculator works out your real miles per gallon from a single fill-up, converts it to L/100 km and km/L, and shows what each mile costs in fuel, so you can track your car’s true efficiency and spot when it starts to slip.

Fill-Up Details

Gas Mileage (MPG)
Fuel Consumption (L/100 km)
Fuel Economy (km/L)
Cost Per Mile
Total Fuel Cost
Tip: measure over several fill-ups and average the results: one tank can be thrown off by a pump that clicks off early or a trip meter that was not reset.
Gallons UsedMPGL/100 km

MPG figures use the miles you entered above.

Powered by Techraxy

Creator & Reviewer

Faiq Ur Rahman

Founder & CEO, Techraxy

Faiq Ur Rahman is a web designer, digital product developer, and Founder of Techraxy, a growing platform of online calculators and utility tools. He specializes in building structured, user-friendly tools focused on finance, health, conversions, productivity, and everyday problem-solving. He is passionate about developing practical digital solutions that make complex tasks simpler for users worldwide.

Share:

Rate this Tool

User Ratings:

0
0 out of 5 stars (based on 0 reviews)
Excellent
Very good
Average
Poor
Terrible

ADVERTISEMENT

ADVERTISEMENT

What is a Gas Mileage Calculator?

A Gas Mileage Calculator measures your vehicle’s real fuel economy in miles per gallon (MPG) from odometer and pump data. You enter the miles driven since your last fill-up, the gallons it took to refill the tank, and the price of gas per gallon, and it returns your MPG, the same figure in L/100 km and km/L, your cost per mile, and the total fuel cost. Once you know your MPG, use the Gas Calculator to price any trip, or the metric calculators for the same measurement in kilometers per liter or liters per 100 kilometers.

How to Use the Gas Mileage Calculator

  1. Fill the tank to the first automatic shutoff and note the odometer reading, or reset the trip meter.
  2. Drive normally until the next fill-up.
  3. Fill the tank to the same shutoff again and note the gallons pumped and the miles driven.
  4. Enter the miles driven (for example, 300 miles).
  5. Enter the gallons used (for example, 10 gallons) and the gas price per gallon (for example, $3.50).
  6. Click Calculate to see your MPG, L/100 km, km/L, cost per mile, and total fuel cost, then check the comparison tab for the MPG at different fill-up sizes.

Formula

Gas mileage is one division: the distance you covered divided by the fuel it took.

MPG = Miles driven ÷ Gallons used

L/100 km = 235.215 ÷ MPG

km/L = MPG × 0.425144

Cost per mile = Gas price per gallon ÷ MPG

Total fuel cost = Gallons used × Gas price per gallon

The conversion figures come from the exact definitions: 1 US gallon = 3.78541 litres and 1 mile = 1.60934 km, so 100 × 3.78541 ÷ 1.60934 = 235.215.

Worked Example

You drove 300 miles, and it took 10 gallons to refill the tank. Gas costs $3.50 per gallon.

Step 1: MPG. 300 ÷ 10 = 30.00 MPG.

Step 2: L/100 km. 235.215 ÷ 30 = 7.84 L/100 km.

Step 3: km/L. 30 × 0.425144 = 12.75 km/L.

Step 4: Cost per mile. $3.50 ÷ 30 = $0.12 per mile.

Step 5: Total fuel cost. 10 × $3.50 = $35.00 for the fill-up.

Benefits

  • Know your true efficiency. A fill-up calculation beats the dashboard estimate every time.
  • Spot problems early. A falling MPG can point to low tyre pressure, a clogged air filter, or a dragging brake before anything else does.
  • Compare cars fairly. Real MPG from real driving is the only fair comparison between two vehicles.
  • Budget by the mile. Cost per mile turns fuel into a number you can compare with flying, the train, or a rideshare.
  • Convert units instantly. See the same result in MPG, L/100 km, and km/L without a second calculator.

FAQs

Why is my dashboard MPG different from the fill-up figure?

The dashboard readout is an estimate calculated by the car’s computer, and it is often optimistic. The fill-up method measures actual fuel burned over actual miles, so it is the more accurate number. A small gap is normal; a large one usually means the dashboard figure is flattering the car.

How many fill-ups should I average?

Measure over two or three tanks and average the results. One tank can be thrown off by a pump that clicks off early, a partial fill, or a trip meter that was not reset. Averaging smooths out those small errors.

Does this calculator use US or UK gallons?

US gallons (3.785 litres each). A UK gallon is larger (4.546 litres), so do not mix the two: 30.00 US MPG is 36.03 UK MPG, while the L/100 km figure is the same either way.

Does it work for hybrids and diesel cars?

Yes. The method is the same for any gasoline or diesel vehicle, including hybrids: miles driven divided by gallons used. Fully electric vehicles are different: their efficiency is measured in miles per kilowatt-hour, which this tool does not cover.

What counts as good gas mileage?

It depends on the vehicle. A small hatchback at 35 MPG and a full-size truck at 18 MPG can both be normal for their class. Compare your result with the EPA combined rating for your model on fueleconomy.gov, and watch for changes over time rather than chasing a single number.

Disclaimer

This calculator provides estimates based on the figures you enter. Real fuel economy varies with driving style, traffic, temperature, load, tyre pressure, and fuel quality. Measure over several fill-ups for the most reliable result. It does not cover electric vehicles, whose efficiency is measured in miles per kilowatt-hour.

ADVERTISEMENT

ADVERTISEMENT