Gas Mileage Calculator

Calculate MPG and fuel costs for trips

mi
gal
Embed this calculator

How to Use This Calculator

This gas mileage calculator offers two essential modes to help you track and manage your vehicle's fuel consumption effectively. To calculate your MPG, start by selecting the MPG mode using the toggle buttons at the top. Enter the total miles you have driven since your last fill-up in the first field, then input the number of gallons it took to refill your tank in the second field. Click Calculate to see your fuel efficiency instantly.

For accurate MPG tracking, always fill your tank completely and reset your trip odometer at each fill-up. When you refuel next, note the miles traveled and gallons added before resetting again. This method gives you precise measurements rather than estimates. Recording your MPG over multiple fill-ups helps identify trends and potential maintenance issues, such as a sudden drop in efficiency that might indicate a clogged air filter or tire problems.

To estimate trip costs, switch to Trip Cost mode and enter your planned distance, your vehicle's average MPG, and the current gas price. The calculator instantly shows gallons needed, total fuel cost, and cost per mile for budgeting purposes.

Understanding Fuel Economy

Fuel economy, measured as miles per gallon (MPG) in the United States, represents the distance your vehicle can travel on one gallon of fuel. This metric serves as the primary indicator of vehicle efficiency and directly impacts your transportation costs. Understanding what affects your MPG helps you make smarter decisions about driving habits, vehicle maintenance, and even your next car purchase.

How MPG Works

The MPG calculation divides the miles traveled by the gallons of fuel consumed. A vehicle achieving 30 MPG travels 30 miles on each gallon of gasoline. Higher MPG means better efficiency and lower fuel costs. The Environmental Protection Agency (EPA) tests all vehicles sold in the United States and publishes official fuel economy ratings that appear on window stickers at dealerships.

City vs Highway MPG

Vehicles typically have different MPG ratings for city and highway driving because these conditions demand different things from your engine. City driving involves frequent stops, acceleration from traffic lights, and lower speeds, which reduces efficiency. Highway driving maintains steady speeds with minimal braking, allowing the engine to operate in its most efficient range. Most vehicles achieve 20 to 30 percent better MPG on highways than in city traffic.

Factors Affecting Mileage

Multiple factors influence your real-world fuel economy beyond the EPA ratings. Aggressive driving with rapid acceleration and hard braking can reduce MPG by up to 33 percent. Excessive idling wastes fuel without covering any distance. Vehicle weight matters significantly, as every 100 pounds of cargo reduces efficiency by approximately 1 percent. Roof racks and cargo carriers increase aerodynamic drag, lowering highway MPG by up to 25 percent.

EPA Ratings Explained

EPA fuel economy ratings come from standardized laboratory tests using dynamometers rather than actual road driving. These tests simulate various conditions including city traffic, highway cruising, high-speed driving, air conditioning use, and cold temperature starts. While useful for comparing vehicles, real-world results typically fall 10 to 20 percent below EPA estimates due to individual driving habits and conditions not captured in testing.

Calculating Fuel Costs

Understanding your fuel costs requires knowing both your MPG and current gas prices. To find your cost per mile, divide the price per gallon by your MPG. For example, with gas at $3.50 per gallon and a vehicle achieving 28 MPG, your fuel cost is approximately 12.5 cents per mile. Multiply this by your annual mileage to estimate yearly fuel expenses and compare ownership costs between different vehicles.

Frequently Asked Questions About Fuel Economy

What is considered good MPG for a car?

Good MPG varies by vehicle type and size. For compact cars, 30 to 40 MPG is considered good, while midsize sedans typically achieve 25 to 35 MPG. SUVs generally range from 22 to 30 MPG, and full-size trucks average 15 to 22 MPG. Hybrid vehicles often exceed 45 MPG, and some hybrids achieve over 50 MPG in city driving. Compare your vehicle's MPG to its EPA rating and similar vehicles in its class to gauge performance.

How can I improve my fuel economy?

