Gas Calculator – Fuel Cost & Savings Estimator

Estimate fuel costs for road trips, daily commutes, or any drive. Enter your distance, MPG, and local gas price to instantly see total fuel cost, gallons needed, and cost per mile — free, no sign-up required.

Gas Calculator

Results update automatically

miles
MPG
$/gal

Your Results

Instant calculation

Total Fuel Cost

$42.00

For this trip

Gallons Needed

$12.00

Cost Per Mile

$0.14

Distance

$300.00

Tips
  • Find your MPG from your car manual or fuel economy.gov
  • Highway driving typically gets better MPG than city driving

Road Trip Example

500-mile trip in a car averaging 28 MPG at $3.40/gal costs about $60.71 in fuel. Use the calculator above to plug in your exact numbers.

Gas Savings Example

Upgrading from a 20 MPG SUV to a 35 MPG sedan saves about $408/year on a 12,000-mile driving year at $3.40/gal. Run both scenarios in the calculator to see your personal savings.

Daily Commute Example

A 30-mile round-trip commute in a 25 MPG car at $3.40/gal costs about $4.08/day — roughly $1,020/year for 250 workdays. Budget it with our Budget Calculator.

How to Use This Gas Calculator

This free gas calculator works for any scenario — road trips, daily commutes, comparing vehicles, or estimating monthly fuel budgets. You need just three inputs:

  1. Distance (miles): The total one-way or round-trip mileage for your journey. Use Google Maps or your car's odometer.
  2. MPG (Miles Per Gallon): Your vehicle's fuel efficiency. Find it on fueleconomy.gov or in your owner's manual.
  3. Gas Price ($/gallon): Check GasBuddy or the GasBuddy app for real-time prices near you or along your route.

The calculator instantly returns your total fuel cost, gallons needed, and cost per mile. No sign-up, no ads, no delays.

