Calculate your vehicle's fuel economy in MPG or km/L, and track cost per distance.
Fuel Economy
25.00 MPG
9.41 L/100km
Litres per 100km9.41
Total Fuel Cost—
Enter miles driven and gallons consumed. MPG = miles / gallons. Lower L/100km is better fuel economy.
Share
What is the Gas Mileage Calculator?
A gas mileage calculator is a fuel-efficiency tool that divides distance travelled by fuel consumed to yield economy metrics. It works in both US (miles and gallons, output in MPG) and metric (kilometres and litres, output in km/L or L/100km) units. The calculator also converts between all three formats and optionally calculates cost per distance when you input fuel price.
How it works
The calculator takes distance driven and fuel used, then applies one of two formulas depending on your unit system. US mode divides miles by gallons to get MPG; metric mode divides km by litres to get km/L. Both are then cross-converted: MPG translates to km/L by scaling distance and fuel by their conversion factors, and L/100km (a common European metric) is derived by inverting the relationship. If you supply fuel price, cost per distance is calculated by multiplying fuel consumed by price per unit, then dividing by distance.
MPG and km/L directly measure distance per unit of fuel. L/100km inverts this perspective, showing how much fuel is needed to travel 100 km (lower is better). Cost-per-distance metrics multiply fuel volume by unit price and divide by total distance, yielding running cost per mile or kilometre.
Slightly worse fuel price but same MPG; total cost scales with fuel price.
How to use the Gas Mileage Calculator
Choose your unit system: US (miles and gallons) or Metric (kilometres and litres).
Enter the total distance you drove.
Enter how much fuel you consumed (refill-to-refill or tank gauge).
Optionally, enter the price per gallon or litre to calculate cost metrics.
Read your fuel economy in MPG, km/L, or L/100km, plus cost-per-distance if applicable.
Repeat over multiple fill-ups to track fuel efficiency trends over time.
Benefits
Instantly reveal whether your car's fuel economy matches manufacturer claims.
Compare efficiency across US and metric systems with automatic conversion.
Track cost per mile or kilometre to budget driving expenses.
Identify sudden drops in efficiency that may signal maintenance issues.
Monitor how driving habits, conditions, or vehicle load affect MPG.
No sign-up or app installation required—works on any device in your browser.
Tips & common mistakes
Common mistakes
Mixing units (e.g. miles driven but litres consumed) without conversion—use the unit-system toggle to stay consistent.
Calculating MPG from highway fuel-economy window stickers instead of actual tank consumption—real-world MPG often differs.
Forgetting to reset the odometer or fuel level before a fill-up cycle, leading to inaccurate distance or consumption data.
Assuming fuel price is constant; petrol prices vary by location and time, affecting cost-per-distance accuracy.
Tips
Log fill-ups and odometer readings in a spreadsheet to track efficiency trends and spot gradual engine degradation.
Drive at steady speeds (65–70 mph on highways) and avoid rapid acceleration to maximise fuel economy.
Empty cargo racks and remove excess weight from your vehicle; every 100 pounds decreases MPG by ~1–2%.
Ensure tyres are inflated to the manufacturer's recommended PSI; underinflation increases fuel consumption.
Frequently asked questions
Why is my real-world MPG lower than the EPA sticker on my car?
EPA estimates are measured in controlled lab conditions (level road, steady speed, new engine). Real-world driving includes idling, acceleration, cargo, and weather, all of which reduce efficiency. Expect 15–25% worse fuel economy in daily driving than EPA ratings.
Is L/100km better than MPG for comparing fuel economy?
Both are valid; L/100km is common in Europe and Australia and has an intuitive advantage: lower numbers always mean better economy. MPG is standard in the US. The calculator converts both, so use whichever you prefer.
What's a good MPG for my vehicle?
It depends on vehicle type: compact cars often achieve 28–35 MPG, sedans 20–30 MPG, SUVs 15–25 MPG, and trucks 15–20 MPG. Compare your result to your manufacturer's estimate; if consistently worse, check tyre pressure, alignment, and engine maintenance.
Should I include idling or engine start time in my distance calculation?
For purest fuel-economy measurement, use distance from odometer at fill-up; the odometer doesn't measure idling or parking. Idling time is already factored into real-world MPG if you're measuring fill-to-fill consumption on actual roads.
How do I calculate average MPG across multiple fill-ups?
Sum all miles driven across trips, sum all gallons consumed, then divide miles by gallons. Do not average individual MPG values; the weighted average accounts for trips of different lengths or fuel amounts.
Does cold weather really affect fuel economy?
Yes. Cold engines run inefficiently, and cold oil is thicker, increasing friction. Expect 10–15% worse fuel economy in winter. Warming up your car before driving and keeping it in a garage helps slightly.