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.

MPG Calculator: Example Calculation

Using Miles Driven: 350, Gallons Filled: 12.5, Price Per Gallon: 3.5, Tank Size: 15:

The estimated MPG is 28.0 MPG.

Result Value
Your MPG 28.0 MPG
Cost Per Mile $0.125
Estimated Range (Full Tank) 420 miles
Cost Per Fill-Up $53
Est. Annual Fuel Cost $1,500

Adjust the values in the calculator above for your own scenario.

Loading calculator

Preparing MPG Calculator...

Reviewed & Methodology

Every calculator is built using industry-standard formulas, validated against authoritative sources, and reviewed for accuracy against our published methodology. All calculations run privately in your browser - no data is stored or shared.

Educational tool only -- not financial, tax, or legal advice. Consult a licensed professional for decisions about your situation.

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 Type Typical Real MPG Gas Price Cost/Mile Annual Cost (12k mi) Full-Tank Range
Large pickup truck 16 MPG $3.60 $0.225 $2,700 320-400 mi
Full-size SUV 18 MPG $3.60 $0.200 $2,400 360-450 mi
Midsize SUV 24 MPG $3.60 $0.150 $1,800 360-480 mi
Midsize sedan 28 MPG $3.50 $0.125 $1,500 392-476 mi
Compact sedan 34 MPG $3.50 $0.103 $1,235 374-442 mi
Subcompact hatchback 38 MPG $3.40 $0.089 $1,074 380-418 mi
Standard hybrid 48 MPG $3.40 $0.071 $850 480-576 mi
Plug-in hybrid (gas only) 40 MPG $3.40 $0.085 $1,020 440-520 mi
Luxury sport sedan 22 MPG $4.20 $0.191 $2,291 352-440 mi
Minivan 22 MPG $3.50 $0.159 $1,909 396-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.

Embed this calculator

Add this free calculator to your website. Copy the code below and keep the attribution link - it's what keeps these tools free:

Cite this calculator

Copy this citation for papers, articles, or coursework:

Alex Crabinsky. "MPG Calculator." Numeraty, February 24, 2026, https://numeraty.com/mpg-calculator/

Related Auto & Vehicle Calculators

Auto & Vehicle

Annual Car Expense Calculator

Free Annual Car Expense Calculator - get a full-year breakdown of every cost associated with owning your vehicle.

Auto & Vehicle

Auto Insurance Calculator

Estimate your auto insurance premium based on vehicle value, driver age, credit score, coverage level, deductible, and mileage. Understand how each factor affects your rate.

Auto & Vehicle

Auto Lease Calculator

Calculate your monthly lease payment, total lease cost, and finance charges based on MSRP, negotiated price, residual value, and money factor. Compare lease offers confidently.

Auto & Vehicle

Auto Loan Calculator 2026

Calculate your 2026 auto loan payment with current rates. Compare new and used car financing, see total interest costs, and find the best loan term.

Auto & Vehicle

Auto Loan Calculator

Calculate your monthly auto loan payment, total interest, and total cost based on vehicle price, down payment, interest rate, and loan term. Compare financing scenarios instantly.

Auto & Vehicle

Auto Loan Comparison

Compare two auto loan offers side by side to find the better deal. See which loan has lower monthly payments, less total interest, and the lowest total cost instantly.

Auto & Vehicle

Auto Refinance Calculator

Free Auto Refinance Calculator - see how much you can save by refinancing your car loan at a lower rate. Compare payments and total cost instantly.

Auto & Vehicle

Car Affordability Calculator

Find out how much car you can afford based on your monthly budget, down payment, trade-in value, interest rate, and loan term. Work backward from your budget to find your buying power.

Auto & Vehicle

Car Depreciation Calculator

Free Car Depreciation Calculator - see how your vehicle loses value year by year. Plan the best time to sell or trade in.

Auto & Vehicle

Car Maintenance Cost Calculator

Free Car Maintenance Calculator - estimate annual maintenance costs by car type, age, and mileage. Set a smart monthly savings goal.

Auto & Vehicle

Car Sales Tax Calculator

Free Car Sales Tax Calculator - calculate the sales tax on a vehicle purchase including trade-in credits and state/local rates.

Auto & Vehicle

Car Trade-In Calculator

Free Car Trade-In Calculator - compare trading in at a dealer versus selling privately to see which nets you more money.

Calculators