๐Ÿ‡บ๐Ÿ‡ธ USC
Everyday & Time
โ›ฝ

Gas Mileage Calculator

Find your MPG, cost per mile and trip fuel cost

โ›ฝ Trip & fuel details

miles

The distance since your last fill-up (use your trip odometer).

gal

Gallons it took to fill the tank back up after that distance.

$
mi
โœ…

Last updated June 2026

Method: Fuel economy uses MPG = miles driven ÷ gallons used. Cost per mile = gas price ÷ MPG. The L/100 km equivalent uses the exact factor 235.215 ÷ MPG, and gallons are US gallons.

Included: MPG, cost per mile, cost per trip, cost per 100 miles, metric equivalents, a price-sensitivity table, and an annual fuel-cost estimate at the FHWA average of 12,000 miles per year.

Not included: Maintenance, insurance, depreciation, tolls, or EV charging costs. Results are estimates that vary with real-world driving conditions.

Gas mileage calculator: everything you need to know

Drive 320 miles on 11.5 gallons and your car is returning about 27.8 miles per gallon. At a pump price of $3.45 a gallon, that is roughly 12.4 cents per mile - or close to $1,490 a year in fuel if you cover the average 12,000 miles. This gas mileage calculator turns two numbers off your trip odometer and your receipt into the figures that actually matter for budgeting: your MPG, your cost per mile, and what a given trip really costs to drive.

How gas mileage is calculated

Fuel economy is just miles divided by fuel. The core formula is:

MPG = miles driven ÷ gallons used

To turn that into money, the calculator uses two more relationships. Cost per mile is the pump price divided by your MPG, and the cost of any trip is that cost per mile multiplied by the trip distance:

Cost per mile = gas price ÷ MPG
Trip cost = cost per mile × trip miles

It also shows the metric equivalent, because fuel efficiency is measured as liters per 100 km in most of the world: L/100km = 235.215 ÷ MPG. Remember the direction flips - a higher MPG is better, but a lower L/100 km is better.

How to use this gas mileage calculator

The most reliable approach is the full-tank method. Follow these steps:

  1. Fill up completely and note the pump - top off to the first automatic click-off.
  2. Reset your trip odometer (trip A) to zero so it counts the miles for this tank only.
  3. Drive normally until the tank is low - a fuller tank gives a cleaner sample than half a tank.
  4. Fill up again to the same click-off point and read the gallons added from the pump.
  5. Enter the numbers: the trip-odometer miles in "Miles driven" and the gallons on the receipt in "Gallons used," then add the price per gallon and your typical trip distance.

The result updates instantly: read your MPG at the top, then the cost-per-mile and trip-cost cards below it.

Who this calculator is for

  • Commuters budgeting the weekly cost of driving to work.
  • Road trippers estimating fuel for a long drive before they leave.
  • Car shoppers comparing the running cost of two vehicles with different MPG.
  • Gig and delivery drivers tracking fuel cost per mile against their pay.
  • Anyone troubleshooting a sudden drop in mileage that might signal a maintenance issue.

Worked example 1: a sedan

You reset the trip odometer at a fill-up, drive 360 miles, and it takes 12 gallons to refill. That is 360 ÷ 12 = 30.0 MPG. At $3.45 a gallon, cost per mile is 3.45 ÷ 30 = $0.115. A 50-mile round-trip commute costs about $5.75 in fuel, and a year of 12,000 miles runs roughly $1,380.

Worked example 2: a pickup vs a hybrid

Compare a truck at 18 MPG with a hybrid at 45 MPG on the same 1,000-mile road trip at $4.00 a gallon. The truck burns 1,000 ÷ 18 = 55.6 gallons ($222); the hybrid burns 1,000 ÷ 45 = 22.2 gallons ($89). That is a $133 difference for one trip - and over 12,000 miles a year the gap widens to roughly $1,600. Small MPG differences compound fast at scale. To price a specific route end to end, run the same MPG through the Fuel Cost Calculator.

Worked example 3: the metric conversion

Say a car returns 33 MPG. Converting: 235.215 ÷ 33 = 7.1 L/100km, and in km per liter that is 33 × 0.4251 = 14.0 km/L. If you are importing a vehicle or reading an overseas spec sheet, these conversions let you compare apples to apples.

MPG by vehicle type (typical combined ranges)

These ranges are rough real-world combined figures to set expectations; always check the EPA rating for a specific model:

