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

Is this calculator free to use?

Yes. The calculator runs in your browser, does not require an account and can be printed or copied for your records.

Can I use this for official tax, loan or compliance filing?

Use it as an estimate. For official filing, financing or enforcement decisions, verify the final numbers with your lender, tax authority, manufacturer rating label or compliance professional.

Why are my real-world results different?

Real vehicles vary with load, speed, terrain, temperature, tire condition, maintenance, driver behavior and measurement quality.

Does the calculator save my units?

Yes. Unit and currency selections that are marked as preferences are stored in localStorage on your device so the next visit starts with your preferred setting.

Can I share the result?

Yes. Use the Share button if your browser supports native sharing, or copy the permalink and result summary.

Does it work on mobile?

Yes. The layout stacks on small screens, keeps labels visible and recalculates as you type.

How accurate are the formulas?

The formulas are standard industry math for estimates. Accuracy depends on the input values and whether the assumptions match your vehicle and jurisdiction.

When was this page updated?

This page was last updated on 2026-05-01 for 2026 planning assumptions and source links.

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.