Several proven strategies improve fuel economy. Maintain steady speeds and avoid aggressive acceleration, which can improve MPG by up to 33 percent. Keep your tires properly inflated to the pressure listed on your door jamb sticker. Remove unnecessary weight from your vehicle and take off roof racks when not in use. Use cruise control on highways and avoid excessive idling. Regular maintenance including air filter replacement, spark plug checks, and proper oil changes keeps your engine running efficiently.

Why does my MPG vary so much between fill-ups?

MPG fluctuations occur due to changing driving conditions and habits. Short trips with cold engine starts are less efficient than longer highway drives. Weather affects efficiency, with cold temperatures reducing MPG by up to 22 percent due to denser air, increased rolling resistance, and longer warm-up times. Traffic patterns, terrain, and even fuel quality vary, all impacting your measured efficiency. Track your MPG over several fill-ups to establish a reliable average.

Do hybrid vehicles really save money on fuel?

Hybrid vehicles typically achieve 40 to 60 percent better fuel economy than comparable conventional vehicles, resulting in significant savings for high-mileage drivers. A driver covering 15,000 miles annually in a 25 MPG conventional car uses 600 gallons yearly. The same driver in a 50 MPG hybrid uses only 300 gallons, saving $1,050 annually at $3.50 per gallon. However, hybrids often cost more upfront, so calculate your break-even point based on your driving habits and fuel prices.

What is the difference between MPG and L/100km?

MPG (miles per gallon) and L/100km (liters per 100 kilometers) are inverse measurements of fuel economy. MPG measures distance traveled per unit of fuel, while L/100km measures fuel consumed per unit of distance. Higher MPG indicates better efficiency, but lower L/100km indicates better efficiency. To convert, divide 235.21 by the MPG to get L/100km, or divide 235.21 by L/100km to get MPG. For example, 30 MPG equals approximately 7.8 L/100km.

How does winter weather affect my MPG?

Cold weather significantly reduces fuel economy through multiple mechanisms. Engines take longer to reach optimal operating temperature, running rich with extra fuel during warm-up. Tire pressure drops in cold weather, increasing rolling resistance. Winter-blend gasoline contains less energy per gallon. Increased use of defrosters, heated seats, and headlights adds electrical load. Short trips are particularly affected, with some vehicles experiencing up to 22 percent lower MPG in cold weather compared to mild conditions.

Does tire pressure really affect my gas mileage?

Yes, tire pressure significantly impacts fuel economy. Underinflated tires increase rolling resistance, forcing your engine to work harder and consume more fuel. The Department of Energy estimates that properly inflated tires improve gas mileage by up to 3 percent. Every 1 PSI drop below recommended pressure reduces fuel economy by approximately 0.2 percent. Check tire pressure monthly when tires are cold, as driving heats tires and temporarily increases pressure readings.

How do my driving habits impact fuel economy?

Driving habits have a dramatic effect on fuel consumption. Aggressive driving including rapid acceleration, speeding, and hard braking can lower gas mileage by 15 to 30 percent on highways and 10 to 40 percent in stop-and-go traffic. Observing speed limits is important because gas mileage decreases rapidly above 50 mph. Using cruise control on highways maintains constant speed and improves efficiency. Anticipating traffic flow and coasting to stops rather than braking hard conserves momentum and fuel.

MPG Examples and Calculations

Daily Commuter Calculation

Consider a daily commuter traveling 30 miles round-trip to work, five days per week. That totals 150 miles weekly or approximately 7,500 miles annually for commuting alone. In a vehicle averaging 28 MPG, this commute requires about 268 gallons of fuel per year. At $3.50 per gallon, the annual commuting fuel cost is approximately $938. Upgrading to a 40 MPG vehicle reduces consumption to 188 gallons and $656 annually, saving $282 per year on commuting costs alone.

Road Trip Planning Example

Planning a 1,200-mile family vacation requires careful fuel budgeting. In an SUV averaging 24 MPG, the trip requires 50 gallons of fuel. With gas prices varying from $3.25 to $3.75 along the route, expect to spend between $162 and $188 on fuel. Knowing this in advance helps plan stops and budget accurately. Using apps to find cheaper gas stations along the route can save $10 to $20 on a trip this length.

