Gas Mileage Calculator
Calculate your vehicle's fuel efficiency in MPG, L/100km, and more. Track fuel costs and compare efficiency.
Trip Details
Fuel Efficiency
25.0 MPG
9.4 L/100km | 10.6 km/L
Efficiency Guide
30+ MPG: Excellent efficiency
25-30 MPG: Good efficiency
20-25 MPG: Average efficiency
Under 20 MPG: Below average
What Is a Gas Mileage Calculator?
A gas mileage calculator is a tool that converts your trip distance and fuel consumed into concrete fuel efficiency metrics — miles per gallon (MPG), liters per 100 kilometers (L/100km), and kilometers per liter (km/L) — alongside the fuel cost per mile, cost per kilometer, and your total trip fuel bill. Whether you drive a compact sedan, a pickup truck, or a hybrid, knowing your real-world fuel economy helps you budget accurately, spot mechanical problems early, and make smarter decisions when comparing vehicles.
Most drivers rely on the EPA sticker figure on the window of their car, but real-world MPG routinely differs from the laboratory estimate. Factors like highway versus city driving, cargo weight, tire pressure, air conditioning use, and driving style all shift actual fuel economy by 10–30%. The only way to know your true MPG is to measure it from your own fill-ups — and that is exactly what this MPG calculator does.
This calculator supports both US customary units (miles and gallons) and metric units (kilometers and liters), so it is equally useful for drivers in North America and internationally. You can enter a fuel price per gallon or per liter to instantly see your driving cost in financial terms. The efficiency rating feature — Excellent, Good, Average, or Below Average — gives you an immediate benchmark against typical passenger vehicle standards so you know whether your fuel economy is competitive or whether it is time to investigate potential causes of poor mileage.
Whether you are tracking monthly fuel expenses, comparing the fuel cost of different vehicles, preparing for a road trip budget, or simply satisfying curiosity about your car's efficiency, the gas mileage calculator gives you reliable, actionable numbers in seconds.
How the Gas Mileage Calculator Works
The calculator accepts three inputs — distance traveled, fuel used, and fuel price — plus your choice of unit system. From those values it derives six outputs: MPG, L/100km, km/L, cost per mile, cost per kilometer, and total fuel cost.
In US mode the primary calculation is miles per gallon: divide the miles driven by the gallons consumed. The metric conversions are derived from that MPG value using fixed conversion constants. In metric mode the primary calculation is kilometers per liter: divide the kilometers driven by the liters consumed. The L/100km value is the inverse relationship — fuel volume per distance rather than distance per fuel volume — and MPG is derived by multiplying km/L by the conversion factor.
Cost calculations work the same way in both modes: divide the fuel price by your efficiency ratio to get cost per unit distance, then multiply through to cost per mile and cost per kilometer. Total fuel cost is simply the number of units of fuel multiplied by the price per unit.
Gas Mileage Formulas
Where:
- Distance= Total distance traveled in the trip (miles or km)
- Fuel= Total fuel consumed during the trip (gallons or liters)
- Fuel Price= Price per unit of fuel ($/gallon or $/liter)
- MPG= Miles per gallon — the US standard fuel efficiency metric
- L/100km= Liters per 100 kilometers — the metric standard; lower is more efficient
- km/L= Kilometers per liter — an alternative metric measure; higher is more efficient
- 235.215= Conversion constant: the exact factor relating MPG to L/100km
- 0.425144= Conversion constant: multiplies MPG to get km/L
- 2.35215= Conversion constant: multiplies km/L to get MPG
Understanding Fuel Efficiency Metrics
Three different metrics describe fuel efficiency around the world, and each has a different scale and direction. Understanding all three helps you compare vehicles and fuel economy reports from different countries.
Miles Per Gallon (MPG)
MPG is the standard fuel efficiency measure in the United States. Higher MPG means better efficiency — a car that travels more miles on each gallon of fuel. The average new passenger car in the US achieves roughly 28–32 MPG combined, while fuel-efficient hybrids can exceed 50 MPG and large trucks or SUVs may fall below 20 MPG. The EPA tests vehicles under controlled laboratory conditions and publishes combined city/highway figures; real-world driving commonly produces results 5–15% below the EPA estimate depending on driving style and conditions.
Liters per 100 Kilometers (L/100km)
L/100km is the standard efficiency measure in Canada, Europe, Australia, and most of the rest of the world. It represents fuel consumption rather than efficiency, so lower is better. A vehicle consuming 6 L/100km is more efficient than one consuming 9 L/100km. The inverse relationship between L/100km and MPG means a small improvement in a high-consumption vehicle (say, from 15 L/100km to 12 L/100km) saves far more fuel per kilometer than the same absolute improvement in an already-efficient vehicle. This is an important insight when making fleet or replacement decisions.
Kilometers per Liter (km/L)
km/L is used primarily in Japan, India, and some other Asian markets. Like MPG, higher is better. A vehicle achieving 15 km/L is equivalent to approximately 35.3 MPG or 6.7 L/100km. These three measures are mathematically interconvertible using the fixed constants 235.215 (for MPG-to-L/100km) and 0.425144 (for MPG-to-km/L), and this calculator performs all those conversions automatically so you can compare vehicles regardless of which standard was used to rate them.
Efficiency Rating Benchmarks
This calculator assigns a qualitative efficiency rating based on MPG:
| MPG Range | L/100km Equivalent | Rating | Typical Vehicles |
|---|---|---|---|
| 30+ MPG | Below 7.8 L/100km | Excellent | Hybrids, small efficient sedans |
| 25–30 MPG | 7.8–9.4 L/100km | Good | Mid-size sedans, compact SUVs |
| 20–25 MPG | 9.4–11.8 L/100km | Average | Mid-size SUVs, minivans |
| Under 20 MPG | Above 11.8 L/100km | Below Average | Full-size trucks, large SUVs |
Factors That Affect Real-World Fuel Economy
Your real-world MPG can differ significantly from the EPA sticker estimate because laboratory test conditions do not fully replicate everyday driving. Understanding the major factors allows you to improve your fuel efficiency and get more accurate readings from this gas mileage calculator.
Driving Speed and Style
Aerodynamic drag increases with the square of vehicle speed, meaning fuel consumption rises sharply above 60 mph. Driving at 70 mph instead of 55 mph can reduce fuel economy by 15–20%. Aggressive acceleration and hard braking waste the kinetic energy you spent fuel building — smooth, anticipatory driving is consistently the single most effective behavioral change for improving MPG. Hypermilers — drivers who optimize every aspect of their technique — regularly achieve 20–30% better real-world MPG than average drivers in the same vehicle.
Vehicle Load and Configuration
Every 100 pounds of additional cargo reduces MPG by approximately 1–2% in a typical passenger car. Roof racks and cargo carriers dramatically increase aerodynamic drag even when empty — a roof box can reduce highway MPG by 5–25% depending on its size and shape. Remove racks and carriers when they are not in use.
Tire Pressure
Under-inflated tires increase rolling resistance and can reduce fuel economy by 0.2–0.3% for each pound per square inch (PSI) below the recommended level. A tire that is 10 PSI low can reduce MPG by 2–3%. Checking and maintaining tire pressure monthly is one of the simplest and highest-return maintenance tasks for fuel efficiency.
Air Conditioning and Electrical Loads
Running the air conditioner can reduce fuel economy by 5–25%, with the largest impact in stop-and-go city traffic where the engine is working hardest. Other electrical loads — heated seats, rear defoggers, high-powered audio systems — also extract energy that ultimately comes from the fuel tank, though their impact is smaller than A/C.
City vs. Highway Driving Mix
City driving involves frequent stops that dissipate kinetic energy as heat in the brakes, then require fuel to accelerate again. Highway driving maintains a relatively constant speed with minimal braking. Most conventional vehicles achieve 20–35% better fuel economy on the highway than in the city. Hybrids narrow this gap substantially through regenerative braking that recaptures some of the energy lost during deceleration.
Temperature and Fuel Type
Cold temperatures reduce fuel economy significantly — the EPA notes that a conventional car's MPG can drop by 15–24% in 20°F weather versus 77°F conditions. Winter-blend gasoline, used by refiners to reduce evaporative emissions in cold weather, contains slightly less energy per gallon than summer-blend, contributing another 1–2% reduction. Ethanol-blended fuels (like E85) contain less energy per gallon than pure gasoline, which also reduces MPG.
How to Measure Your Gas Mileage Accurately
Getting accurate inputs for this fuel efficiency calculator requires a methodical approach at the pump. The standard method takes only two fill-ups to produce a reliable MPG reading.
The Fill-to-Full Method
Fill your tank completely at the start of a measurement period. Record the odometer reading exactly. Drive normally for at least 100 miles — the more miles you cover, the more representative your result will be, since short trips introduce proportionally larger measurement errors. When ready to measure, return to the same pump at the same station and fill completely again. Record the gallons (or liters) dispensed and the new odometer reading. Divide the miles driven by the gallons used: that is your real-world MPG for that tank.
Using the same pump and nozzle each time minimizes variability introduced by how gas flows into a full tank. Topping off with extra squirts after the pump clicks off introduces measurement noise and is also harmful to the charcoal canister in your evaporative emissions system — stop at the first click.
Long-Term Tracking
A single tank measurement can be misleading if conditions were unusual — a mountain drive, an unusually cold week, or a full car for a road trip will all shift your reading. Tracking MPG over five to ten tanks using an app or a simple spreadsheet gives you a rolling average that accurately reflects your real-world fuel economy. A sudden drop of 10–15% that persists across multiple tanks is a reliable early indicator of mechanical issues such as failing oxygen sensors, clogged fuel injectors, or underinflated tires.
Using This Calculator for Ongoing Tracking
Enter each fill-up as a separate calculation: the miles since your last fill-up as "Distance," the gallons just dispensed as "Fuel Used," and the current gas price as "Fuel Price." Save your results to spot trends. You can also calculate a trip's expected fuel cost before departure: enter the planned trip distance as "Distance," divide it by your known MPG to estimate gallons needed, and enter your local fuel price to see the total cost before you leave.
Fuel Cost Planning and Road Trip Budgeting
Beyond measuring past fuel economy, this fuel cost calculator is a powerful forward-looking planning tool. Knowing your MPG, you can project fuel costs for any planned trip by estimating fuel consumed from the distance and your efficiency, then pricing that at current pump rates.
For example, if you know your car averages 28 MPG and you are planning a 560-mile highway drive, you can estimate consuming 20 gallons. At $3.50 per gallon that is $70 in fuel for the trip — useful when comparing the cost of driving versus flying or taking the train. You can also compare the fuel cost of two different vehicles you are considering for a purchase: input the same trip parameters with each vehicle's MPG to see the annual fuel savings from choosing the more efficient option.
Long road trips spanning multiple fuel price zones can be planned by averaging expected regional gas prices. Federal and state highway websites, as well as GasBuddy and the AAA Fuel Gauge Report, publish current average prices by state and metro area, giving you the data to build a realistic trip fuel budget.
For fleet operators, the cost-per-mile output is especially useful. Multiply it by annual mileage to project total annual fuel expense per vehicle, or multiply it by the number of vehicles in your fleet to see aggregate fuel spending. Comparing cost-per-mile across vehicles in a mixed fleet quickly identifies the highest fuel consumers and prioritizes replacement decisions.
Worked Examples
Standard US Road Trip (Default Inputs)
Problem:
You drove 300 miles on a highway trip and used 12 gallons of fuel. Gas cost $3.50 per gallon. What is your fuel efficiency and trip cost?
Solution Steps:
- 1MPG = Distance ÷ Fuel = 300 miles ÷ 12 gallons = 25.0 MPG.
- 2L/100km = 235.215 ÷ MPG = 235.215 ÷ 25.0 = 9.4 L/100km.
- 3km/L = MPG × 0.425144 = 25.0 × 0.425144 = 10.6 km/L.
- 4Cost per mile = Fuel Price ÷ MPG = $3.50 ÷ 25.0 = $0.140 per mile.
- 5Cost per km = Cost per mile × 0.621371 = $0.140 × 0.621371 = $0.087 per km.
- 6Total fuel cost = Fuel Used × Fuel Price = 12 gallons × $3.50 = $42.00.
Result:
Your vehicle achieved 25.0 MPG (9.4 L/100km), rated 'Good' efficiency. The 300-mile trip cost $42.00 in fuel at $0.140 per mile.
Metric Calculation — European City Drive
Problem:
You drove 200 km in a city and used 18 liters of fuel at $1.80 per liter. What is your fuel efficiency?
Solution Steps:
- 1km/L = Distance ÷ Fuel = 200 km ÷ 18 liters = 11.11 km/L.
- 2L/100km = (Fuel ÷ Distance) × 100 = (18 ÷ 200) × 100 = 9.0 L/100km.
- 3MPG equivalent = km/L × 2.35215 = 11.11 × 2.35215 = 26.1 MPG.
- 4Cost per km = Fuel Price ÷ km/L = $1.80 ÷ 11.11 = $0.162 per km.
- 5Cost per mile = Cost per km × 1.60934 = $0.162 × 1.60934 = $0.261 per mile.
- 6Total fuel cost = Fuel Used × Fuel Price = 18 liters × $1.80 = $32.40.
Result:
Your city driving achieved 9.0 L/100km (11.11 km/L or 26.1 MPG equivalent), rated 'Good'. The 200 km city trip cost $32.40 at $0.162 per kilometer.
Below-Average Truck Efficiency Check
Problem:
A full-size pickup truck travels 180 miles and uses 14 gallons. Fuel costs $4.00 per gallon. What efficiency rating does the truck receive?
Solution Steps:
- 1MPG = Distance ÷ Fuel = 180 ÷ 14 = 12.86 MPG.
- 2L/100km = 235.215 ÷ 12.86 = 18.3 L/100km.
- 3km/L = 12.86 × 0.425144 = 5.47 km/L.
- 4Efficiency rating: 12.86 MPG is below 20 MPG, so rated 'Below Average'.
- 5Cost per mile = $4.00 ÷ 12.86 = $0.311 per mile.
- 6Total fuel cost = 14 gallons × $4.00 = $56.00.
Result:
The truck rated 'Below Average' at 12.86 MPG (18.3 L/100km). At $0.311 per mile, the 180-mile trip cost $56.00 — more than 2x the per-mile cost of a 30 MPG vehicle at the same fuel price.
Hybrid Vehicle Excellent Efficiency
Problem:
A hybrid sedan travels 400 miles on 10 gallons. Gas costs $3.20 per gallon. How does it compare on cost per mile versus a 20 MPG vehicle?
Solution Steps:
- 1MPG = 400 ÷ 10 = 40.0 MPG — rated 'Excellent' (above 30 MPG).
- 2L/100km = 235.215 ÷ 40.0 = 5.88 L/100km.
- 3km/L = 40.0 × 0.425144 = 17.0 km/L.
- 4Cost per mile = $3.20 ÷ 40.0 = $0.080 per mile.
- 5Total fuel cost = 10 × $3.20 = $32.00.
- 6Comparison: 20 MPG vehicle would use 20 gallons for 400 miles, costing $64.00 — $32.00 more for the same trip.
Result:
The hybrid achieves 40.0 MPG and costs $0.080 per mile, exactly half the per-mile cost of a 20 MPG vehicle. Over 15,000 miles per year, the hybrid saves $480 annually in fuel at $3.20/gallon.
Tips & Best Practices
- ✓Measure MPG from a brimmed fill-up to another brimmed fill-up for the most accurate reading — partial fills introduce significant error.
- ✓Track MPG over five or more consecutive tanks to establish a reliable baseline; single-tank readings can be skewed by unusual conditions.
- ✓A sudden sustained MPG drop of 10% or more is a useful early-warning indicator of mechanical issues — investigate before the problem worsens.
- ✓Drive at 55–65 mph on the highway instead of 75+ mph; aerodynamic drag increases with the square of speed, so slowing down is the single biggest highway MPG lever.
- ✓Keep tires inflated to the vehicle manufacturer's recommended PSI (found on the door jamb sticker, not the tire sidewall) — under-inflation reduces MPG and increases tire wear.
- ✓Remove roof racks, cargo carriers, and bike mounts when not in use; an empty roof box can cut highway MPG by 5–25% due to aerodynamic drag.
- ✓Use the cost-per-mile output to directly compare the annual fuel cost of two vehicles: multiply each car's cost per mile by your expected annual mileage.
- ✓Run the metric mode if you are comparing a vehicle rated in L/100km — the calculator converts everything so you can benchmark it against your US-rated vehicles.
Frequently Asked Questions
Sources & References
Last updated: 2026-06-05
Help us improve!
How would you rate the Gas Mileage Calculator?
Editorial Note
MyCalcBuddy Editorial Team
This page is maintained as an educational calculator reference.
Formula Source: Standard Mathematical References
by Various