MPG Calculator

The MPG Calculator turns distance driven and gallons of fuel consumed into miles per gallon, then extends that figure into trip cost, an annual fuel budget, and CO2 output figures.

Switching format converts every field below automatically.
mi
gal
$ / gal
mi
gal
MPG
Calculated Efficiency
25.0 MPG
Rated Average — 2% less efficient than the U.S. light-duty benchmark (25.4 MPG). Track 3+ consecutive fill-ups for the most reliable figure.
Efficiency Conversion
9.41 L/100km
Imperial (UK) 30.02 mpg
Metric Yield 10.63 km/L
Fuel Per 1,000 mi 40.00 gal
Cross-checks your result against all three global standards using exact factors: 1 mi = 1.609344 km, 1 US gal = 3.785411784 L.
Trip Cost Analysis
$49.00 Total Cost
Cost Per Mile $0.140 / mi
Cost Per 100 mi $14.00
Range Per $1 7.14 mi
The exact financial impact of this trip, broken down to the per-mile rate used for reimbursement and budgeting.
Annual Projection
$1,680 Est. Cost
Fuel Required 480 gal / yr
Monthly Budget $140 / mo
Weekly Budget $32 / wk
Scales this efficiency across your yearly distance so fuel can be budgeted in realistic monthly and weekly amounts.
Environmental Impact
274 lbs CO₂ (Trip)
Annual Footprint 9,404 lbs / yr
Emission Rate 221 g CO₂ / km
Tree Offset Needed 196 Trees / Yr
Tailpipe CO₂ from published fuel-carbon factors, converted into the mature trees needed to absorb one year of driving.
Range & Refuel Planning
375 mi Per Tank
Cost Per Fill-Up $52.50
Fill-Ups Per Year 32.0 / yr
Days Between Fills 11.4 days
Usable range and refuel rhythm from your tank size, so you can plan stops and notice range loss early.
Comparison & Savings
$280 Saved / Yr
Fuel Saved 80.0 gal / yr
CO₂ Avoided 1,567 lbs / yr
5-Year Savings $1,400
Measures your result against the target efficiency you entered and converts the gap into money, fuel, and emissions.
Method & Assumptions
  • Exact conversions only: 1 mi = 1.609344 km, 1 US gal = 3.785411784 L, 1 imp gal = 4.54609 L, so MPG (US) = 235.2146 ÷ (L/100km) and MPG (UK) = 282.4809 ÷ (L/100km).
  • Tailpipe CO₂ factors per US gallon: gasoline 8,887 g, diesel 10,180 g, E85 6,190 g (about 85% biogenic carbon), propane 5,720 g.
  • Offset assumption: one mature tree absorbs roughly 48 lbs (21.8 kg) of CO₂ per year.
  • Benchmark: 25.4 MPG (9.26 L/100km) real-world U.S. light-duty average. Weekly figures use 52.18 weeks and daily figures use 365.25 days.
  • Currency is a display label only — no exchange rates are applied. Enter the fuel price in the currency you want results in.

Calculate Real-World MPG From Your Vehicle's Odometer and Fuel Pump Readings

This tool converts a distance reading and a fuel-volume reading into miles per gallon, L/100km, or UK mpg, then extends that figure into trip cost, an annual fuel budget, tailpipe CO₂ output, and tank range. Drivers logging fill-ups, fleet operators tracking per-vehicle fuel costs, and shoppers comparing a target efficiency against their current vehicle all use it to turn two pump readings into a full cost and emissions picture.

Reading Your Odometer and Pump Receipt for Accurate Inputs

Enter the distance driven and the fuel added at the pump since the last fill-up, plus the current fuel price. Distance and fuel volume must both be entered, since the calculation divides one by the other. The Measurement Format selector converts every field between US, metric, and UK imperial units; keep the pump receipt's units matched to the selected format.

How Fuel Economy Is Calculated From Distance and Gallons Consumed

The base calculation is the same one fueleconomy.gov instructs drivers to use for checking their own mileage: divide the distance covered by the volume of fuel used to cover it.

$$ \text{MPG} = \dfrac{\text{Distance Driven}}{\text{Fuel Consumed}} $$

This is a personal fill-up calculation, not the EPA's official window-sticker rating. The window-sticker figure comes from dynamometer testing under the EPA's fuel-economy test procedure (40 CFR Part 600), using standardized city and highway drive cycles rather than pump receipts, which is why the two numbers routinely disagree.

The most common input mistake is a partial second fill: the formula assumes both fill-ups top the tank to the same level, so stopping short on the second fill understates fuel consumed and inflates the MPG result.

To compare across unit systems, the tool applies exact conversions rather than rounded ones, since a mile, a US gallon, and an imperial gallon are all defined quantities rather than measured ones:

$$ \text{L/100km} = \dfrac{235.214583}{\text{MPG (US)}} \qquad \text{MPG (UK)} = \dfrac{282.480936}{\text{L/100km}} $$

