EPA Gas Mileage Calculator: How to Estimate MPG
- Fuel consumption
- L/100km
- Result
- Distance
- 300 miles
- You entered
- Fuel used
- 12 gallons
- You entered
The EPA gas mileage calculator estimates a vehicle’s fuel economy in miles per gallon (MPG) based on the distance driven and the amount of fuel used. You enter the miles traveled and gallons consumed (or liters and kilometers), and the calculator returns your average MPG and fuel consumption in liters per 100 km. This gives you a real-world figure to compare against the official EPA ratings on the window sticker.
Formula
The core formula is simple: MPG = distance (miles) ÷ fuel used (gallons). For metric users, fuel consumption is L/100km = (fuel in liters ÷ distance in kilometers) × 100. The calculator above uses the first formula and converts the result to L/100km for convenience.
Variables:
- d – distance driven, in miles (or kilometers if you convert first)
- g – fuel used, in US gallons (or liters if you convert first)
- MPG – miles per gallon, the standard US fuel economy measure
- L/100km – liters per 100 kilometers, the standard metric measure
Note: US gallons differ from imperial gallons (1 US gal = 0.8327 imperial gal). Always use the same gallon type for both distance and fuel.
Worked Example
Using the default values: you drive 300 miles and use 12 gallons of fuel.
- Divide distance by fuel: 300 ÷ 12 = 25.0 MPG
- Convert to L/100km: (12 × 3.78541) ÷ (300 × 1.60934) × 100 = 45.4249 ÷ 482.802 × 100 = 9.4 L/100km
The calculator shows 25.0 MPG and 9.4 L/100km. This matches the formula exactly.
Why the EPA Rating Differs From Your Calculation
The EPA’s official fuel economy estimates come from standardized lab tests, not real driving. The agency uses a dynamometer to simulate city, highway, and combined driving cycles, then applies adjustment factors to account for aggressive driving, air conditioning, cold weather, and other real-world conditions. Your calculated MPG will almost always be lower than the window sticker, especially if you drive mostly in stop-and-go traffic or at high speeds.
The EPA also publishes a range of expected MPG for each vehicle (e.g., “23–31 mpg�) to reflect variability. Your own number depends on:
- Driving style (hard acceleration lowers MPG)
- Tire pressure and alignment
- Load weight and roof racks
- Fuel quality and ethanol content
- Weather and terrain
If your calculated MPG is far outside the EPA range, a mechanical issue might be the cause.
How to Measure Fuel Use Accurately
The most reliable method is the “full tank to full tank� approach:
- Fill the tank completely and reset the trip odometer to zero.
- Drive normally until the tank is at least half empty (more is better).
- Fill the tank again completely. Note the gallons pumped and the trip distance.
- Enter those two numbers into the calculator.
Do this over several fill-ups and average the results to smooth out variations from a single trip. Avoid relying on the dashboard’s instant MPG display, which is often optimistic by 1–2 mpg.
Common Mistakes and Unit Mix-Ups
- Using imperial gallons instead of US gallons: If you’re in the UK or Canada, your pump might dispense liters – convert to US gallons (1 US gal = 3.785 liters) before entering.
- Mixing miles and kilometers: Always convert to one system. 1 mile = 1.609 km.
- Not resetting the trip odometer: This gives you the total distance, not the distance for the fuel you just used.
- Rounding too early: Keep at least one decimal place in intermediate steps for accuracy.
Also, a single short trip (like 50 miles) can give a skewed result because the engine runs rich when cold. The longer the distance, the more representative the number.
How to Use the Result
Your calculated MPG helps you:
- Compare your actual efficiency to the EPA rating – a gap of more than 15–20% may signal a problem.
- Estimate fuel costs for a trip: divide the trip distance by your MPG to get gallons needed, then multiply by fuel price.
- Track the effect of maintenance (e.g., new air filter, tire inflation) on efficiency.
For a quick cost estimate, the calculator’s MPG output is the key number. For example, a 600-mile trip at 25 MPG uses 24 gallons; at $3.50/gal that’s $84.
Limits of the Formula
This calculator only works with the data you provide. It cannot predict future MPG, account for driving conditions, or diagnose mechanical issues. The formula assumes all fuel is burned for propulsion – it ignores energy lost to idling, which can be significant in city driving. For a more precise estimate, use the EPA’s official combined rating as a baseline and adjust for your habits.
Frequently Asked Questions
How do I convert L/100km to MPG?
Divide 235.215 by the L/100km value. For example, 8 L/100km = 235.215 ÷ 8 = 29.4 MPG. The reverse: divide 235.215 by MPG to get L/100km.
Why is my calculated MPG lower than the EPA sticker?
The EPA tests use a fixed driving cycle with moderate acceleration and speeds, then apply a 10–20% downward adjustment. Real driving often involves more idling, faster speeds, and hills, which reduce efficiency. A difference of 10–20% is normal.
Can I use this calculator for a hybrid or electric vehicle?
For hybrids, yes – the same formula works for gasoline use. For electric vehicles, the equivalent is miles per kWh, not MPG. The EPA uses MPGe (miles per gallon equivalent) where 1 gallon of gas equals 33.7 kWh, but that’s a different calculation.
Does the calculator work with diesel fuel?
Yes. Diesel has about 10–15% more energy per gallon than gasoline, so a diesel vehicle will show higher MPG for the same driving. The formula is fuel-agnostic.
How many fill-ups should I average?
At least three, ideally five or more, to cover different driving conditions (highway vs. city, hot vs. cold). The more data points, the more reliable your average MPG.
Related
Formula used
in d | Distance | miles | 300 | 0 in g | Fuel used | gallons | 12 | 0 out mpg | Fuel economy | mpg | d / g | 1 out l100 | Fuel consumption | L/100km | (g * 3.78541) / (d * 1.60934) * 100 | 1
Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work
Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.