Vehicle type Typical MPG L/100km
Compact / midsize gas car28-388.4-6.2
Hybrid car40-555.9-4.3
Small SUV / crossover24-329.8-7.4
Full-size SUV16-2214.7-10.7
Full-size pickup truck17-2313.8-10.2

Key fuel-economy terms explained

  • MPG: miles a vehicle travels on one gallon of fuel - the standard U.S. efficiency measure.
  • Cost per mile: the fuel dollars spent per mile driven; the building block for trip and annual costs.
  • L/100km: liters of fuel per 100 kilometers, used in most other countries; lower is better.
  • City vs highway MPG: city driving (stops, idling) is usually less efficient than steady highway cruising; the "combined" figure blends them.
  • US vs Imperial gallon: a UK gallon is about 20% larger, so it inflates the MPG number. Use US gallons here.
  • EPA estimate: the lab-tested fuel-economy rating shown on a new car's window sticker and on FuelEconomy.gov.

Tips to improve your gas mileage

  • Drive smoothly: gentle acceleration and braking beats hard launches and last-second stops.
  • Ease off the highway speed: fuel use climbs sharply above roughly 50-55 mph due to wind resistance.
  • Keep tires inflated: under-inflated tires add rolling resistance and quietly cut MPG.
  • Lighten and de-clutter: remove roof racks and heavy cargo you are not using.
  • Combine trips: a warm engine is more efficient, so batch errands instead of many cold starts.
  • Stay on top of maintenance: clean air filters, fresh spark plugs, and the right oil all help.

What actually moves your MPG the most

When you watch your real-world economy swing from one tank to the next, a handful of factors are usually doing most of the work. Understanding which lever matters helps you read your number instead of just recording it:

  • Speed and aerodynamics: air resistance rises with the square of speed, so the engine works disproportionately harder at 75 mph than at 60. Highway speed is the single biggest controllable drain on a long trip.
  • Stop-and-go vs steady cruising: every acceleration from a stop burns fuel to build up kinetic energy that braking then throws away as heat. That is why city MPG is almost always lower than highway MPG for a gas car (the pattern flips for hybrids, which recapture braking energy).
  • Temperature: cold engines run rich and need warm-up time, and winter blends, cold tires, and heater use all sap efficiency. A January commute can read 10-20% below the same route in July.
  • Weight and drag added by you: roof boxes, bike racks, and a trunk full of cargo all cost fuel; an empty roof rack alone can shave a couple of MPG at highway speed.
  • Tire pressure and condition: under-inflated or worn tires add rolling resistance that quietly eats into every mile.
  • Maintenance state: a clogged air filter, fouled spark plugs, the wrong oil grade, or a dragging brake can each pull MPG down without any warning light.

City vs highway: why one car has two MPG numbers

The EPA publishes separate city, highway, and combined ratings for a reason - the same vehicle behaves very differently depending on how you drive it. City driving is full of stops, idling at lights, and short bursts of acceleration, all of which are inefficient. Highway driving is mostly steady cruising at a constant speed, where the engine settles into its most efficient range. A typical gas car might be rated 24 MPG city and 34 MPG highway, blended into a 28 MPG combined figure that assumes a roughly 55/45 city-to-highway split. When you measure with the full-tank method, the number you get reflects your mix: a tank burned mostly on a freeway commute will read near the highway figure, while a week of school runs and errands will land closer to the city number. If your measured MPG looks low, ask what kind of driving that tank actually contained before assuming something is wrong with the car.

Turning MPG into a real budget

The most useful thing this calculator produces is not the MPG itself but the cost figures built on top of it. Once you know your cost per mile, you can answer the questions that matter for money. Multiply it by your daily commute to see what driving to work costs each day; multiply by 12,000 (the FHWA average annual mileage) for a yearly fuel budget; or multiply by the distance of an upcoming trip to decide whether to drive or fly. For example, at 27.8 MPG and $3.45 a gallon, cost per mile is about 12.4 cents, so a 1,500-mile road trip costs roughly $186 in fuel alone - a number worth comparing against airfare plus a rental. Because fuel is only one slice of the true cost of ownership (insurance, maintenance, tires, and depreciation are the rest), treat the fuel figure as a floor, not the full bill. For the recurring loan side of a vehicle's cost, the Car Payment Calculator covers the monthly financing.

How real-world MPG compares to the EPA sticker

