How Much Does It Cost to Drive? Calculating Gas Costs for Any Trip
Whether you are planning a cross-country road trip, figuring out your daily commute expenses, or comparing the cost of driving versus flying, knowing how to calculate gas costs is an essential skill. The formula is straightforward, but understanding how vehicle type, driving habits, and fuel prices affect the final number can save you real money. This guide walks through the gas cost formula step by step, provides cost comparisons across different vehicle types, and shares proven tips for spending less at the pump.
The Gas Cost Formula
Calculating the fuel cost for any trip requires just three numbers: the distance you plan to drive, your vehicle's fuel efficiency, and the price of gas.
Gas Cost = (Distance ÷ MPG) × Price per Gallon
Where:
- Distance = total miles you will drive (one way or round trip)
- MPG = your vehicle's miles per gallon (use the EPA combined rating or your real-world average)
- Price per Gallon = current gas price at the pump
The formula first calculates how many gallons you will need (distance divided by MPG), then multiplies by the price per gallon to get the total cost.
Example: Weekend Road Trip
You are planning a 400-mile round trip in a sedan that gets 30 MPG. Gas in your area costs $3.40 per gallon.
- Gallons needed: 400 ÷ 30 = 13.33 gallons
- Total gas cost: 13.33 × $3.40 = $45.33
If you are splitting the trip with a passenger, the cost per person drops to $22.67. Add a third person and it is just $15.11 each — which is why carpooling is one of the best ways to cut travel costs.
Example: Daily Commute Cost
Your round-trip commute is 36 miles. You drive a crossover SUV that gets 26 MPG. Gas averages $3.60 per gallon.
- Daily gas cost: (36 ÷ 26) × $3.60 = 1.385 × $3.60 = $4.98 per day
- Monthly cost (22 working days): $4.98 × 22 = $109.63 per month
- Annual cost (250 working days): $4.98 × 250 = $1,246 per year
That $1,246 is only the fuel cost. When you factor in insurance, maintenance, depreciation, and parking, the total cost of commuting by car is typically 2–3 times higher.
Understanding Your Vehicle's MPG
Your MPG rating is the single biggest factor in your fuel costs. A vehicle that gets 20 MPG costs twice as much to drive the same distance as one that gets 40 MPG.
EPA Ratings vs. Real-World MPG
The EPA tests vehicles under controlled laboratory conditions and provides three ratings: city, highway, and combined. Your real-world mileage will almost always differ from the EPA estimate because of factors the lab cannot replicate:
- Driving style: Aggressive acceleration and hard braking can reduce MPG by 15–30%
- Speed: Fuel economy drops significantly above 50 mph. Every 5 mph over 50 is roughly equivalent to paying an extra $0.25 per gallon
- Terrain: Hilly or mountainous routes consume more fuel than flat highways
- Weather: Cold temperatures reduce fuel economy by 10–20% due to denser air, cold engine oil, and heater use
- Air conditioning: Running the A/C reduces MPG by 3–10%, depending on the vehicle and conditions
- Cargo and passengers: Every extra 100 pounds reduces MPG by approximately 1–2%
To find your real-world MPG, fill your tank completely, reset the trip odometer, drive normally until near empty, fill up again, and divide the miles driven by the gallons purchased. Do this 3–4 times and average the results.
Average MPG by Vehicle Type
Here are typical combined MPG ranges for different vehicle categories in 2025–2026:
- Compact sedans (Civic, Corolla): 30–35 MPG
- Midsize sedans (Camry, Accord): 28–32 MPG
- Small SUVs/crossovers (RAV4, CR-V): 25–30 MPG
- Midsize SUVs (Highlander, Pilot): 22–27 MPG
- Full-size SUVs (Tahoe, Expedition): 18–23 MPG
- Pickup trucks (F-150, Silverado): 17–23 MPG
- Minivans (Sienna, Odyssey): 22–28 MPG
- Hybrid sedans (Prius, Camry Hybrid): 45–55 MPG
- Hybrid SUVs (RAV4 Hybrid, Highlander Hybrid): 35–40 MPG
- Sports cars (Mustang, Camaro): 18–25 MPG
Cost Comparison by Vehicle Type
To illustrate how much vehicle choice affects fuel costs, let us compare the cost of driving 15,000 miles per year (the American average) at $3.50 per gallon across different vehicle types:
- Compact sedan (32 MPG): 469 gallons × $3.50 = $1,641 per year
- Midsize SUV (25 MPG): 600 gallons × $3.50 = $2,100 per year
- Full-size SUV (20 MPG): 750 gallons × $3.50 = $2,625 per year
- Pickup truck (19 MPG): 789 gallons × $3.50 = $2,763 per year
- Hybrid sedan (50 MPG): 300 gallons × $3.50 = $1,050 per year
The difference between a hybrid sedan and a pickup truck is $1,713 per year — over $140 per month. Over a typical 5-year ownership period, that is $8,565 in fuel savings alone, which can offset a significant portion of the hybrid's purchase price premium.
Gas Cost vs. Electric Vehicle Charging Cost
With the growing popularity of electric vehicles, many drivers want to compare the per-mile cost of gas versus electricity.
Calculating EV Charging Cost Per Mile
The formula for EV cost per mile is:
EV Cost per Mile = (Electricity Rate per kWh) ÷ (Miles per kWh)
Most EVs achieve 3–4 miles per kilowatt-hour (kWh). The average U.S. residential electricity rate is about $0.16 per kWh as of 2025.
For a typical EV getting 3.5 miles per kWh at $0.16/kWh: $0.16 ÷ 3.5 = $0.046 per mile (about 4.6 cents).
Head-to-Head Comparison: 15,000 Miles per Year
- Gas car (28 MPG, $3.50/gal): 536 gallons × $3.50 = $1,875 per year ($0.125 per mile)
- Hybrid (50 MPG, $3.50/gal): 300 gallons × $3.50 = $1,050 per year ($0.070 per mile)
- EV (home charging, $0.16/kWh): 4,286 kWh × $0.16 = $686 per year ($0.046 per mile)
- EV (public fast charging, $0.40/kWh): 4,286 kWh × $0.40 = $1,714 per year ($0.114 per mile)
Home charging an EV costs about 63% less than fueling an average gas car. Even with expensive public fast charging, an EV is roughly 9% cheaper per mile. The savings are most dramatic for drivers who can charge at home overnight using off-peak electricity rates.
Tips to Reduce Fuel Costs
Regardless of what you drive, these proven strategies can lower your fuel spending by 10–30%.
Driving Habits
- Accelerate gently — Jackrabbit starts can waste 10–20% more fuel. Accelerate smoothly and gradually.
- Use cruise control — Maintaining a steady speed on the highway improves fuel economy by 7–14% compared to variable speed driving.
- Coast to stops — When you see a red light or stop sign ahead, lift off the gas early instead of braking at the last moment. The engine uses zero fuel when coasting in modern fuel-injected cars.
- Slow down — Driving 65 mph instead of 75 mph can improve fuel economy by 10–15% on most vehicles.
- Avoid excessive idling — Turn off the engine if you will be stopped for more than 60 seconds. Idling a modern engine for 10 seconds uses more fuel than restarting it.
Vehicle Maintenance
- Keep tires properly inflated — Under-inflated tires increase rolling resistance and reduce MPG by up to 3%. Check tire pressure monthly and inflate to the specification on the driver's door placard (not the maximum printed on the tire sidewall).
- Replace air filters — A clogged air filter can reduce fuel economy by 6–10% in older vehicles with carburetors, and 1–2% in modern fuel-injected engines.
- Use the recommended motor oil — Using the wrong viscosity oil (like 10W-40 when 0W-20 is specified) increases friction and can reduce MPG by 1–2%.
- Keep up with tune-ups — A misfiring spark plug can reduce fuel efficiency by up to 30%. Follow your owner's manual service schedule.
Trip Planning
- Use GPS for shortest or fastest routes — Avoid stop-and-go city streets when a slightly longer highway route will be more fuel efficient
- Combine errands — Several short trips from a cold start use more fuel than one longer trip because the engine operates less efficiently until it warms up
- Fill up at the cheapest station — Gas prices can vary by $0.30–$0.50 per gallon within a few miles. Apps like GasBuddy help you find the lowest prices nearby
- Use gas reward programs — Grocery store fuel rewards, credit card gas rebates, and warehouse club stations (Costco, Sam's Club) can save $0.10–$0.30 per gallon
Road Trip Gas Cost Calculator: Step-by-Step
Planning a road trip? Here is how to estimate your total fuel budget:
- Map your route: Use Google Maps or a similar tool to find the total driving distance in miles
- Find your MPG: Look up your vehicle's combined MPG rating on fueleconomy.gov, or use your calculated real-world average
- Estimate gas prices: Check AAA's fuel price map for average prices along your route, or GasBuddy for station-specific prices
- Apply the formula: (Distance ÷ MPG) × Price per Gallon = Total Gas Cost
- Add a buffer: Increase your estimate by 10–15% for detours, traffic, mountain passes, and prices higher than average
Example: Los Angeles to Denver Road Trip
Distance: approximately 1,020 miles one way (2,040 round trip). Vehicle: midsize SUV averaging 26 MPG. Average gas price along the route: $3.65 per gallon.
- Gallons needed: 2,040 ÷ 26 = 78.5 gallons
- Base fuel cost: 78.5 × $3.65 = $286.43
- With 10% buffer: $286.43 × 1.10 = $315.07
Split between two people, that is about $158 each. Between four people, it is about $79 each — making driving significantly cheaper than flying for groups.
Driving vs. Flying: When Is Driving Cheaper?
A common question when planning trips is whether to drive or fly. The break-even point depends on distance, number of passengers, and ticket prices.
General Rules of Thumb
- Under 300 miles: Almost always cheaper and faster to drive, even for a solo traveler
- 300–600 miles: Driving is cheaper for 2+ passengers; solo travelers should compare gas cost plus time value against airfare
- Over 600 miles: Flying is usually faster and sometimes cheaper for solo travelers, but driving remains cheaper for groups of 3+
- Remember hidden costs: Flying requires airport parking or rideshare, rental car at the destination, baggage fees, and meals in airports. Driving requires gas, tolls, and potentially a hotel for long distances.
Understanding Gas Prices
Gas prices fluctuate based on several factors, and understanding them helps you time your fill-ups and budget for fuel.
- Crude oil prices account for about 50–60% of what you pay at the pump. Global supply, OPEC production decisions, and geopolitical events drive crude prices.
- Refining costs make up 15–20%. These increase during seasonal transitions (like the switch to summer-blend gasoline) and after refinery outages.
- Taxes account for 15–20%. Federal excise tax is $0.184 per gallon. State taxes range from $0.09 (Alaska) to over $0.70 (California).
- Distribution and marketing make up the remaining 5–10%.
Gas prices tend to be highest in summer (increased demand, summer-blend fuel) and lowest in late fall and winter. Prices typically spike around Memorial Day and July 4th and decline after Labor Day.
The True Cost Per Mile of Driving
Gas is only one component of your driving costs. The IRS standard mileage rate for 2025 is $0.70 per mile, which reflects the full cost of vehicle operation:
- Fuel: $0.10–$0.15 per mile (varies by vehicle and gas prices)
- Depreciation: $0.20–$0.30 per mile (the largest single cost for newer vehicles)
- Insurance: $0.06–$0.12 per mile
- Maintenance and repairs: $0.06–$0.10 per mile
- Registration and taxes: $0.02–$0.04 per mile
- Financing interest: $0.02–$0.05 per mile
At 15,000 miles per year, the total cost of owning and operating an average car is roughly $9,000–$12,000 annually. Fuel accounts for only 15–25% of that total. This perspective is important when comparing driving to alternatives like public transit, biking, or ridesharing.
Frequently Asked Questions
How do you calculate cost per mile for gas?
To calculate your cost per mile, divide the current gas price by your vehicle's miles per gallon (MPG). For example, if gas costs $3.50 per gallon and your car gets 28 MPG, your cost per mile is $3.50 / 28 = $0.125, or about 12.5 cents per mile. For a more accurate total driving cost figure, the IRS standard mileage rate for 2025 is 70 cents per mile, which accounts for gas, insurance, depreciation, maintenance, and repairs combined.
What is the average MPG by vehicle type?
Average fuel economy varies significantly by vehicle type. Compact sedans average 30–35 MPG combined. Midsize sedans average 28–32 MPG. Small SUVs and crossovers average 25–30 MPG. Full-size SUVs average 18–23 MPG. Pickup trucks average 17–23 MPG. Minivans average 22–28 MPG. Hybrid vehicles average 45–55 MPG. These are EPA combined estimates; your real-world mileage will vary based on driving habits, terrain, and conditions.
Why is highway MPG better than city MPG?
Highway driving is more fuel efficient because the engine operates at a steady, optimal RPM range without the constant acceleration and braking of city driving. Stop-and-go traffic wastes fuel because accelerating from a stop requires significantly more energy than maintaining a constant speed. Idling at traffic lights also burns fuel without moving you forward. Typically, highway MPG is 20–30% higher than city MPG for conventional gas vehicles. Interestingly, hybrids and EVs can be more efficient in city driving because they recapture braking energy through regenerative braking.
Is premium gas worth the extra cost?
Premium gas is only worth the extra cost if your vehicle requires it. Cars with high-compression or turbocharged engines that specify premium (91+ octane) in the owner's manual will experience reduced performance and potential engine knocking on regular gas. However, if your car recommends but does not require premium, you can safely use regular (87 octane) with little to no performance difference. The price difference is typically $0.40–$0.70 per gallon, adding up to $200–$400 per year for the average driver — money wasted if your engine does not need it.
How does the cost of gas compare to EV charging?
Electric vehicles are significantly cheaper to "fuel" than gas cars in most areas. The average cost to drive an EV is about 3–5 cents per mile using home charging at typical electricity rates ($0.13–$0.16 per kWh). A gas car averaging 28 MPG at $3.50 per gallon costs about 12.5 cents per mile — roughly 2.5 to 4 times more expensive. Public DC fast charging at $0.30–$0.60 per kWh brings the EV cost to 8–15 cents per mile, closer to gas but usually still cheaper. Over 15,000 miles per year, an EV owner saves roughly $800–$1,500 in fuel costs compared to a gas vehicle.