Gas Cost Calculator – Road Trip Fuel Cost Estimator

Planning a drive? This free gas cost calculator estimates your road trip's fuel cost in the US from the distance in miles, your car's MPG and the current gas price — plus the cost per mile for easy splitting.

Estimate Your Trip Cost

Gas prices change often — update this with the current pump price.
Total trip fuel cost
–
Gas needed–
Cost per mile–
Round-trip cost–

How to Use the Gas Cost Calculator

Enter the one-way trip distance in miles — Google Maps gives you this in seconds. Next, enter your car's fuel efficiency in miles per gallon (MPG). If you don't know it, fill the tank, reset your trip odometer, drive normally until the tank is low, then divide the miles driven by the gallons refilled. Finally, enter the current gas price per gallon (the default is $3.50 — update it to today's pump price) and press Calculate Gas Cost.

The result shows four figures: total fuel cost for the trip, gallons of gas needed, cost per mile, and the round-trip cost. The per-mile figure is the most useful of the bunch — it lets you split costs fairly with passengers and compare the running cost of different cars at a glance.

The Formulas

Gallons needed is simply distance divided by MPG — a car that gets 28 MPG needs about 8.6 gallons to cover 240 miles. Multiplying by the price per gallon gives the total cost.

Trip cost = (Distance ÷ MPG) × Price per gallon   •   Cost per mile = Price per gallon ÷ MPG

The cost-per-mile formula is the same idea rearranged: each mile consumes 1/MPG gallons, each costing the pump price. At $3.50/gallon and 28 MPG, every mile costs $0.125 — a number that stays constant no matter how far you drive, which is why it's the fairest basis for splitting.

Worked Example: A 240-Mile Road Trip

A weekend road trip of about 240 miles — roughly New York City to Boston. Take a midsize sedan getting 28 MPG with gas at $3.50 per gallon:

StepCalculationResult
1. Gas needed240 ÷ 288.6 gallons
2. Trip cost8.6 × 3.50$30.00
3. Cost per mile3.50 ÷ 28$0.125
4. Round trip30.00 × 2$60.00

Now compare with an SUV getting 20 MPG: 240 ÷ 20 × 3.50 = $42.00 one way — $12.00 more for the same trip. That difference, multiplied over a year of driving, is exactly why MPG matters more than most buyers realize.

How to Cut Your Per-Mile Cost — What Basic Calculators Don't Tell You

The calculator gives you the number; this section helps you shrink it. MPG is not a fixed property of your car — it is a range, and where you sit in the range is mostly driving behavior:

HabitEffect on MPGAt $3.50/gallon impact
Driving 65 mph vs 80+ on the interstate+15–20%Saves ~$0.025/mile
Correct tire pressure (check monthly)+3–5%Saves ~$0.006/mile
AC off in mild weather+10–15% in citySaves ~$0.018/mile
Removing roof rack / excess weight+2–4%Saves ~$0.004/mile

The single biggest lever is speed: aerodynamic drag rises with the square of speed, so cruising at 65 instead of 80 on the interstate can take a 28 MPG car to 32–33 MPG. On the 240-mile example, that alone saves roughly $4.50 per one-way trip. Measure your own MPG honestly (with your normal AC use and load) rather than trusting the EPA sticker figure — sticker numbers are measured in ideal conditions you will never reproduce.

Limitations

This is a fuel-cost estimate, not a full trip budget. Tolls (the Mass Pike alone is a real add-on), food, parking, and wear-and-tear are not included. MPG varies with traffic, road condition, load, tire pressure and driving style — city driving can be 30% worse than highway MPG, so a single figure is always an approximation. Gas prices move frequently, so the default $3.50 is a starting point, not a quote. For a monthly budget, multiply the per-mile cost by your typical monthly miles and add 10–15% as a buffer.

Guides for This Tool

A downloaded route map, a "free" PDF itinerary, a confirmation that will not open — travel files deserve the same suspicion as any download. The Fake File Detector checks what a file really is beneath its extension, right in your browser, before you trust it.

Frequently Asked Questions

How do I calculate gas cost for a road trip?
Divide the trip distance in miles by your car's fuel efficiency in miles per gallon to get gallons needed, then multiply by the gas price per gallon. For example, 240 miles ÷ 28 MPG × $3.50 = $30.00. This calculator runs the same maths instantly and can split the total between passengers.
What is a good MPG for a car?
Compact cars typically get 30–40 MPG, midsize sedans 28–35 MPG, and larger SUVs 18–25 MPG. Hybrids can reach 45–55 MPG. Use your own measured average — not the EPA sticker figure — for the most accurate estimate. Real-world driving, especially cold starts and short trips, usually lands a little below the official rating.
How much does gas cost per mile?
Divide the gas price per gallon by your car's MPG. At $3.50 per gallon with 28 MPG, each mile costs $0.125 — about 13 cents. This per-mile figure is handy for splitting costs with fellow travelers. It is also the quickest way to compare two cars: the lower per-mile cost wins on every trip.
Does AC usage affect gas cost?
Yes. Running the air conditioner typically increases fuel consumption by 10–20% in city driving. If you always drive with AC on, measure your MPG with AC on and enter that lower figure in the calculator. At highway speeds the effect is smaller, and opening windows instead can cost as much through extra drag.
Why do gas prices vary so much between states?
State gas taxes are the biggest reason — they range from under 10 cents to over 60 cents per gallon — plus regional refinery costs and local competition. Always enter the price at the pumps where you will actually fill up.
Should I use the regular or premium gas price?
Use whichever grade your car actually needs. Most cars are designed for regular unleaded, and premium gives them no benefit. Only enter the premium price if your owner's manual requires it. Putting premium in a regular car does not improve mileage or performance — it only raises the cost of every mile you drive.

Related Tools