Comparing Vehicles Before Purchase

When shopping for a new vehicle, MPG differences translate directly to long-term ownership costs. Comparing a 22 MPG truck to a 32 MPG crossover for a driver covering 12,000 miles annually shows significant differences. The truck consumes 545 gallons yearly at a cost of $1,909. The crossover uses only 375 gallons for $1,313 annually. Over a five-year ownership period, the more efficient vehicle saves $2,980 in fuel costs, potentially offsetting a higher purchase price.

Fuel Saving Tips

Maintain Steady Speeds: Avoid rapid acceleration and sudden braking. Smooth, gradual speed changes conserve momentum and fuel. Use cruise control on highways to maintain consistent speeds and prevent the small accelerations that waste gas.

Keep Tires Properly Inflated: Check tire pressure at least monthly using a reliable gauge. Inflate to the pressure specified on your door jamb sticker, not the maximum shown on the tire sidewall. Properly inflated tires reduce rolling resistance and improve fuel economy by up to 3 percent.

Reduce Idling Time: Modern engines do not need to warm up by idling. If you will be stopped for more than 30 seconds (except in traffic), turning off your engine saves fuel. Idling for 10 seconds uses more fuel than restarting, and excessive idling wastes a quarter to a half gallon of fuel per hour.

Plan Efficient Routes: Combine errands into single trips to avoid multiple cold starts, which are less fuel-efficient. Use navigation apps to avoid traffic congestion and find the most direct routes. Driving during off-peak hours reduces time spent idling in traffic and improves overall fuel economy.

Maintain Your Vehicle: Follow your manufacturer's maintenance schedule. Replace air filters when dirty, as a clogged filter can reduce MPG by up to 10 percent. Keep your engine properly tuned, use the recommended grade of motor oil, and ensure your oxygen sensors and fuel injectors are functioning correctly.

The MPG Formula

The calculation for miles per gallon is straightforward:

MPG = Miles Driven / Gallons Used

For trip cost calculations:

Gallons Needed = Trip Distance / Vehicle MPG

Fuel Cost = Gallons Needed x Price Per Gallon

Cost Per Mile = Price Per Gallon / Vehicle MPG

These formulas work for any vehicle using gasoline or diesel fuel. For electric vehicles, similar calculations use kilowatt-hours instead of gallons and electricity rates instead of fuel prices.

Average MPG by Vehicle Type

  • Compact car: 28 to 35 MPG
  • Sedan: 25 to 32 MPG
  • SUV: 20 to 28 MPG
  • Truck: 15 to 22 MPG
  • Hybrid: 45 to 55 MPG
  • Plug-in hybrid: 50 to 100 MPGe (combined)

Did you know?

  • Driving at 55 mph versus 75 mph can improve fuel economy by about 25 percent due to reduced aerodynamic drag.
  • The United States fleet average is 24.4 MPG while the European average exceeds 40 MPG, largely due to smaller vehicles and more diesel engines.
  • Every 100 pounds of cargo in your vehicle reduces fuel economy by about 1 percent, with smaller vehicles affected more than larger ones.
  • Idling for more than 10 seconds uses more fuel than restarting your engine.
  • The first fuel economy standards in the US were established in 1975 and required 18 MPG for cars by 1978.
Created by
The Ugly Empire Team
Software engineers and data specialists with backgrounds in financial services, mathematics, and educational technology. Our team builds tools using industry-standard formulas verified against authoritative sources.
Last reviewed: January 2026
Regular accuracy audits
Formulas from authoritative sources
Privacy-first: calculations run locally
Disclaimer: This calculator provides estimates for informational purposes only. Results should not be considered financial, legal, medical, or professional advice. Always consult qualified professionals for important decisions. We strive for accuracy but cannot guarantee results will match real-world outcomes due to varying factors and individual circumstances.