Gas Mileage Calculator

Calculate MPG from odometer readings and gallons used. Estimate annual fuel costs at any MPG.

mi
gal

30.0

MPG

7.8

L/100km

12.75

km/L

MPG Comparison at $3.50/gal, 15,000 mi/yr
MPGGal/yearAnnual costvs 30 MPG
20 MPG750$2625+$875
25 MPG600$2100+$350
30 MPG500$1750baseline
35 MPG429$1500$-250
40 MPG375$1313$-438
50 MPG300$1050$-700

How to Use the Gas Mileage Calculator

This gas mileage calculator does two jobs. In Calculate MPG mode it turns a single fill-up into a fuel economy number, showing miles per gallon plus the metric equivalents (L/100km and km/L). In Estimate Cost mode it projects what a given miles per gallon calculator result will cost you over a year at any gas price. Together, this is a full fuel economy calculator for the way US drivers actually track their cars.

  1. Miles driven. Reset the trip odometer when you fill the tank. Drive normally for at least a week (or until the tank is low) so the average covers both city and highway conditions. The odometer reading at the next fill-up is your miles driven.
  2. Gallons used. When you refill, fill the tank to the same click-off point as last time (same pump, same angle of the nozzle if possible). The number of gallons pumped is the gallons used. The pump receipt shows this to two decimals.
  3. Price per gallon (optional, for cost mode). Use the actual price you paid or your local average. Gasbuddy.com and AAA track regional averages if you do not have a recent receipt handy.

For the most accurate number, average three to five tanks. A single tank can swing 2 to 4 MPG based on traffic, weather, and whether you were hauling passengers or cargo. Drivers who want a true fuel efficiency calculator benchmark log every fill-up for a month and take the mean.

Gas Mileage Formulas and Conversions

Every gas mileage calculator is built on a handful of simple formulas. Here is every one you need, with worked examples using real numbers.

Miles Per Gallon (MPG)

The core formula for any miles per gallon calculator is miles driven divided by gallons used.

MPG = Miles Driven ÷ Gallons Used

Example: 350 miles on 12.5 gallons
MPG = 350 ÷ 12.5 = 28 MPG

Cost Per Mile

Once you know your MPG, cost per mile is the single most useful number for comparing cars, commutes, or road trips.

Cost per Mile = Price per Gallon ÷ MPG

Example: $3.60/gallon at 28 MPG
Cost per Mile = 3.60 ÷ 28 = $0.129/mile

A 40-mile round-trip commute costs 40 × $0.129 = $5.16/day

Annual Fuel Cost

Multiply gallons used per year by price per gallon. The calculator does this automatically in Estimate Cost mode.

Annual Cost = (Annual Miles ÷ MPG) × Price per Gallon

Example: 12,000 mi/year, 28 MPG, $3.60/gallon
Gallons = 12,000 ÷ 28 = 428.6 gallons
Annual Cost = 428.6 × $3.60 = $1,543/year

MPG to L/100km (Metric Fuel Economy)

Outside the United States, fuel economy is reported as liters of fuel used per 100 kilometers. Lower numbers are better. The conversion constant 235.215 comes from combining gallon-to-liter and mile-to-kilometer ratios.

L/100km = 235.215 ÷ MPG

Example: 28 MPG
L/100km = 235.215 ÷ 28 = 8.4 L/100km

Reverse: MPG = 235.215 ÷ L/100km
A European spec of 6.0 L/100km = 39.2 MPG

MPGe for Electric Vehicles

MPGe (miles per gallon equivalent) lets you compare an EV to a gasoline car on the same scale. The EPA defines one gallon of gasoline as containing 33.7 kWh of energy, so MPGe is simply miles traveled per 33.7 kWh consumed.

MPGe = Miles ÷ (kWh used ÷ 33.7)

Example: Tesla Model 3 uses about 26 kWh per 100 miles
MPGe = 100 ÷ (26 ÷ 33.7) = 100 ÷ 0.772 ≈ 130 MPGe

Nissan Leaf ≈ 110 MPGe
Ford F-150 Lightning ≈ 70 MPGe

Quick-Reference: MPG, L/100km, and Annual Cost

The table below shows what each MPG tier means in metric units and in actual dollars per year at 12,000 miles of driving and $3.60 per gallon.

MPGL/100kmkm/LGallons / 12K miAnnual Cost @ $3.60/gal
10 MPG23.54.251,200$4,320
15 MPG15.76.38800$2,880
20 MPG11.88.50600$2,160
25 MPG9.410.63480$1,728
30 MPG7.812.75400$1,440
35 MPG6.714.88343$1,234
40 MPG5.917.01300$1,080
50 MPG4.721.26240$864
75 MPG3.131.89160$576
100 MPG (or MPGe)2.442.51120$432

The jump from 20 to 30 MPG saves $720 a year. The jump from 30 to 40 saves $360. Diminishing returns are real: doubling MPG saves less money at the efficient end than at the thirsty end.

What Gas Mileage Actually Costs and How to Improve It

The number a fuel economy calculator gives you is only useful if you know what to compare it to. Below is the context, from real 2024 US fleet averages to the specific driving habits that move the needle.

Real-World MPG by Vehicle Class (2024 US Fleet)

These numbers come from EPA combined ratings and adjusted real-world data. Your exact vehicle will vary, but the class averages are a solid benchmark for what counts as normal, good, or excellent.

