✓ Editorially reviewed by Derek Giordano, Founder & Editor · BA Business Marketing

MPG Calculator

Miles Per Gallon & Fuel Cost Per Mile

Last reviewed: April 2026

🧮
500 calculators, no signup required
Finance · Health · Math · Science · Business
nnng.com

What Is an MPG Calculator?

An MPG calculator determines your miles per gallon by dividing the distance driven by the gallons of fuel used. It also computes fuel cost per mile and can compare the fuel economy of different vehicles to help you make cost-effective driving decisions.

How to Calculate Your Car's MPG

Real-world MPG often differs from EPA estimates by 10–25%. To calculate your actual fuel economy: fill your tank completely, reset the trip odometer, drive normally until you need gas again, fill up and note the gallons, then divide miles driven by gallons used. This calculator does the math and shows your fuel cost per mile, annual fuel expense, and how much you'd save with better fuel economy. For trip cost planning, use our Gas Cost Calculator and Fuel Economy Converter.

Why Real MPG Differs from EPA

EPA tests are conducted in controlled lab conditions at moderate speeds. Real-world driving includes aggressive acceleration, highway speeds above 60 mph (which significantly increases drag), cold weather (which reduces fuel economy 15–30%), city stop-and-go driving, and carrying passengers or cargo. Air conditioning can reduce MPG by 5–25% depending on conditions. Track your MPG over multiple tanks for the most accurate picture.

Improving Your Fuel Economy

Easy wins: maintain proper tire pressure (+3% MPG), remove roof racks when not in use (+5%), avoid aggressive acceleration and braking (+10–15%), drive 55–60 mph instead of 70–75 mph (+10–15%), and use cruise control on highways (+5%). Regular maintenance (air filters, spark plugs, oil changes) keeps your engine running efficiently. For total car ownership costs, see our Gas Cost Calculator.

MPG Calculation Methods

MethodFormulaBest For
Trip MPGMiles driven ÷ Gallons usedSingle fill-up accuracy
Running averageTotal miles ÷ Total gallonsLong-term tracking
Cost per mileGas price ÷ MPGBudget planning

Understanding Fuel Economy Measurements

Miles per gallon (MPG) measures how far a vehicle travels on one gallon of fuel — a higher MPG means better fuel efficiency and lower operating costs. The US uses MPG as its standard fuel economy metric, while most other countries use liters per 100 kilometers (L/100km), which inverts the relationship (lower is better). The conversion between these systems is not linear, which causes common misconceptions: improving from 10 to 20 MPG saves twice as much fuel per mile as improving from 30 to 60 MPG, even though both represent a doubling of efficiency. This "MPG illusion" means that replacing the least efficient vehicles in a fleet produces far greater fuel savings than improving already-efficient vehicles by the same percentage. For trip cost planning, see our Road Trip Cost Calculator and Gas Cost Calculator.

Average MPG by Vehicle Type

Vehicle CategoryCity MPGHighway MPGCombined MPG
Subcompact car28–3535–4531–39
Midsize sedan25–3232–4228–36
Full-size SUV14–2019–2616–22
Pickup truck15–2220–2817–24
Hybrid sedan45–5844–5345–55
Plug-in hybrid (gas mode)30–4030–3830–38
Plug-in hybrid (electric mode)80–120 MPGe70–100 MPGe75–110 MPGe

Factors That Affect Your Real-World MPG

The EPA fuel economy ratings on window stickers represent laboratory test results under controlled conditions — real-world fuel economy varies by 10–30% depending on driving behavior, conditions, and vehicle maintenance. Speed has the largest impact: fuel economy peaks around 35–45 mph for most vehicles and drops sharply above 50 mph due to exponentially increasing aerodynamic drag. Driving at 70 mph typically uses 15–25% more fuel than driving at 55 mph. Aggressive driving — rapid acceleration, hard braking, and speeding — reduces fuel economy by 15–30% in city driving and 10–20% on the highway. Smooth, anticipatory driving that avoids unnecessary braking and acceleration is the single most effective behavior change for improving MPG.

