Fuel Cost Calculator
Work out the gas cost of any trip or a full year of driving from your mileage, fuel economy, and pump price. Results update as you type.
Fuel cost
$62.50
500 miles at 28 MPG uses about 17.9 gallons of gas.
- Distance500 miles
- Fuel economy28 MPG
- Gallons needed17.9 gal
- Fuel cost$62.50
Private by design: this runs entirely in your browser. Nothing you type is stored or sent anywhere.
How it works
The fuel cost of any drive comes down to how many gallons you burn and what each gallon costs at the pump:
A 500-mile drive at 28 MPG uses about 17.9 gallons. At $3.50 a gallon, that is $62.50 of gas. Plug in your yearly mileage instead of a trip distance and the same math gives your annual fuel bill.
Every result is checked against independent reference math. See how we test the calculators →
A worked example: a 500-mile trip at 28 MPG
A 500-mile road trip is on the calendar, and you want the gas cost pinned down before you pull out of the driveway. Your car averages 28 MPG, and the station near you is charging $3.50 a gallon this week.
At 28 MPG, 500 miles burns about 17.9 gallons, and at $3.50 each that works out to $62.50 in fuel for the drive. Knowing the number up front makes it easy to split with passengers or slot into a weekend budget instead of guessing at the register.
The vehicle you take matters more than the distance: the same trip in a 45 MPG hybrid costs just $38.89, while a 22 MPG SUV pushes it to $79.55, a $41 swing. Enter your own miles, MPG, and local gas price to price any trip in seconds.
Squeezing more from a tank
- Ease off the pedal. Hard acceleration and high-speed cruising hurt MPG the most, so a smoother, steadier pace stretches every gallon.
- Keep tires inflated. Underinflated tires quietly cut fuel economy, so a quick check every month pays for itself at the pump.
- Combine trips. A warm engine is far more efficient than a cold one, so bundling errands into one loop beats several cold starts.
City and highway are two different numbers
A car does not get one fuel economy. The window sticker lists a city figure and a highway figure for a reason: stop-and-go driving burns far more fuel than steady cruising. For an accurate estimate, use the number that matches the driving you are pricing.
- City driving costs more per mile. Frequent stops, idling, and cold starts drag economy down, so a short urban trip can use more gas than the distance suggests.
- Highway is the efficient zone. A warm engine at a steady speed sips fuel, which is why long trips often beat the sticker’s combined figure.
- Weather and terrain shift it too. Cold mornings, running the air conditioning, hills, and headwinds all pull real MPG below the rated number.
Turning a trip figure into a yearly budget
The same math that prices one drive prices a whole year of them. Put your annual mileage in the distance field instead of a trip length, and the result becomes your yearly fuel bill, which is exactly the number you want for a budget or a two-car comparison.
- Use realistic annual miles. Many drivers land somewhere around 10,000 to 15,000 miles a year, but use your own odometer history for the truest figure.
- Plan for price swings. Gas prices move with the seasons and the wider market, so budget a little above today’s price to avoid a shortfall.
- Compare cars on the yearly number. The gap between two cars’ annual fuel bills is far easier to weigh than a difference of a few MPG on paper.
What actually moves the fuel bill
Three inputs set your fuel cost, and you control them to very different degrees. Understanding which lever does the most work keeps you from sweating the small stuff while the big lever sits untouched.
- Miles are the biggest lever. Fuel scales straight with distance, so driving less or combining trips cuts the bill more reliably than anything else.
- MPG is a slower lever. A more efficient car helps, but the gain shrinks the higher your MPG already is, so it matters most when replacing a thirsty vehicle.
- Gas price is out of your hands. You cannot set the pump price, but you can time fill-ups, use cheaper stations, and skip premium unless your car requires it.
The habits that add up over a year
Trip by trip, a few cents of wasted fuel feels trivial, but stretched across a year of driving those small habits become real money. The pump price is fixed, yet how you drive and maintain the car quietly sets how far each gallon takes you.
- Smooth driving wins the most. Hard acceleration and high-speed cruising are the biggest fuel wasters, so an easier, steadier pace stretches every tank noticeably over a year.
- Keep tires at the right pressure. Underinflated tires add rolling resistance that quietly drinks fuel, so a monthly check pays for itself at the pump.
- Shed dead weight and drag. A loaded trunk or a roof rack left on all year costs fuel every mile, so clear off what you are not using.
- Maintain the engine. Fresh air filters, good spark plugs, and the right oil keep an engine at its rated efficiency rather than drifting below it.
- Combine and plan trips. A warm engine sips less than a cold one, so bundling errands into one loop beats a string of cold starts.
- Ease off on the highway. Fuel economy falls off sharply at higher speeds, so backing off even a few miles per hour on a long drive noticeably stretches the tank.
Common questions
How do I find my real MPG?
Fill the tank, reset the trip meter, then at the next fill-up divide the miles driven by the gallons it took to refill. A couple of tanks averaged together gives a reliable number for your actual driving.
Does highway or city driving change it?
A lot. City driving with frequent stops usually returns lower MPG than steady highway cruising. Use the figure that matches the trip you are pricing for the closest estimate.
What is the easiest way to cut fuel cost?
Gentle acceleration, steady speeds, correct tire pressure, and combining short trips all help right away. Over the longer term, a more efficient vehicle makes the biggest difference.
Is premium gas worth it?
Only if your car requires it. For engines designed for regular, premium offers no benefit and just costs more. Check your owner’s manual before paying for a higher grade.
Can I use this for a whole year?
Yes. Enter your annual mileage in the distance field and the result becomes your yearly fuel cost, which is handy for budgeting or comparing two cars.
Sources & further reading
- FuelEconomy.gov, Driving more efficiently: driving habits that cut fuel use
- FuelEconomy.gov, Your mileage will vary: why real MPG differs from the label
- FuelEconomy.gov, Selecting the right octane fuel: when premium gas is worth paying for
- EIA, Gasoline and diesel fuel update: weekly pump prices by region
Spot an error in the math or the wording? Tell us and we'll fix it, usually within a day.