Vehicle ClassTypical MPGAnnual Fuel Cost @ 12K miExample Models
Full-size truck18 – 22 MPG$1,960 – $2,400F-150, Silverado, Ram 1500
Mid-size SUV22 – 27 MPG$1,600 – $1,960Highlander, Pilot, Explorer
Compact SUV26 – 32 MPG$1,350 – $1,660RAV4, CR-V, CX-5
Sedan (mid-size)28 – 35 MPG$1,235 – $1,543Camry, Accord, Altima
Compact sedan32 – 40 MPG$1,080 – $1,350Civic, Corolla, Elantra
Hybrid40 – 55 MPG$786 – $1,080Prius, Camry Hybrid, Accord Hybrid
Plug-in hybrid (PHEV)50 – 60 MPGe$720 – $864RAV4 Prime, Escape PHEV
Electric vehicle (EV)100 – 135 MPGe$480 – $700Model 3, Ioniq 6, Lucid Air

An EV at 120 MPGe and $0.15/kWh costs roughly $500 a year in electricity for 12,000 miles. The same distance in a 20 MPG truck at $3.60/gallon costs $2,160. That $1,660 annual gap is why total cost of ownership spreadsheets lean hard on EVs for high-mileage drivers.

Factors That Kill Your MPG

Every gas consumption calculator treats MPG as a single number, but in practice it fluctuates constantly. Here is how much each common factor takes off the top:

  • Aggressive acceleration and hard braking: 10% to 30% hit. Jackrabbit starts waste the most fuel in city driving. EPA research shows "sensible" driving can save $0.30 to $0.90 per gallon.
  • Cold weather: 15% to 20% worse in short trips below 20 F. Cold oil, cold transmission, cold engine, and more idling all compound. Gasoline blends also change seasonally and winter blends have slightly less energy.
  • Underinflated tires: up to 3% per 10 PSI below spec. Check monthly; tire pressure drops about 1 PSI for every 10 F drop in outside temperature.
  • Roof rack or rooftop cargo box: 5% to 8% penalty at 65+ mph, 25% for large square boxes. Remove it when not in use.
  • Air conditioning at low speeds: 3% to 8% reduction in city driving. On the highway the penalty is smaller because engine load is higher regardless. Windows down at highway speeds actually hurts MPG more than running the AC.
  • Extra weight: about 1% per 100 pounds. A trunk full of winter gear, a roof-mounted bike, or a trailer each chip away at fuel economy.
  • Speed above 60 mph: aerodynamic drag increases with the square of speed. Every 5 mph above 60 is roughly equivalent to paying an extra $0.20 per gallon.

City vs Highway MPG, and Why EPA Numbers Rarely Match Yours

The EPA prints three numbers on every window sticker: city MPG, highway MPG, and a combined rating. Combined is a 55/45 weighted average of city and highway. Most drivers see real-world numbers 5% to 15% below EPA combined, and short-trip commuters can see 25% less.

Why the gap? EPA testing happens on a dynamometer (a treadmill for cars) following five standardized test cycles. The tests were updated in 2008 to include AC use, higher speeds, and cold-start behavior, but they still cannot capture your specific traffic patterns, elevation changes, or how heavy your right foot is. The test mileage limits top speed at 80 mph and peak acceleration at around 8.46 mph per second, which is gentler than real freeway merging.

City vs highway also differs mechanically. In city driving, short stops mean the engine never reaches optimal operating temperature, and every acceleration from a red light burns fuel that does no useful work once you brake again. Highway driving holds the engine at a steady RPM in the efficiency sweet spot, so most gasoline cars get 20% to 40% better MPG on the highway. Hybrids and EVs flip this: they are more efficient in city driving because regenerative braking recaptures the energy a gasoline car wastes as heat.

When Hypermiling Pays Off and When It Does Not

Hypermiling is the practice of driving to maximize MPG: gentle acceleration, coasting to red lights, drafting (unsafely), cruise control on flat highways, minimal AC, and keeping tires at the top end of the PSI range. How much it helps depends entirely on your baseline and trip mix.

Driving TypeRealistic MPG GainAnnual Savings (12K mi)Worth It?
Short city trips (under 5 mi)15% – 25%$180 – $400Yes, biggest per-gallon impact
Mixed city/highway commute8% – 15%$100 – $220Yes, for regular commuters
Long highway drives3% – 7%$45 – $100Marginal, less room to improve
Hybrid on the highway2% – 5%$20 – $50Not really, already efficient
EV on the highway5% – 10% rangeRange bufferYes if range anxiety is a concern

Short urban trips have the biggest potential gain because that is where most fuel gets wasted on cold starts and stop-and-go. On the highway at 65 mph, the engine is already near its efficiency peak and there is simply less slack to recover. The cheapest MPG upgrades for most drivers: correct tire pressure, remove the roof rack, replace a clogged air filter, and drop cruising speed from 75 to 65 mph.

Frequently Asked Questions

Fill your tank completely, reset your trip odometer, drive normally, then fill up again. Divide the miles on the odometer by the gallons pumped at the second fill-up. Example: 312 miles driven and 10.4 gallons pumped gives 312 ÷ 10.4 = 30 MPG. Repeat over multiple tanks to get a more reliable average. The gas mileage calculator above does the division for you and also shows metric equivalents.

Related Calculators