Temperature significantly affects fuel economy. Cold weather (20°F vs 77°F) reduces MPG by 15–25% for conventional vehicles due to longer warm-up times, increased engine friction from cold oil, winter-blend gasoline (slightly lower energy content), increased electrical loads (defroster, heated seats), and higher tire rolling resistance from cold tires and road conditions. Air conditioning in hot weather reduces MPG by 5–15% depending on system efficiency and outside temperature. Tire pressure matters — every 1 PSI drop below the recommended pressure reduces fuel economy by approximately 0.2%. Under-inflated tires are both a safety hazard and a fuel economy drain. Regular maintenance (clean air filter, fresh oil, properly gapped spark plugs) maintains the engine at peak efficiency. Calculate the financial impact of fuel efficiency with our Budget Calculator.

Calculating Your Actual Fuel Costs

To calculate your actual fuel cost per mile, divide the current gas price by your real-world MPG. At $3.50/gallon with 25 MPG, your cost is $0.14 per mile or $2,100 per year at 15,000 miles driven. Improving from 25 to 35 MPG at the same gas price reduces your cost to $0.10 per mile, saving $600 annually. For comparison, the average electric vehicle costs approximately $0.04 per mile in electricity (at $0.13/kWh), saving $1,500 per year versus a 25 MPG gas vehicle. However, the upfront price difference between EVs and comparable gas vehicles ($5,000–$15,000 after tax credits) means the total cost breakeven takes 3–10 years depending on driving volume, gas prices, and electricity rates.

Annual fuel costs vary dramatically by driving pattern: a 30,000-mile-per-year commuter in a 20 MPG SUV spends $5,250 annually at $3.50/gallon, while a remote worker driving 5,000 miles per year in a 40 MPG hybrid spends only $438 — a 12x difference. For high-mileage drivers, vehicle fuel efficiency is one of the largest controllable expenses in their budget. Downsizing from a 20 MPG vehicle to a 35 MPG vehicle at 20,000 miles per year saves $1,750 annually — enough to fund a significant portion of the monthly payment on the more efficient vehicle. For related cost calculations, see our Fuel Economy Converter and Carbon Footprint Calculator.

Hypermiling and Advanced Fuel-Saving Techniques

Hypermiling is the practice of exceeding a vehicle's EPA fuel economy rating through deliberate driving techniques. Common methods include pulse-and-glide driving (accelerating gently then coasting to maintain momentum), drafting behind larger vehicles at safe distances (reducing aerodynamic drag), planning routes to minimize stops and elevation changes, and using engine-off coasting when safe and legal. Experienced hypermilers regularly achieve 20–50% above EPA ratings. Simpler techniques that any driver can use include removing unnecessary weight from the vehicle (every 100 lbs reduces MPG by approximately 1%), removing roof racks when not in use (which can reduce highway MPG by 5–15%), using cruise control on flat highways, and combining short errands into single trips (cold engines use significantly more fuel). These techniques cost nothing and collectively can save hundreds of dollars per year in fuel costs.

MPG Equivalents for Electric and Alternative-Fuel Vehicles

The EPA uses MPGe (miles per gallon equivalent) to compare electric and alternative-fuel vehicles to gasoline vehicles. MPGe converts the energy content of one gallon of gasoline (33.7 kWh) into a mileage equivalent: a vehicle consuming 33.7 kWh per 100 miles has an MPGe of 100. Most modern EVs achieve 90–140 MPGe, meaning they travel 3–4 times farther per unit of energy than comparable gas vehicles. This efficiency advantage comes from electric motors being approximately 85–90% efficient (converting stored energy to wheel motion) versus internal combustion engines at 20–40% efficiency. The remaining energy in gas engines is lost as heat. Despite this efficiency advantage, EVs' total cost-of-ownership comparison depends heavily on local electricity rates, driving patterns, purchase price, and available incentives — a comprehensive comparison should consider fuel/electricity, maintenance (EVs cost less), insurance (EVs may cost more), depreciation, and financing. Compare vehicle costs with our Auto Lease Calculator and long-term savings with our Savings Calculator.

