Gas Mileage Calculator
Your real gas mileage is almost always lower than the number printed on the window sticker, and that quiet gap costs you money at every single fill-up. This gas mileage calculator uses your own miles and gallons to show your true MPG, your cost per mile, and exactly what a full year of driving costs.
Quick answer: To calculate gas mileage, divide the miles you drove by the gallons of gas you burned, so 300 miles on 12 gallons works out to exactly 25 MPG. For cost per mile, multiply those gallons by the price you paid per gallon and then divide the total by the miles you covered.
How to Calculate Gas Mileage (Odometer Method)
The odometer method is the most accurate way to measure real mileage, and it costs you nothing beyond paying attention at one extra fill-up. Start by filling the tank and either writing down the odometer reading or resetting your trip meter back to zero before you pull away. Drive the way you normally do until the gauge falls to around a quarter tank, then return to the same pump and fill the tank all the way up again. Note how many gallons the pump added and how many miles you covered since the last fill, because those two numbers are all the calculation ever needs. Dividing the miles by the gallons gives you the gas mileage you genuinely get in your own traffic, terrain, and driving style. A single tank gives a rough figure, while averaging three or four tanks smooths out the odd highway trip or heavy city week that would otherwise skew one lone reading.
The trip meter method reaches the same answer with far less arithmetic, since you simply reset the counter at one fill-up and divide the trip miles by the gallons you add at the next.
Gas Mileage by the Tank Fill Method
The tank fill method is the simplest version of the same measurement, and it suits drivers who would rather not track odometer numbers at all. Fill the tank until the pump clicks off on its own, drive until you are ready for the next fill, and then fill it back to that identical click once more. The gallons the second fill adds are exactly the gallons you burned since the first, so dividing your trip miles by that figure hands you an honest MPG. The single rule that keeps this method accurate is stopping at the same automatic click every time, because topping off by hand quietly adds fuel the calculation never counted.
Gas Mileage Formula (With a Worked Example)
Every gas mileage calculator runs on one short formula, where gas mileage in MPG equals the miles you drove divided by the gallons you used. Suppose your trip meter shows 348 miles and the pump takes 13.2 gallons to fill the tank, which divides out to a clean 26.4 MPG for that tank. Turning mileage into money takes one more step, so multiplying 13.2 gallons by a $3.55 pump price gives $46.86, or roughly 13.5 cents for every mile you drove. For the yearly view, divide your annual mileage by your MPG to find gallons per year and then multiply that by the gas price you expect to pay. A driver covering 13,500 miles at 26.4 MPG burns about 511 gallons, which lands near $1,815 a year, and the Cost Per Mile Calculator tracks that running cost across the whole year if you want the wider picture.
How Many Miles Does a Gallon of Gas Get?
A single gallon of gas carries the average car somewhere between 20 and 30 miles, though the real-world spread runs wider than that tidy range suggests. An efficient compact sedan can stretch past 35 miles on the highway, while a full-size pickup or an older SUV may cover only 15 to 18 on the exact same gallon. Hybrids rewrite the math again, with many models crossing 45 to 50 miles per gallon once city and highway driving are blended together. Distance per gallon also refuses to sit still, because the same car returns very different numbers crawling through stop-and-go traffic versus holding a steady 60 mph cruise. Acceleration is where gasoline actually gets spent, which is precisely why one universal miles-per-gallon answer never fits every driver or every trip.
Compare Two Cars: Which One Saves More Gas?
This is the point where a mileage number stops being trivia and starts protecting your wallet, since two cars that look nearly identical on paper can sit hundreds of dollars apart over a year. Picture a 28 MPG sedan parked next to a 22 MPG crossover, with both driven 14,000 miles a year while gas holds steady at $3.50 a gallon. The sedan burns roughly 500 gallons for about $1,750, while the thirstier crossover burns around 636 gallons and costs close to $2,227 for the very same trips. That works out to nearly $480 every year, or almost $2,400 across five years, spent on nothing more than the difference in fuel economy. The comparison tab in the calculator above runs this for any two vehicles you enter, showing each car’s annual cost and the exact dollar gap between them. Reach for it before you buy, before a long road trip, or whenever a two-car household is deciding which vehicle actually earns its place in the driveway.
| Yearly Miles | 22 MPG Car Cost | 28 MPG Car Cost | You Save |
| 8,000 | $1,273 | $1,000 | $273 |
| 12,000 | $1,909 | $1,500 | $409 |
| 15,000 | $2,386 | $1,875 | $511 |
| 20,000 | $3,182 | $2,500 | $682 |
Based on $3.50 per gallon, and every gap widens as gas prices climb higher.
What Is Good Gas Mileage for a Car?
Good gas mileage for a modern car lands around 30 MPG or higher when measured across combined city and highway driving. Anything above 40 MPG counts as excellent and almost always points to a hybrid or a small, aerodynamic sedan built specifically for efficiency. Figures under 20 MPG sit squarely in thirsty territory, which stays perfectly normal for large trucks, older V8 engines, and heavy three-row SUVs. Context still matters more than the raw number, because a big SUV returning 24 MPG is doing well for its class while a compact stuck at that same 24 MPG clearly has room to improve. Judging your figure against similar vehicles rather than against a hybrid hatchback gives you an honest read on whether your car is performing or quietly slipping.
Average Gas Mileage by Vehicle Type
The ranges below reflect typical combined MPG for gas-powered US models from 2020 onward, and your own result will shift with engine size, driving style, and vehicle condition.
| Vehicle Type | Typical Combined MPG |
| Compact sedan | 30 to 38 |
| Midsize sedan | 26 to 33 |
| Small SUV / crossover | 25 to 30 |
| Midsize SUV | 21 to 26 |
| Full-size SUV | 16 to 20 |
| Half-ton pickup truck | 18 to 23 |
| Minivan | 22 to 26 |
| Hybrid car | 45 to 55 |
Treat these as a working yardstick, because a car falling well below its class range usually points straight to the real-MPG and fuel-saving reasons covered in the next two sections.
How to Improve Your Gas Mileage
Better mileage rarely arrives from one dramatic fix, and instead stacks up from several small habits that each trim a little off your fuel burn. Easing off hard acceleration and sudden braking matters most of all, since aggressive driving can drain 15 to 30 percent of your mileage on the highway alone. Keeping tires inflated to the pressure printed on the door jamb protects both efficiency and tread, because under-inflated tires quietly drag every mile downward. Clearing dead weight out of the trunk helps as well, since roughly every 100 pounds you haul around shaves about one percent off the MPG of a smaller car. Slowing down on the interstate pays back fastest, because fuel economy falls off sharply above 60 mph and easing from 75 down to 65 can hand back several miles per gallon. Combining short errands into a single warm-engine trip, staying current on oil changes and air filters, and pulling off an unused roof rack round out a routine that adds up to real gallons across a year.
Why Your Real MPG Is Lower Than the EPA Rating
The MPG printed on a window sticker comes from standardized laboratory tests run under carefully controlled conditions that real roads never quite match. Your climate, your traffic, and your everyday habits all pull the number downward, and a gap of 10 to 20 percent below the sticker is normal rather than any kind of warning sign. Cold weather hits the hardest, because a cold engine runs rich until it warms and winter fuel blends carry slightly less energy, which makes short January trips the worst case for mileage. Running the air conditioning, idling in a drive-through line, grinding through city stop-and-go, and cruising above 70 mph all cost fuel the lab test barely accounts for. Calculating your own gas mileage beats trusting the sticker for exactly this reason, since the same car honestly returns different numbers in the heat of July and the chill of January.
Common Gas Mileage Mistakes to Avoid
The most common mistake is failing to fill the tank fully at both ends of the measurement, because a first fill that clicks off early paired with a second that tops off completely throws your gallons and your MPG right off. Measuring across too short a distance causes almost as much trouble, since a 15-mile sample is mostly noise that a couple of red lights can swing on their own. Giving yourself a full tank or more before trusting the result keeps one unusual drive from distorting the entire picture. Confusing gallons with dollars trips up plenty of drivers too, and typing the amount you paid into the gallons field produces a wildly wrong answer, so always enter the actual gallons shown on the pump or your receipt.
How This Calculator Works
This tool keeps the math fully transparent, so you can trust every figure it returns rather than taking the result on faith. Gas mileage comes straight from miles driven divided by gallons used, which is the same formula the odometer and tank fill methods rely on. Fuel cost is the gallons you used multiplied by the price per gallon you enter, and the yearly estimate simply scales that cost across the annual mileage you provide. The calculator asks only for numbers you can read off your odometer, your pump, and your receipt, and it assumes those readings come from full-tank fill-ups for the cleanest possible result. Because it works entirely from your own inputs, this gas mileage calculator doubles as an MPG calculator and a miles per gallon calculator, since all three names describe the exact same number.
Related Fuel Calculators
This gas mileage calculator anchors a wider set of fuel tools, and the ones below take over wherever your question heads next. The MPG Calculator converts miles per gallon into metric figures like liters per 100 km, the Fuel Unit Converter switches cleanly between gallons, liters, and kilometers, and the Monthly Fuel Cost Calculator folds your gas spend neatly into a household budget.
Frequently Asked Questions
Methodology and Sources
This gas mileage calculator uses the standard fuel economy formula, dividing distance traveled by fuel consumed to produce a clean miles-per-gallon figure. Cost results multiply the gallons you used by the price per gallon you enter, and the yearly estimate scales that outcome across the annual mileage you provide. Every calculation runs instantly inside your browser, and nothing you type is ever stored or sent anywhere. The vehicle MPG ranges draw on published EPA fuel economy data alongside typical real-world results for gas-powered US models from 2020 onward, so treat them as reliable benchmarks rather than exact guarantees for any single car.
Reviewed for accuracy by the FuelConsumptionCalc editorial team.
Last updated September 2026.