Every new car sold in the U.S. carries an EPA fuel-economy label, and FuelEconomy.gov lists the same ratings for older models. Those numbers come from standardized laboratory tests on a dynamometer, run under controlled temperature and speed profiles. They are excellent for comparing one model against another on a level playing field, but they are not a promise of what you will see in your driveway. Most drivers land somewhere within 10-20% of the combined sticker rating; aggressive driving, lots of short cold-start trips, heavy traffic, or a roof carrier can push the gap wider. A consistently large shortfall - say 30% or more below the sticker across several careful full-tank measurements - is a useful diagnostic signal worth investigating, since it can point to low tire pressure, a maintenance issue, or a failing sensor. The value of measuring your own MPG is precisely that it captures your conditions, not the lab's, so use the EPA number as the benchmark and your full-tank result as the reality check.

Gas, hybrid, and electric: when MPG stops applying

This calculator is built for vehicles that burn liquid fuel measured in gallons - gasoline and diesel. For those, MPG and cost per mile work exactly as described. Hybrids still report MPG and fit the math fine; they simply tend to do unusually well in city driving because regenerative braking recaptures energy that a conventional car wastes. Plug-in hybrids and fully electric vehicles are a different story: an EV does not consume gallons, so its efficiency is measured in miles per kWh or the EPA's MPGe equivalent, and its cost per mile depends on your electricity rate rather than the pump price. If you are comparing a gas car against an EV, calculate the gas car's cost per mile here, then work out the EV's cost per mile separately from its kWh-per-mile rating and your local electricity price - comparing the two cost-per-mile figures is the apples-to-apples way to weigh them. The fuel-economy logic on this page does not model charging, battery range, or electricity pricing.

Related concepts and calculators

Gas mileage is one piece of the cost-of-driving puzzle. Once you know your MPG here, a few sister tools turn it into the answers you actually need:

Limitations and assumptions

  • It measures fuel cost only - not maintenance, tires, insurance, depreciation, or tolls.
  • One tank is a single sample; averaging several tanks gives a truer figure.
  • The annual estimate assumes 12,000 miles/year and your current price; both vary in reality.
  • It assumes a gasoline or diesel vehicle measured in gallons, not an electric vehicle.
  • Pump prices change daily, so re-run it with a fresh price for accurate cost figures.

Sources

โš ๏ธ Common mistakes & edge cases

Mixing up miles and gallons

MPG is miles ÷ gallons, not the other way around. Putting gallons in the miles field gives a tiny, nonsensical number. Double-check that "miles driven" holds the trip odometer reading and "gallons used" holds the fuel added.

Inconsistent fill levels

If you brim the tank one time and stop at the first click the next, the gallons you enter will not match the fuel you actually burned. Always fill to the same point both times so the math lines up.

Using Imperial gallons

A UK gallon is about 20% larger than a US gallon, which inflates MPG. This calculator expects US gallons - the units on a U.S. pump receipt. Don't mix a UK gallon figure with US prices.

Trusting a single tank as gospel

One tank reflects that tank's weather, traffic, and route. A cold winter commute can read far lower than a summer highway run in the same car. Average three or four tanks for a number you can rely on.

Note: This calculator gives an estimate. Real-world MPG and fuel cost vary with driving style, conditions, vehicle condition, and the current pump price.

❓ Frequently asked questions

How do you calculate gas mileage (MPG)?

Divide the miles you drove by the gallons of fuel you used: MPG = miles driven / gallons used. For example, if you drove 320 miles on 11.5 gallons, that is 320 / 11.5 = 27.8 MPG. The most accurate way is the full-tank method: fill up, reset your trip odometer, drive until you need fuel, then fill up again and divide the trip miles by the gallons it took to refill.

What is a good MPG?

It depends on the vehicle type. Many compact and midsize gas cars get roughly 25-35 MPG combined, hybrids often reach 40-55 MPG, while full-size trucks and SUVs may land in the high teens to mid-20s. The EPA window-sticker rating on FuelEconomy.gov is the standard benchmark; if your real-world number is well below the sticker, driving habits or maintenance may be the cause.

How is cost per mile calculated?

Cost per mile for fuel is the price per gallon divided by your MPG: cost per mile = gas price / MPG. At $3.45 per gallon and 27.8 MPG, that is 3.45 / 27.8 = about $0.124 per mile. Multiply by trip distance for the cost of a trip, or by 12,000 for a rough annual fuel cost at the U.S. average mileage.