How do I calculate MPG?
MPG = Miles Driven ÷ Gallons Used. Fill your tank, drive until you refuel, note miles and gallons. Example: 350 miles ÷ 12 gallons = 29.2 MPG.
What is good gas mileage?
30+ MPG is good for a non-hybrid car, 40+ is excellent. Hybrids achieve 45–60 MPG. Full EVs use no gas. The average new car in 2025 gets about 26 MPG.
Why is my actual MPG lower than the EPA rating?
EPA tests use controlled conditions. Real-world factors like aggressive driving, highway speed, cold weather, AC use, and cargo weight reduce MPG by 10–25% typically.
Why is my actual MPG different from the EPA rating?
EPA ratings are measured under controlled lab conditions that may not match real-world driving. Factors that reduce actual MPG include: aggressive driving, short trips (engine not fully warmed up), cold weather (can reduce MPG by 15-25%), city driving with frequent stops, using AC (reduces MPG by 5-10%), and carrying heavy loads. Most drivers get 10-20% lower MPG than the EPA combined rating.
Does AC use more gas than open windows?
At speeds under 40-45 mph, opening windows uses less fuel than AC. Above 45 mph, the aerodynamic drag from open windows becomes significant enough that AC is more fuel-efficient. On the highway, keep windows up and use AC. In city driving at low speeds, open windows are the more fuel-efficient choice. The difference in either case is small — about 1-3 MPG.

See also: Gas Cost · Fuel Economy Converter · Carbon Footprint · Budget Calculator · Tip Calculator

How to Use This Calculator

  1. Enter the distance traveled — Input the miles driven since your last fill-up. Use your trip odometer for the most accurate measurement. Reset it at each fill-up.
  2. Enter the gallons used — Input the number of gallons pumped to refill the tank. For accurate MPG, fill the tank completely each time — partial fills skew the calculation.
  3. Optionally enter the fuel price — Input your per-gallon fuel cost to see the cost per mile. This puts MPG into dollar terms that are easier to compare between vehicles.
  4. Review your MPG and cost per mile — The calculator shows miles per gallon, gallons per 100 miles (a more linear comparison metric), and your fuel cost per mile for budgeting.

Tips and Best Practices

Highway MPG is typically 15–30% better than city MPG. Constant-speed cruising is far more efficient than stop-and-go driving. If your calculated MPG is much lower than the EPA estimate, heavy city driving, aggressive acceleration, or mechanical issues may be the cause. EPA estimates assume a mix of ~55% highway and 45% city.

Aggressive driving reduces fuel economy by 15–33%. Rapid acceleration, hard braking, and speeding above 50 mph all waste fuel. Every 5 mph above 50 mph is roughly equivalent to paying an extra $0.20–$0.30 per gallon. Smooth, moderate acceleration and maintaining the speed limit are the easiest ways to improve MPG.

Tire pressure affects MPG more than most people realize. Each 1 psi below recommended pressure reduces fuel economy by ~0.2%. Tires typically lose 1 psi per month naturally and 1 psi per 10°F temperature drop. Checking pressure monthly and inflating to the door jamb specification (not the tire sidewall maximum) optimizes both fuel economy and tire life.

Cost per mile is a better comparison metric than MPG. Going from 15 to 20 MPG saves more fuel (per 10,000 miles) than going from 35 to 50 MPG. This is because MPG is a ratio — improvements at low MPG have outsized impact. Gallons per 100 miles is a more linear metric for comparing vehicles. See our Road Trip Cost Calculator for trip budgeting.

See also: Road Trip Cost Calculator · Gas Cost Calculator · Fuel Economy Converter · True Cost of Car Calculator

📚 Sources & References
  1. [1] EPA. Fuel Economy Testing. FuelEconomy.gov
  2. [2] DOE. Fuel Economy Tips. Energy.gov
  3. [3] AAA. Fuel Savings Tips. AAA.com
  4. [4] SAE International. Vehicle Fuel Economy. SAE.org
Editorial Standards — Every calculator is built from peer-reviewed formulas and official data sources, editorially reviewed for accuracy, and updated regularly. Read our full methodology · About the author