Skip to content
Embed

Paste this on your site. The attribution link is required and is what makes embedding free.

Gas Mileage Calculator — Free Online Fuel Economy Tool

Determine your vehicle's real-world fuel economy by entering the distance driven and gallons used.

km
L
$

Gas Mileage Results

Kilometers Per Liter25.0 km/L
Miles Per Gallon (MPG)58.8 MPG
Liters Per 100 km4.0 L/100km
Cost Per Kilometer$0.14
Cost Per Mile$0.23

Gas Mileage Reference Table

Vehicle Type Avg MPG km/L L/100km Cost/Mile
Compact Sedan 35 MPG 14.9 km/L 6.7 L/100km $0.10
Midsize Sedan 30 MPG 12.8 km/L 7.8 L/100km $0.12
Compact SUV 28 MPG 11.9 km/L 8.4 L/100km $0.13
Full-Size SUV 20 MPG 8.5 km/L 11.8 L/100km $0.18
Pickup Truck 18 MPG 7.7 km/L 13.1 L/100km $0.19
Hybrid Sedan 50 MPG 21.3 km/L 4.7 L/100km $0.07

Related Calculators

About this calculator

Gas Mileage Formula

MPG = Distance Driven (miles) / Gallons Used
km/L = MPG x 0.425144
L/100km = 235.215 / MPG
Cost Per Mile = Gas Price / MPG

Variables Explained

  • Distance Driven: The total miles traveled between two complete fill-ups. Accuracy depends on using a full-tank-to-full-tank measurement method. Using your trip odometer eliminates errors from estimating partial trips.
  • Gallons Used: The total volume of fuel consumed, measured by how much fuel is needed to fill the tank from the point where you started tracking. This must be from a complete fill-up for accuracy.
  • MPG (Miles Per Gallon): The primary fuel economy metric in the United States. Higher values indicate better efficiency. The formula divides distance by fuel to show how far you can travel on one gallon.
  • km/L (Kilometers Per Liter): The metric equivalent of MPG, commonly used in parts of Asia and South America. The conversion factor from MPG is 0.425144.
  • L/100km (Liters Per 100 Kilometers): The standard fuel consumption metric in Europe, Canada, and Australia. Unlike MPG and km/L, lower values are better because this measures fuel used rather than distance achieved.

Step-by-Step Example

Suppose you filled your tank, drove 420 miles, and then refilled with 15.5 gallons at $3.55 per gallon:

  1. Calculate MPG: 420 / 15.5 = 27.1 MPG
  2. Convert to km/L: 27.1 x 0.425144 = 11.5 km/L
  3. Convert to L/100km: 235.215 / 27.1 = 8.7 L/100km
  4. Calculate cost per mile: $3.55 / 27.1 = $0.131 per mile

Your vehicle achieved 27.1 MPG on this tank, costing you about $0.13 per mile in fuel. If the EPA rating for your car is 30 MPG combined, you are running about 10% below the estimate, which is normal for real-world driving.

Sources

Disclaimer: This calculator is for informational and educational purposes only. Results are estimates and may not reflect exact values.

Last updated: November 3, 2026