Why is my MPG lower than the EPA sticker?

EPA estimates come from standardized lab tests. Real driving usually differs because of city traffic and idling, high speeds, aggressive acceleration, cold weather, short trips, roof racks, heavy cargo, low tire pressure, and using the air conditioning. A gap of 10-20% from the sticker is common; a much larger gap can point to a maintenance issue.

How do I convert MPG to L/100km?

Divide 235.215 by the MPG value. So 27.8 MPG is 235.215 / 27.8 = about 8.5 L/100km. Note that lower L/100km means better efficiency, the opposite direction from MPG. This calculator shows both the L/100km and km-per-liter equivalents automatically.

What is the difference between US gallons and Imperial gallons?

A US gallon is about 3.785 liters, while an Imperial (UK) gallon is about 4.546 liters - roughly 20% larger. That means the same car shows a higher MPG number in Imperial gallons. This calculator uses US gallons, the standard at U.S. pumps, so enter the gallons exactly as shown on your receipt.

Does the full-tank method really need a full tank?

It needs consistent fill points, not necessarily a brimmed tank. The key is to top off to the same click-off point both times so the gallons you add equal the gallons you actually burned over the measured miles. Resetting the trip odometer at the first fill and reading it at the second gives you the miles. One tank is a rough sample; averaging three or four tanks smooths out variation.

How can I improve my gas mileage?

The biggest wins are smooth driving (gentle acceleration and braking), keeping speeds moderate on the highway, and proper tire pressure. Remove roof racks and unnecessary cargo, combine errands to avoid cold starts, keep up with air-filter and spark-plug maintenance, and avoid long idling. These habits can realistically improve real-world economy by 10-30%.

Does idling affect my calculated MPG?

Yes. Idling burns fuel while adding zero miles, so heavy idling - drive-throughs, warming up, stop-and-go traffic - pulls down the miles-per-gallon you measure. That is why the same car shows lower MPG in winter city driving than on a steady summer highway trip. The full-tank method captures all of this real-world fuel use, which is its main advantage over the EPA estimate.

Is this gas mileage calculator accurate?

The math is exact: it divides the miles and gallons you enter and computes cost from the price you provide. Accuracy depends on your inputs - precise trip miles and gallons added at a consistent fill level. It is a planning estimate, not a substitute for tracking several tanks. Fuel prices change daily, so re-run it with a current price for the most realistic cost figures.

Can I use this calculator for an electric vehicle?

Not directly. This calculator measures fuel in gallons, so it fits gasoline, diesel, and hybrid vehicles. An electric vehicle does not burn gallons - its efficiency is measured in miles per kWh or the EPA's MPGe equivalent, and its running cost depends on your electricity rate, not the pump price. To compare an EV with a gas car, calculate the gas car's cost per mile here, then work out the EV's cost per mile from its kWh-per-mile rating and your local electricity price, and compare the two cost-per-mile figures.

Why are my city and highway MPG so different?

City driving is full of stops, idling, and acceleration from rest, all of which waste fuel, while highway driving is mostly steady cruising in the engine's efficient range. That is why a gas car is usually less efficient in town than on the open road - a car rated 24 MPG city and 34 MPG highway is normal. The full-tank number you measure reflects whatever mix of city and highway that tank contained, so a commute-heavy week reads lower than a road-trip tank.

How many miles per year does the annual estimate assume?

The annual fuel-cost estimate uses 12,000 miles per year, the rough Federal Highway Administration figure for an average U.S. driver. If you drive more or less than that, scale the number accordingly: a 6,000-mile-a-year driver pays about half the estimate, while a 24,000-mile commuter pays roughly double. Multiply your own cost per mile by your true annual mileage for a personalized figure.

๐Ÿ’ก Good to know

A fuller tank gives a cleaner reading

Measuring over a full tank averages out the bumps of city and highway driving. Checking MPG on just a quarter tank, or over a single short trip, exaggerates whatever conditions you happened to hit.

Speed costs more than most people think

Wind resistance rises steeply with speed, so fuel economy typically drops off above roughly 50-55 mph. Easing off the highway speed even a little is one of the simplest ways to save fuel.

Small MPG gains add up at scale

Going from 25 to 30 MPG cuts fuel use by about 17%. Over 12,000 miles at $3.50 a gallon, that is roughly $280 saved a year - before you account for fewer fill-up stops.

Related Calculators