Gas Calculator (Trip Cost)

Calculate the cost of gas for any road trip.

Everyday Passenger split MPG presets
Rate this calculator · 4.0 (2)

Trip gas cost

Distance × price ÷ MPG · pax split

Instructions — Gas Calculator (Trip Cost)

1

Enter trip distance

Type one-way or round-trip distance in miles or kilometers (toggle at the top). Round-trip is usually what people want — the calculator simply multiplies through whatever distance you enter.

2

Set MPG and gas price

MPG is the fuel economy of your vehicle. Use one of the presets (compact, sedan, SUV, truck, hybrid) or type your own. Gas price is the per-gallon price you expect to pay — pull a live state average from AAA or GasBuddy.

3

Split between passengers

Set the passenger count to split the cost. The output panel shows total gallons used, total trip cost, cost per mile (a number worth keeping in mind), and cost per passenger if you're sharing the ride.

Real-world MPG is 10–20% below sticker. City driving, AC use, headwinds, and roof racks all pull it down.
Cost per mile beats total cost as a budgeting number. A 26 MPG sedan at $3.50/gal costs about 13.5 cents per mile.

Formulas

Trip gas math is one of the cleanest calculations you can do. Three numbers in, four useful answers out.

Gallons used
$$ \text{Gallons} = \frac{\text{Distance (mi)}}{\text{MPG}} $$
A 300-mile trip in a 25-MPG car burns 12 gallons. Distance in km is converted to miles internally (1 mi = 1.609 km).
Total cost
$$ \text{Cost} = \text{Gallons} \times \text{Price per gallon} $$
12 gallons at $3.50/gal = $42 in fuel for the trip. Multiply both inputs and you have it.
Cost per mile
$$ \text{Cost/mi} = \frac{\text{Price}}{\text{MPG}} $$
Independent of trip length. At $3.50 and 25 MPG, every mile costs 14 cents. AAA's 2024 estimate for total cost of ownership including fuel, insurance, depreciation: about 72 cents per mile.
Cost per passenger
$$ \text{Per passenger} = \frac{\text{Total cost}}{\text{N}} $$
For carpool splits. Four people on a $90 trip is $22.50 each — usually cheaper per head than a plane or train ticket for short distances.
MPG ↔ L/100km
$$ \text{L/100km} = \frac{235.215}{\text{MPG}} $$
A 25 MPG car burns 9.4 L per 100 km. Useful when comparing US and European efficiency ratings — the relationship is reciprocal, not linear.

Reference

Typical MPG by vehicle type (EPA combined)
VehicleEPA MPGCost / 100 mi @ $3.50Annual @ 12,000 mi
Subcompact / hybrid45–55$6.40–$7.80$760–$930
Compact car30–35$10.00–$11.70$1,200–$1,400
Mid-size sedan26–30$11.70–$13.50$1,400–$1,615
SUV (mid-size)22–26$13.50–$15.90$1,615–$1,910
Pickup (full-size, 4WD)17–20$17.50–$20.60$2,100–$2,470
Plug-in hybrid (gas mode)40–50$7.00–$8.75$840–$1,050

Reference distances and prices

Common road trips (one-way)
RouteDistance
New York – Boston215 mi
Los Angeles – Las Vegas270 mi
Chicago – Detroit280 mi
Dallas – Houston240 mi
Seattle – Portland175 mi
Miami – Orlando235 mi
US regular gas average
YearAvg price
2008 peak$4.11
2020$2.17
2022 peak$5.06
2023$3.52
2024$3.30

Article — Gas Calculator (Trip Cost)

Gas calculator: trip cost, gallons, and per-mile economics

A gas calculator turns three numbers — distance, MPG, and price per gallon — into trip cost. The core formula is gallons = distance ÷ MPG, then cost = gallons × price. A 300-mile drive in a 25 MPG car at $3.50 per gallon burns 12 gallons and costs $42. Add a passenger count and you have the split for any road trip.

This page calculates total trip cost, gallons consumed, cost per mile, and cost per passenger. It supports miles or kilometers, multiple currencies, and vehicle MPG presets. The math is straightforward; the value is in seeing all four outputs at once so you can budget the drive in 30 seconds.

What the gas calculator tells you

The trip cost answer is the headline number — what you will pay at the pump. The gallons figure tells you whether the tank can handle the drive without a refill. Cost per mile is the right number to compare driving against flying, taking the train, or staying home. Cost per passenger is what you charge if you are giving a ride.

The cost-per-mile output is more useful than total cost for long-term planning. At 25 MPG and $3.50 per gallon, every mile costs 14 cents. Multiply by annual miles (the average US driver does about 13,500 miles per year according to the Federal Highway Administration) and you have your annual fuel budget: $1,890 in this case.

Did you know

The 2008 US gasoline price peak hit $4.11 per gallon, the 2022 peak hit $5.06, and the 2020 COVID low touched $1.77. Annual average prices have ranged from $2.17 (2020) to $3.95 (2022). Treat any specific price as a snapshot; check AAA or the EIA for current numbers.

How to calculate gas for a trip

The gas math has three steps. Step one: gallons needed equals distance in miles divided by MPG. Step two: total cost equals gallons times price per gallon. Step three: cost per mile equals price divided by MPG (a constant for a given car and a given gas price). That third number is independent of trip length and useful for any back-of-envelope comparison.

  • Gallons = trip miles ÷ MPG
  • Total cost = gallons × price per gallon
  • Cost per mile = price per gallon ÷ MPG
  • Cost per passenger = total cost ÷ number of people
  • L/100km from MPG = 235.215 ÷ MPG (US gallon basis)
  • Kilometers to miles = km ÷ 1.60934

