Calculate vehicle fuel efficiency in miles per gallon (MPG) and liters per 100 km, trip gas expenses, and annual driving costs.
How to use the gas mileage calculator
To use the gas mileage calculator, enter the total distance driven between fuel fill-ups and specify your distance unit (Miles or Kilometers).
Enter the total amount of fuel consumed to refill your tank back to full, selecting your volume unit (US Gallons, Imperial Gallons, or Liters).
Optionally enter the current gas price per gallon or per liter. The calculator immediately computes your vehicle fuel economy in US MPG, Imperial MPG, and Liters per 100 km (L/100km), along with your total trip cost and cost per mile or kilometer driven.
You can also input your annual driving mileage to project total yearly fuel expenses and evaluate potential savings from upgrading to a higher-efficiency vehicle.
Monitoring vehicle fuel economy across consecutive fill-ups is one of the most reliable diagnostic indicators of vehicle mechanical health. A sudden, unexplained 10% to 15% drop in MPG often reveals dragging brake calipers, failing oxygen sensors, clogged air filters, or under-inflated tires before a dashboard check engine light illuminates.
Method and assumptions
Fuel economy calculations apply standard volumetric distance formulas: Miles Per Gallon (MPG) = Distance in Miles / Fuel in Gallons. For metric evaluations, fuel consumption is expressed as Liters per 100 Kilometers: L/100km = (Fuel in Liters / Distance in Kilometers) × 100.
The relationship between US MPG and L/100km is inverse: higher MPG values indicate greater fuel efficiency, whereas lower L/100km values indicate lower fuel consumption. The exact conversion factor is: L/100km = 235.214583 / US MPG.
The calculation assumes accurate odometer readings and consistent tank-to-tank fill procedures (filling the fuel tank until the pump automatic nozzle shutoff clicks off).
Trip cost is computed as: Total Cost = Fuel Volume × Price Per Unit. Cost per distance unit equals: Total Cost / Distance.
Vehicle fuel economy is governed by external physical forces: aerodynamic drag, tire rolling resistance, mechanical friction, and thermal engine efficiency. Aerodynamic resistance increases with the square of vehicle speed, meaning driving at 75 mph consumes roughly 20% to 25% more fuel per mile than cruising at 55 mph.
Vehicle maintenance plays a decisive role in sustaining peak fuel economy. Properly aligned wheels reduce rolling drag, while utilizing the engine oil viscosity recommended by the vehicle manufacturer reduces internal parasitic friction, preserving up to 1 to 2 MPG over the life of the vehicle.
Meaning of the inputs
Trip Distance: The distance recorded by your vehicle trip odometer between fuel fill-ups (Miles or Kilometers).
Fuel Consumed: The volume of fuel required to refill the tank back to full capacity (US Gallons, Imperial Gallons, or Liters).
Fuel Price: The retail pump price per gallon or liter charged at the filling station.
Trip Fuel Cost ($): The total expenditure required to complete the specified driving distance at current local pump prices, enabling accurate road trip budgeting.
Worked example
Suppose you reset your trip odometer to zero when filling your tank. On your next fill-up, your odometer reads 345 miles, and the gas pump dispenses 11.5 US gallons of gasoline at a price of $3.60 per gallon.
First, calculate your fuel economy: MPG = 345 miles / 11.5 gallons = 30.0 US MPG.
Next, convert this to metric fuel consumption: L/100km = 235.214 / 30.0 = 7.84 Liters per 100 km.
Calculate total trip cost: 11.5 gallons × $3.60 = $41.40. Your operating fuel cost per mile is $41.40 / 345 = $0.12 per mile (12 cents/mile).
Consider a commuter who drives 15,000 miles per year with gas priced at $3.80 per gallon. In a vehicle averaging 20 MPG, the driver consumes 750 gallons annually, costing $2,850. Upgrading to a vehicle that achieves 35 MPG consumes only 428.5 gallons, costing $1,628. The 15 MPG improvement saves $1,222 every year in operating fuel expenses alone.
How can I convert MPG to litres per 100 km?
You can convert US miles per gallon (MPG) to litres per 100 kilometres (L/100km) by dividing the international constant 235.214 by the US MPG figure, because higher MPG numbers represent greater fuel efficiency while lower L/100km numbers represent lower fuel consumption.
To convert in reverse from Litres per 100 km back to US MPG, divide 235.214 by your L/100km figure: US MPG = 235.214 / L/100km.
If you are converting from UK Imperial MPG (which uses the larger 4.546-liter imperial gallon rather than the 3.785-liter US gallon), use the constant 282.481: L/100km = 282.481 / Imperial MPG.
Understanding this inverse relationship is crucial when comparing international vehicle models, as small numerical drops in L/100km at the low end deliver massive actual fuel savings.
When comparing vehicles internationally, be cautious of British and Australian references to 'MPG'. The UK Imperial gallon is 20% larger than the US gallon (4.546 liters vs 3.785 liters). Consequently, a car advertised in the UK as achieving 40 MPG achieves only 33.3 US MPG in North America. Our calculator provides explicit conversions across all three standards to eliminate confusion.
Related calculators
Optimize your vehicle and travel expenses with related tools:
Log business travel and IRS standard deduction tax credits using the Mileage Calculator.
Estimate total fuel budgets for road trips with our Fuel Cost Calculator.
Calculate vehicle financing installment payments with the Auto Loan Calculator.
Compare monthly leasing vs buying costs using our Auto Lease Calculator.