Skip to content

MPG Calculator

Free MPG Calculator - calculate your car's real-world miles per gallon from fill-up data. Track fuel efficiency and annual costs.

Loading calculator

Preparing MPG Calculator...

Reviewed & Methodology

Every calculator is built using industry-standard formulas, validated against authoritative sources, and reviewed by a credentialed financial professional. All calculations run privately in your browser - no data is stored or shared.

Last reviewed:

Reviewed by:

Written by:

How to Use the MPG Calculator

  1. 1. Enter miles driven - input the number of miles since your last fill-up using your trip odometer reading.
  2. 2. Enter gallons filled - type the exact number of gallons pumped at the gas station from your receipt.
  3. 3. Input the gas price - enter the price per gallon you paid at the pump.
  4. 4. Set your tank size - enter your vehicle's fuel tank capacity in gallons to calculate full-tank range.
  5. 5. Review your results - see your real MPG, cost per mile, estimated range on a full tank, and projected annual fuel cost.

MPG Calculator

Your car’s window sticker MPG and your actual fuel economy are rarely the same number. EPA test cycles don’t replicate real-world stop-and-go traffic, cold starts, air conditioning loads, or highway speeds above 65 mph. The only way to know your real fuel efficiency is to calculate it from fill-up data. This calculator takes your miles driven, gallons pumped, gas price, and tank size to give you your actual MPG, cost per mile, estimated range, and what you will spend on fuel over a full year.

How MPG Is Calculated

The core formula is: MPG = Miles Driven / Gallons Filled

From that single result, the calculator derives four additional figures:

  • Cost Per Mile = Gas Price per Gallon / MPG
  • Estimated Full-Tank Range = MPG x Tank Capacity (gallons)
  • Cost Per Fill-Up = Gas Price x Tank Capacity
  • Annual Fuel Cost = (Annual Miles / MPG) x Gas Price — defaults to 12,000 miles/year, the U.S. average

For example: 340 miles driven, 12.2 gallons filled, $3.60/gallon, 14-gallon tank. MPG = 340 / 12.2 = 27.9 MPG. Cost per mile = $3.60 / 27.9 = $0.129/mile. Range = 27.9 x 14 = 391 miles. Annual cost = (12,000 / 27.9) x $3.60 = $1,548/year.

Worked Examples

Scenario 1 — Midsize SUV, mixed city/highway driving Miles: 280 | Gallons: 14.0 | Gas: $3.50 | Tank: 18 gal MPG = 20.0 | Cost/mile = $0.175 | Range = 360 mi | Annual cost (12k miles) = $2,100

Scenario 2 — Compact sedan, mostly highway commuting Miles: 390 | Gallons: 11.5 | Gas: $3.40 | Tank: 13 gal MPG = 33.9 | Cost/mile = $0.100 | Range = 441 mi | Annual cost = $1,205

Scenario 3 — Hybrid, urban driving Miles: 410 | Gallons: 8.8 | Gas: $3.60 | Tank: 11 gal MPG = 46.6 | Cost/mile = $0.077 | Range = 513 mi | Annual cost = $927

MPG Reference Table

Vehicle TypeTypical Real MPGGas PriceCost/MileAnnual Cost (12k mi)Full-Tank Range
Large pickup truck16 MPG$3.60$0.225$2,700320-400 mi
Full-size SUV18 MPG$3.60$0.200$2,400360-450 mi
Midsize SUV24 MPG$3.60$0.150$1,800360-480 mi
Midsize sedan28 MPG$3.50$0.125$1,500392-476 mi
Compact sedan34 MPG$3.50$0.103$1,235374-442 mi
Subcompact hatchback38 MPG$3.40$0.089$1,074380-418 mi
Standard hybrid48 MPG$3.40$0.071$850480-576 mi
Plug-in hybrid (gas only)40 MPG$3.40$0.085$1,020440-520 mi
Luxury sport sedan22 MPG$4.20$0.191$2,291352-440 mi
Minivan22 MPG$3.50$0.159$1,909396-462 mi

When to Use This Calculator

  • After any fill-up to track whether your real-world MPG matches the EPA rating on your window sticker
  • When you notice your fuel costs have crept up without changing your driving — a sudden 3+ MPG drop is a diagnostic signal
  • To compare two vehicles you are considering buying — the annual fuel cost difference often reveals savings or costs that the sticker price hides
  • Before a long road trip to accurately budget fuel expenses rather than guessing
  • To measure the MPG benefit of a behavior change like reducing highway speed from 75 to 65 mph or improving tire pressure

