Auto & Vehicle Calculator 2026

Gas Mileage Calculator: Calculate MPG, L/100 km and Trip Fuel Cost

Calculate real-world fuel economy from odometer readings, trip distance and fuel used. Drivers, fleet managers and buyers can compare two vehicles side by side and see MPG, km/L, L/100 km and fuel cost.

The Calculator

Saved for your next visit.

Vehicle A

Enter the odometer reading before the trip or fill-up. Leave blank if using trip distance.
Enter the odometer reading after the trip or fill-up. It must be higher than the start reading.
Enter known trip distance if you did not record start and end odometer readings.
Enter total fuel used for the trip, using gallons or liters based on the selected unit system.
Enter price per gallon in US/Imperial modes or price per liter in metric mode.

Vehicle B comparison

Enter the odometer reading before the trip or fill-up. Leave blank if using trip distance.
Enter the odometer reading after the trip or fill-up. It must be higher than the start reading.
Enter known trip distance if you did not record start and end odometer readings.
Enter total fuel used for the trip, using gallons or liters based on the selected unit system.
Enter price per gallon in US/Imperial modes or price per liter in metric mode.
Quick answer: To calculate MPG, divide miles driven by gallons used. For metric fuel economy, divide liters by kilometers and multiply by 100 to get L/100 km, or divide kilometers by liters to get km/L. Add fuel price to estimate cost per mile and total trip cost.

How is this calculated?

MPG (US) = miles driven / US gallons used
MPG (Imperial) = miles driven / Imperial gallons used
km/L = kilometers driven / liters used
L/100 km = (liters used / kilometers driven) * 100
Cost per mile = fuel price per gallon / MPG

Example: a car that travels 312 miles on 11.2 gallons gets 27.9 MPG. At $3.60 per gallon, fuel costs about $0.13 per mile and the fill-up costs $40.32.

How do I use this calculator?

  1. Choose the unit or currency setting that matches your vehicle data.
  2. Enter the required vehicle, route, fuel, weight or loan values in the calculator form.
  3. Review inline warnings and correct any missing or negative inputs.
  4. Read the live result card for the primary answer and supporting totals.
  5. Use the worked example if you want to check the formula with sample values.
  6. Copy, share or print the results for comparison or record keeping.

What do the terms mean?

MPG
Miles per gallon, the common US fuel economy measure.
Imperial gallon
A UK gallon equal to about 1.20095 US gallons.
L/100 km
Liters consumed to drive 100 kilometers; lower is better.
km/L
Kilometers traveled per liter; higher is better.
Cost per mile
Fuel price divided by MPG, before maintenance and depreciation.

What are real-world examples?

ScenarioInputsResultNotes
Compact sedan312 mi, 11.2 gal27.9 MPG$0.13/mi at $3.60
SUV285 mi, 14.8 gal19.3 MPG$0.19/mi at $3.60
Hybrid510 mi, 10.5 gal48.6 MPG$0.07/mi at $3.60
Metric hatchback620 km, 38 L6.13 L/100 km16.3 km/L

What tips improve accuracy?

Did you know? EPA estimates commonly use 8.89 kg CO2 per gallon of gasoline and 10.18 kg CO2 per gallon of diesel for tailpipe carbon dioxide calculations.

Related calculators

Frequently asked questions

GAS Mileage/MPG

Gas mileage, or MPG, tells how many miles a vehicle travels on one gallon of fuel. A higher MPG means the vehicle uses less fuel for the same distance. Customers should compare city, highway, and combined MPG because driving conditions matter. A vehicle that looks efficient on the highway may use much more fuel in city traffic. Maintenance, tires, load, speed, and driving habits can change the real number from the official rating.

How do you calculate your mpg

To calculate MPG, divide miles driven by gallons used. The easiest method is to fill the tank, reset the trip meter, drive, then fill again. Use the gallons added at the second fill, not the tank size. If you drove 240 miles and added 10 gallons, your MPG is 24. For better accuracy, use the same pump style, fill to the same level, and average several tanks.

How to figure out gas mileage

Gas mileage is figured by comparing distance traveled with fuel used. Start with a full tank, record the odometer or reset the trip meter, drive normally, then refill. Divide the miles driven by the gallons needed to refill. Do not rely only on the dashboard display, because it can be optimistic. Keeping a small fuel log helps spot problems like low tire pressure, dragging brakes, bad oxygen sensors, or poor driving habits.

How many minutes is 10 miles driving

The time for 10 miles depends on average speed, not just distance. At 60 mph, 10 miles takes about 10 minutes. At 30 mph, it takes about 20 minutes. In city traffic with signals, it may take much longer. Use the formula time equals distance divided by speed. For customer planning, I always add a buffer for traffic, parking, weather, roadwork, and school zones.

Is 23 mpg good

Twenty-three MPG can be good, average, or poor depending on the vehicle type. For a full-size truck, large SUV, or older V8 car, 23 MPG is usually good. For a compact car or hybrid, it may be low. Customers should compare against similar vehicles, not all vehicles. Also check how much city driving they do, because stop-and-go use can make a normally efficient vehicle return lower MPG.

How to measure mpg

Measure MPG with the fill-up method. Fill the tank fully, reset the trip meter, drive your normal route, then refill fully. Divide miles traveled by gallons added. Repeat this over three to five tanks and average the results. Measuring only one short trip can mislead you because cold starts, traffic, hills, tire pressure, and idling affect fuel use. This method gives a practical real-world number for your own vehicle.

Sources and references

Last updated 2026-05-01. Reviewed by BulkCalculator Automotive Desk using manufacturer-rating, EPA, NHTSA, FMCSA, IRS and IFTA source checks where applicable.