Gas Cost Formula (How It's Calculated)

The math behind any gas use or fuel cost calculation is straightforward:

Gallons Needed = Distance ÷ MPG

Total Fuel Cost = Gallons Needed × Gas Price per Gallon

Cost Per Mile = Gas Price per Gallon ÷ MPG

Example — 300-mile road trip: If your car gets 25 MPG and gas costs $3.50/gallon:

  • Gallons needed: 300 ÷ 25 = 12 gallons
  • Total cost: 12 × $3.50 = $42.00
  • Cost per mile: $3.50 ÷ 25 = $0.14/mile

Planning Gas Costs for a Road Trip

Road trip fuel planning requires a few extra steps beyond the basic formula. Here's the process experienced travelers use:

  1. Get your route distance. Use Google Maps to find the exact mileage. For multi-stop trips, add each leg together.
  2. Use your highway MPG. Most vehicles get better fuel economy on the highway than in the city. Look for the highway MPG specifically on your window sticker or fueleconomy.gov.
  3. Check gas prices along the route. Prices vary significantly by state. Use the GasBuddy trip feature to estimate average costs. For example, California often runs $0.70–$1.00 above the national average.
  4. Add a 10–15% buffer. Account for traffic detours, air conditioning use in summer, mountain grades, and headwinds.

💡 Road Trip Fuel Saving Tip

Fill up just before entering high-price states. States like California, Hawaii, and Washington have some of the highest gas taxes in the US. If you're crossing into one of these states, topping off your tank in the previous state can save $5–$15 on a full tank.

Using This as a Gas Savings Calculator

This calculator doubles as a gas savings calculator when you run two scenarios and compare the results. Common use cases:

  • Compare two vehicles: Run the same distance with your current car's MPG, then again with a new car's MPG to see the annual fuel savings.
  • Compare two routes: Estimate if a longer highway route (better MPG) is cheaper than a shorter city route (worse MPG).
  • Carpool savings: Divide the fuel cost by the number of passengers to calculate per-person cost and see how much carpooling saves.
  • EV vs gas comparison: Calculate your current monthly gas spending, then compare with an electric vehicle's per-mile energy cost to evaluate switching.

Average MPG by Vehicle Type (2026–2026)

If you're not sure of your MPG, use these averages as starting points in the calculator:

Vehicle TypeCity MPG (avg)Highway MPG (avg)Combined MPG (avg)
Compact Car (e.g., Toyota Corolla)293832
Midsize Sedan (e.g., Honda Accord)273630
Compact SUV (e.g., Toyota RAV4)263228
Midsize SUV (e.g., Honda Pilot)202723
Full-Size Pickup Truck (e.g., F-150)182420
Hybrid (e.g., Toyota Prius)545052
Minivan (e.g., Honda Odyssey)192822

Source: EPA fueleconomy.gov estimates. Actual MPG varies by model year, trim, and driving conditions.

10 Ways to Improve Your Gas Mileage and Cut Fuel Costs

Before your next road trip or commute, these proven strategies can lower your fuel costs by 5–30%:

  1. Maintain correct tire pressure. Under-inflated tires increase rolling resistance. Check pressure monthly — it can improve MPG by 0.5–3%.
  2. Use cruise control on the highway. Steady speed is far more efficient than repeated acceleration. Can improve highway MPG by 7–14%.
  3. Avoid aggressive driving. Rapid acceleration and hard braking waste fuel. Smooth driving saves 10–40% in city conditions.
  4. Remove roof racks when not in use. An empty roof rack increases aerodynamic drag by up to 25% at highway speeds.
  5. Reduce idling. A modern engine uses 0.2–0.5 gallons per hour at idle. Shut off if you'll wait more than 60 seconds.
  6. Service your engine on schedule. A clean air filter and fresh spark plugs keep combustion efficient. A clogged filter alone can cut MPG by up to 10%.
  7. Use the recommended motor oil grade. Using the wrong viscosity oil can reduce MPG by 1–2%.
  8. Combine errands into one trip. Cold engine starts consume more fuel. Combining stops into a single warm-engine trip saves fuel significantly.
  9. Park in shade when possible. A cooler car interior means less A/C usage, which improves effective MPG by 5–25% in hot weather.
  10. Use a gas price app. GasBuddy, Waze, and AAA TripTik can find the cheapest stations along your route — savings of $0.30–$0.70/gallon add up fast on long trips.

📊 Add Fuel Costs to Your Monthly Budget

Once you know your monthly fuel spend, add it to a complete financial plan. Our tools help you see the full picture:

About This Gas Calculator

This tool was built by the team at USA Salary Tools, a free financial calculator platform serving US workers since 2022. Our calculators are reviewed for accuracy and updated regularly to reflect current fuel economy data and US gas price trends.

All calculations use the standard US gallon (not imperial). MPG figures referenced in this page are sourced from the EPA's fueleconomy.gov, the official US government fuel economy guide. Gas price estimates are based on EIA (US Energy Information Administration) national averages.

Have a suggestion or found an issue? Contact us. We read every message.

Frequently Asked Questions About Gas Costs

Divide your trip distance (miles) by your vehicle's MPG to get gallons needed, then multiply by the current gas price per gallon. Example: 300 miles ÷ 25 MPG = 12 gallons × $3.50/gal = $42 total. Add a 10–15% buffer for detours and traffic.
Check your owner's manual, look up your vehicle on fueleconomy.gov, or calculate it yourself: fill up completely, reset your trip odometer, drive normally, then fill up again and divide miles driven by gallons used.
EPA ratings are measured under controlled lab conditions. Real-world MPG varies with driving habits, traffic, weather, cargo weight, tire pressure, and road grade. City driving typically yields 15–20% lower MPG than the EPA estimate.
Only if your vehicle requires or recommends premium fuel. Using premium in a car designed for regular gasoline provides no measurable MPG benefit and costs more per gallon. Check your fuel door or owner's manual for the manufacturer's recommendation.
A typical 500-mile road trip in a vehicle averaging 28 MPG uses about 17.9 gallons. At roughly $3.20–$3.50 per gallon (2026 US average), that's approximately $57–$63 in fuel costs one-way.
A gas savings calculator compares the fuel cost of two vehicles or routes so you can see exactly how much you save by driving a more fuel-efficient car, taking a shorter route, or carpooling. Enter each scenario's distance, MPG, and gas price to compare.
The most effective ways: (1) maintain correct tire pressure (+1–3% MPG), (2) remove unnecessary weight, (3) avoid aggressive acceleration and hard braking, (4) use cruise control on highways, (5) service your engine regularly, and (6) use apps like GasBuddy to find the cheapest gas nearby.
Gas use (gallons) = Distance (miles) ÷ MPG. For example, driving 150 miles in a car that gets 30 MPG requires 5 gallons. Multiply by your local gas price to get the dollar cost.