Common Mistakes

  1. Not filling to the same level each time. If you fill to the click on one tank and overfill the next, the gallons-used figure is wrong and throws off your MPG calculation. Use the auto-shutoff consistently and always start from a full tank.
  2. Using a single fill-up as your benchmark. One data point is noisy. Your driving route, temperature, headwind, and cargo on that specific tank all affect the number. Average three to five consecutive fill-ups for a number worth acting on.
  3. Comparing your real MPG to the EPA combined rating. The EPA combined figure is typically 10-20% higher than what most drivers achieve in real life. Compare your measured MPG to your own baseline over time, not to the sticker.
  4. Ignoring seasonal changes. Cold weather below 40°F reduces MPG by 10-20% on short trips as the engine and drivetrain take longer to reach operating temperature. A “drop” in winter MPG is usually normal, not a mechanical problem.

Real-World Applications

Tracking MPG fill-up by fill-up is one of the most actionable pieces of vehicle data available to a driver. A 2-MPG sustained drop in a car that previously held steady is a reliable early signal of problems — oxygen sensor failure, a stuck brake caliper, underinflated tires, or a clogged fuel injector are common causes, each caught for $50-$200 before they become $800-$2,000 failures. At scale, the difference between a 20 MPG vehicle and a 30 MPG vehicle driven 15,000 miles/year at $3.60/gas is $900/year — enough to influence a car purchase decision that also factors in loan payments and insurance costs.

Tips

  1. Reset your trip odometer immediately after filling up so the next fill-up gives you an accurate miles-driven figure — don’t rely on memory
  2. Track four to five consecutive fill-ups and average the results; this smooths out one-time variables like a hilly drive or an unusually cold week
  3. If your MPG drops 3+ MPG without a change in driving conditions, check tire pressure first (add $0.15/gallon in fuel for every 3 PSI underinflated), then the air filter, then run a scan for error codes before booking a shop visit
  4. Driving at 60 mph versus 75 mph on the highway improves fuel economy by 15-20% — on a 400-mile highway leg at $3.50/gallon in a 28 MPG car, that saves about $6-$9 in fuel alone
  5. Remove roof racks and cargo boxes when not in use — a roof box increases aerodynamic drag enough to reduce MPG by 5-8% at highway speeds
  6. Avoid idling for more than 60 seconds; modern fuel-injected engines use less fuel restarting than they burn sitting still

Frequently Asked Questions

How do I accurately calculate my car's actual miles per gallon?
Fill your tank completely, reset your trip odometer to zero, drive normally until you need fuel again, then fill up completely and note the gallons pumped. Divide the trip odometer reading by gallons pumped -- that is your real-world MPG. For example, if you drove 320 miles and pumped 11.5 gallons, your MPG is 320 / 11.5 = 27.8 MPG. Repeat this over 3-4 fill-ups to get a reliable average.
Why is my real-world MPG different from the EPA estimate?
EPA estimates are based on standardized laboratory tests that do not perfectly replicate real-world conditions. Most drivers achieve 10-20% lower MPG than the EPA combined rating due to aggressive driving, stop-and-go traffic, short trips that do not allow the engine to reach peak efficiency, cold weather, and use of air conditioning. Highway-heavy driving may match or exceed EPA estimates, while city driving typically falls below them.
How does city driving MPG compare to highway driving MPG?
Highway driving typically yields 20-30% better fuel economy than city driving because the engine operates in its most efficient RPM range at steady speeds and there is no energy wasted on stop-and-go acceleration. A car rated at 28 city / 36 highway MPG might average 31 MPG in mixed driving. However, hybrids reverse this pattern -- they often get better city MPG because regenerative braking recaptures energy during stops.
How can I improve my car's fuel efficiency?
The most effective ways to improve MPG are maintaining proper tire pressure (underinflation reduces MPG by 3% per 1 PSI below spec), driving at moderate speeds (every 5 mph over 50 costs roughly $0.20-$0.30 more per gallon), avoiding aggressive acceleration and braking, removing excess weight from the trunk, and keeping up with maintenance like air filter and spark plug replacement. Combined, these habits can improve fuel economy by 15-30%.
Should I track my MPG over time, and why?
Yes, tracking MPG over time helps you detect mechanical problems early. A sudden drop of 3+ MPG could indicate underinflated tires, a dirty air filter, failing oxygen sensor, spark plug issues, or a dragging brake caliper. It also helps you understand the impact of seasonal changes (cold weather reduces MPG by 10-20%), driving pattern changes, and the long-term effects of vehicle aging on fuel efficiency.

Explore More Auto & Vehicle Tools

Fuel Cost Calculator: Try our free fuel cost calculator for instant results.

Road Trip Cost Calculator: Try our free road trip cost calculator for instant results.

EV Charging Cost Calculator: Try our free ev charging cost calculator for instant results.

Commute Cost Calculator: Try our free commute cost calculator for instant results.

Annual Car Expense Calculator: Try our free annual car expense calculator for instant results.

EV vs Gas Calculator: Try our free ev vs gas calculator for instant results.

Calculators