These constants come directly from 1 mile = 1.609344 km and 1 US gallon = 3.785411784 L (1 UK imperial gallon = 4.54609 L for the UK conversion), so the results are exact, not approximated.

One nuance worth knowing: switching the Fuel Type field changes only the CO₂ estimate, never the MPG figure itself, because miles-per-gallon is a volume ratio and has no awareness of what's in the tank. That matters most for E85 flex-fuel vehicles.

Ethanol carries meaningfully less energy per gallon than gasoline, roughly one-third less for pure ethanol, so a flex-fuel vehicle reading "25 MPG" on E85 is not covering the same distance per unit of energy as a gasoline vehicle reading "25 MPG." The volumetric number matches; the underlying energy consumed does not.

Distance and fuel volume must both be greater than zero; at zero the ratio is undefined, so the tool withholds a result rather than showing zero or an error value. A computed result outside roughly 2–200 MPG signals a unit-entry mismatch rather than real vehicle behavior, since no production light-duty vehicle running on liquid fuel reaches either extreme.

Samples under a few hundred miles are also unreliable on their own: pump auto-shutoff sensors vary enough between fill-ups to swing a single-tank reading by 10% or more, which is why fuel-tracking guidance generally recommends averaging three to five consecutive fill-ups before trusting the number.

The Two-Fill-Up Method: Where Each Measurement Comes From

Fill-Up 1 Fill tank completely Record odometer: A (trip meter reset to 0) Normal Driving Distance = B minus A or the trip meter reading directly Fill-Up 2 Fill tank completely Record odometer: B Note gallons added MPG = Distance (B − A) ÷ Gallons added at Fill-Up 2

Reference: Tailpipe CO₂ by Fuel Type and Current Fleet Averages

ValueFigureSource
CO₂ per gallon – gasoline8,887 gEPA/DOT joint rulemaking, 75 FR 25324 (2010)
CO₂ per gallon – diesel10,180 g40 CFR § 600.113 (manufacturer fuel-economy calculation)
CO₂ per gallon – propane/LPG≈ 5,750 g (12.68 lb)EIA, Carbon Dioxide Emissions Coefficients by Fuel
1 mile1.609344 km (exact)International definition of the mile
1 US gallon3.785411784 L (exact)NIST fuel-volume definition
1 UK imperial gallon4.54609 L (exact)UK Weights and Measures Act 1985
New-vehicle fleet average (MY 2024)27.2 MPGEPA Automotive Trends Report, released 2025
On-road fleet average (all vehicles currently driven)≈ 22.2 MPGEPA Green Vehicle Guide, EPA-420-F-23-014

Two figures above are easy to mix up: the "new-vehicle fleet average" reflects only cars sold that model year, while the "on-road fleet average" covers every vehicle currently in use, new and old, which is why it's lower. A benchmark of 25.4 MPG occasionally cited elsewhere reflects model year 2021 data and has since been overtaken by more recent EPA reporting.

A CO₂ factor for E85 could not be confirmed against a single published EPA or EIA standard the way the gasoline, diesel, and propane figures above could; blended ethanol-gasoline fuels involve a biogenic-carbon accounting question that varies by methodology, so any E85 emissions figure should be treated as a directional estimate rather than a fixed constant.

The "48 lbs of CO₂ absorbed per mature tree per year" figure used to estimate tree-offset equivalents is a widely circulated planting-organization estimate (commonly attributed to the Arbor Day Foundation and USDA), not a peer-reviewed constant. Actual sequestration varies enormously by species, age, and climate, so treat any tree-count conversion as illustrative rather than precise.

Common Questions About Calculating and Interpreting MPG

Why does my dashboard's real-time MPG differ from what I calculate here?

Dashboard readouts model MPG from injector flow rate in real time and tend to run 5-15% optimistic, since they never confirm how much fuel actually left the tank. The fill-up method used here divides distance by fuel metered at the pump, so it reflects what was actually consumed.

Why is my calculated MPG lower than the EPA sticker rating?

EPA window-sticker ratings come from dynamometer testing under standardized city and highway drive cycles, not real roads. Actual driving conditions, cold starts, traffic, air conditioning, cargo, and terrain, typically bring real-world MPG below the label figure.

Does switching the fuel type change my MPG number?

No. MPG is a ratio of distance to fuel volume, so it doesn't change when you switch the Fuel Type field. Only the CO₂ estimate changes, because different fuels release different amounts of carbon per gallon burned.

How many fill-ups should I track before trusting the result?

Three to five consecutive full-to-full fill-ups, per common fuel-tracking guidance. A single short tank can swing 10% or more just from variance in the pump's automatic shutoff sensor between fills.

Why does the tool flag small distance samples as low-confidence?

Short distances amplify noise from the pump's shutoff sensor and from fuel sitting in the line rather than the tank. Averaging several fill-ups cancels that noise out and gives a more stable long-term figure.