How to use this gas calculator

Enter trip distance (miles or km), MPG (or pick a vehicle preset), and gas price in dollars per gallon. Optionally enter the passenger count to split the cost. The result panel updates as you type. The vehicle presets cover compact (32 MPG), sedan (26), SUV (22), pickup truck (18), and hybrid (50) — pick the closest match if you do not know your exact rating.

A worked example for a 500-mile round trip: a 30 MPG sedan at $3.40/gal uses 500 / 30 = 16.7 gallons, totals $56.78, costs 11.3 cents per mile, and splits to $14.20 per passenger across four people. Same trip in a 20 MPG SUV: 25 gallons, $85, 17 cents per mile, $21.25 per passenger. The SUV costs 50% more for the same trip.

Trip gas math
gallons distance ÷ MPG
cost gallons × price
cost/mile price ÷ MPG
per passenger cost ÷ N

Typical MPG and gas prices

EPA combined fuel economy ratings are the standard reference. Subcompacts and hybrids land at 35-55 MPG; compact cars at 30-35; mid-size sedans at 26-30; SUVs at 22-26; pickup trucks at 17-22. Most plug-in hybrids return 40-50 MPG in their gas-only mode, plus electric range that you do not pay for at the pump.

US regular gasoline prices vary by state and season. As of 2024 the national average runs $3.20-$3.60, with California and Hawaii regularly above $4.50 and southern states like Mississippi and Texas often below $3. The EIA's weekly retail gasoline price report is the canonical source. AAA's gas price map updates daily and breaks down by state, county, and metropolitan area.

Splitting gas costs with passengers

Splitting fuel between passengers is the simplest road-trip math there is — total cost divided by number of people. Some splits include the driver and some do not; agree before the trip. Most carpool conventions in the US include the driver in the split because the driver is providing the vehicle (a much larger cost than the fuel) and the time.

Tip

For longer trips with multiple drivers or vehicles, the AAA per-mile total cost number ($0.72 in 2024, covering fuel, insurance, depreciation, maintenance, and registration) is a fairer reimbursement basis than fuel alone. The IRS mileage rate ($0.67 per business mile in 2024) is the formal alternative.

What cuts real-world gas mileage

EPA combined MPG is a lab-test average. Real-world driving usually returns 10-20% lower. The big factors: highway speeds above 65 mph cost 2-3 MPG per 5 mph increase; aggressive acceleration and braking cost 10-30%; cold weather cuts MPG by 10-20% in city driving (per the US Department of Energy); a roof box cuts 5-15%; underinflated tires cost about 3%; running the air conditioner costs 1-4 MPG. None of these are huge alone, but they stack.

Plan with realistic MPG

If your car is rated 30 MPG combined but you mostly drive in city traffic with AC on, expect 24-26 MPG for trip planning. Using sticker MPG underbudgets fuel by 15-20%. Track your real MPG over a few tanks and use that number — it is usually a small but consistent shortfall.

Beyond gas: the full trip cost

Fuel is the most visible road-trip cost but not the largest. The AAA Your Driving Costs report puts the full cost of operating an average new car at about 72 cents per mile in 2024, with fuel accounting for roughly 17-20 cents of that. Depreciation, insurance, maintenance, and registration make up the rest. For a 1,000-mile round trip, fuel might be $150 but the all-in cost is closer to $720.

That distinction matters when comparing road trips to flights. A $200 flight that saves you 14 hours of driving against a $700 all-in road trip looks like a good deal. Using only the $150 fuel cost makes the math look the other way. For most casual comparisons, fuel cost is fine; for serious trip-versus-flight decisions, run both numbers.

FAQ

Divide trip distance by MPG to get gallons used, then multiply by price per gallon. Example: a 300-mile trip in a 25 MPG car at $3.50/gal = 300 ÷ 25 = 12 gallons × $3.50 = $42. This calculator does it instantly and also gives you cost per mile and per passenger.
Gallons used = Trip distance ÷ MPG. A 500-mile drive in a 30 MPG sedan uses about 17 gallons. If your car is rated 25 MPG combined but you mostly drive highway, expect 10–15% better; mostly city, expect 10–20% worse.
For a long highway drive, anything above 30 MPG keeps fuel cost reasonable. Hybrids hit 45–55 MPG. SUVs and trucks at 18–22 MPG can double or triple your fuel bill on a 1,000-mile trip — worth budgeting before you go.
Divide the total trip cost by the number of people. Four people sharing a $90 fuel bill is $22.50 each. Some splits include the driver and some do not — agree before the trip. Apps like Splitwise can track gas plus tolls and meals.
Rarely exactly. The EPA combined number is an average of city and highway dyno tests. Real driving with AC, headwinds, roof racks, and aggressive acceleration usually returns 10–20% lower. Hypermilers can sometimes beat the sticker on flat highways.
The US regular-gasoline average has hovered around $3.20–$3.60 per gallon in 2024 according to the EIA, with peaks above $5 in mid-2022 and lows near $2 during 2020 COVID lockdowns. State averages vary widely — California regularly tops $4.50 while Mississippi and Texas often sit below $3.
Cold weather cuts MPG by 10–20% in stop-and-go city driving and 5–10% on the highway, per the US Department of Energy. Causes include thicker engine oil, denser air, longer warm-up times, more idling for cabin heat, and lower tire pressure.
On long highway drives, hybrids gain less because regenerative braking does the most work in city traffic. A 50 MPG hybrid still saves money against a 26 MPG sedan — about $30 in fuel on a 1,000-mile trip at $3.50/gal — but the payback period for the higher purchase price is longer for someone who mostly drives highway.