The short answer: fuel cost = distance ÷ MPG × price per gallon. A 300-mile trip at 30 MPG and $3.50/gal uses 10 gallons, or $35. For a round trip, double the distance. Use real-world MPG, not the window sticker, for a better estimate.

Key takeaways

  • Distance, MPG, and price are the three inputs.
  • Round trips double the distance.
  • Real MPG is often lower than the label.
  • Idling and AC use fuel.
  • EV cost uses kWh, not gallons.

The formula

Gallons = distance ÷ MPG. Cost = gallons × price per gallon. Example: 450 miles ÷ 25 MPG = 18 gallons; at $3.60/gal, $64.80. For a round trip, double 450 to 900 miles; 36 gallons; $129.60. Add a buffer for detours and idling.

Real-world MPG

EPA estimates are useful for comparison, but real MPG depends on speed, terrain, temperature, cargo, and driving style. Highway MPG may be higher than city; a roof rack or trailer lowers it. Use your own fill-up history: miles driven ÷ gallons added over several tanks.

An example

A 600-mile round trip at 28 MPG and $3.40/gal: 600 ÷ 28 = 21.4 gallons; $72.86. If the real MPG is 24, the cost is $85.00. A 10% drop in MPG raises the cost by about 11%. The estimate is only as good as the MPG input.

Idling and accessories

Idling uses fuel without moving. Air conditioning, roof racks, and heavy loads increase consumption. In stop-and-go traffic, MPG falls. A hybrid may recover some energy; a diesel may differ. Use a realistic driving mix.

Electric vehicles

For an EV, cost = distance × efficiency (kWh/mile) × electricity price per kWh. A car using 0.3 kWh/mile for 300 miles uses 90 kWh; at $0.15/kWh, $13.50. Public fast charging can cost more. Compare the cost per mile, not gallons.

What to compare

Compare the trip cost at different MPG and prices. A small change in MPG can matter more than a few cents at the pump. For a road trip, add tolls and parking to the budget.

Speed and fuel

Fuel economy usually peaks at moderate highway speeds and falls at higher speeds because aerodynamic drag rises. Driving 75 mph instead of 65 can reduce MPG by 10–20% in some cars. A steady speed and proper tire pressure help. Roof cargo and trailers add drag.

Trip budget

Add tolls, parking, and food to the fuel estimate. A 600-mile trip at 25 MPG and $3.50/gal is $84; tolls and parking can add $30–$60. For a business trip, keep receipts for reimbursement.

Hybrid and diesel

A hybrid may do better in city driving and worse on sustained highway speeds. A diesel may have higher MPG but different fuel prices and maintenance. Compare cost per mile, not MPG alone.

What to compare

A 40-mile round-trip commute, 5 days a week, 50 weeks: 10,000 miles. At 28 MPG and $3.50/gal: 357 gallons, $1,250 a year. At 22 MPG: 455 gallons, $1,591. A 6 MPG difference costs about $341 a year. The annual view makes the trade-off clearer than one tank.

Tire pressure

Under-inflated tires increase rolling resistance and reduce MPG. Check the pressure monthly. A roof rack or bike rack adds drag even when empty. Remove it when not in use.

What to compare

Compare annual fuel cost at different MPG and prices, and add maintenance and depreciation for a full ownership cost.

Monthly budget

Estimate monthly fuel from weekly driving. A 300-mile week at 25 MPG and $3.50/gal: 12 gallons, $42 a week, about $182 a month. Add a buffer for extra errands. If the price rises by 50 cents, the monthly cost rises by about $26.

What to compare

Compare the monthly cost at different MPG and prices, and include maintenance and insurance for the full cost of driving.

Route choice

A shorter route with traffic may use more fuel than a longer highway route. Compare distance, speed, and stops. A 10-mile detour at 30 MPG costs about 0.33 gallons, or $1.16 at $3.50; sitting in traffic can cost more. Use the trip cost, not only the miles.

What to compare

For a 12,000-mile year at 25 MPG and $3.50/gal: 480 gallons, $1,680. At 30 MPG: 400 gallons, $1,400. The 5 MPG improvement saves $280 a year. Compare that with the cost of a different vehicle.

What to compare

Compare the annual fuel cost, the vehicle price, and the maintenance. A fuel-efficient car with a high payment may not save money overall.

Trip planning

Use a fuel app or the vehicle’s trip computer to check the route. A 10% error in MPG changes the cost by about 11%. Add a buffer of 10% for detours, idling, and price changes.

What to compare

Compare the route, the MPG, and the price before leaving.

Final check

Compare the route, the real MPG, and the price before leaving. A 10% fuel buffer covers detours and idling.

Check the real MPG from at least three fill-ups before relying on the estimate.

Keep a fuel log for the trip.

Check the real MPG from several fill-ups and keep a fuel log for the trip.

Now check.

Frequently asked questions

How do I calculate fuel cost for a trip?

Distance ÷ MPG × price per gallon. Double the distance for a round trip.

Should I use highway or combined MPG?

Use the MPG that matches your driving. For a highway trip, highway MPG is closer; for mixed driving, combined.

Does AC affect fuel economy?

Yes, especially at low speeds. It can reduce MPG by a few percent.

How do I calculate EV cost?

Distance × kWh per mile × electricity price per kWh.

Further reading

Keep exploring

Read next Roofing: Squares, Pitch, Waste, and Cost Convert a roof footprint into sloped area, squares, and bundles with the pitch multiplier. Includes waste allowances, a… Read next MPG: Real-World Fuel Economy and Cost per Mile MPG is miles divided by gallons, and cost per mile is price divided by MPG. Learn to measure… Read next Party Planning: Guests, Food, Drink, and Budget Estimate food, drink, and cost per guest with a simple multiplication model, then adjust for buffet portions, ice,…