Free / no sign-up / U.S. units

Trip gas cost calculator

Enter how far you are driving, your car's miles per gallon and the price of gas. The calculator gives the gallons the drive uses and what they cost, for one way or there and back.

All 15 calculators

Trip gas cost
Miles per US gallon.
U.S. average, week of Nov 30, 2026.
Trip

Gas for this trip

$42.06

Gas used
12.00 gal
Miles driven
300 mi
Gas per mile
$0.14 per mile
Tailpipe
235 lb CO₂

Nothing you type leaves your browser. The numbers are kept on this device so they are still there next time.

Choose your calculator

Fifteen calculators for the cost of driving and of the car itself. This page is the first one; here are the other fourteen.

Trip costs

Road trip costFuel, tolls and parking for a whole trip, and the share per person.600 mi, tolls and parking → $125.11Split gas costWhat each rider owes for the gas, with or without the driver.200 mi, 4 people → $7.01 eachCommute costWhat the drive to work costs per day, month and year.15 mi each way → $1,009.44 a year

Fuel economy

MPG calculatorMiles per gallon from the odometer and a fill-up.320 mi on 11.5 gal → 27.8 mpgCost per mileFuel per mile, then insurance and upkeep spread over your miles.Gas, insurance, upkeep → $0.34 / miRange on a tankHow far the gas in the tank will take you, with a reserve.14 gal tank at 25% → 98 miMPG convertermpg, L/100 km, km/L, UK mpg, MPGe and kWh per 100 miles.30 mpg → 7.84 L/100 kmFuel savingsGallons and dollars saved a year by a car with better mpg.22 to 32 mpg → $746.80 a year

Electric

EV charging costThe cost of one charge, with the energy lost while charging.75 kWh, 20 to 80% → $9.09EV vs gas costA year of electricity against a year of gasoline.12,000 mi a year → $848.02 savedElectricity by stateHome electricity price in each state and the EV cost per mile.30 kWh/100 mi → $0.05 per mile

Your car

Tire size calculatorDiameter, revolutions per mile and speedometer gap of two tire sizes.225/45R17 to 225/50R17 → 3.55% largerCar depreciationA car's value after some years, from a yearly rate or a resale price.$30,000, 15% for 5 years → $13,311.16Mileage reimbursementMiles times the IRS standard rate for 2024 to 2026.1,200 mi at 76¢ → $912.00

The math behind a trip's gas cost

Two divisions and one multiplication. The distance divided by the car's miles per gallon gives the gallons burned; the gallons times the price per gallon give the cost. For the default drive of 300 miles in a car that gets 25 mpg, with gas at $3.505 a gallon:

300 mi / 25 mpg = 12.00 gal
12 gal × $3.505 = $42.06

The default price is the weekly U.S. average for regular gasoline published by the Energy Information Administration for the week of November 30, 2026. Prices change every week and differ a lot between states and stations, so type the price you see on the pump for a closer answer.

Cost of a drive by distance and mpg

Each cell is the gas for one way at $3.505 a gallon. Double it for a drive there and back.

Distance20 mpg25 mpg30 mpg40 mpg
50 mi$8.76$7.01$5.84$4.38
100 mi$17.52$14.02$11.68$8.76
250 mi$43.81$35.05$29.21$21.91
500 mi$87.63$70.10$58.42$43.81
1,000 mi$175.25$140.20$116.83$87.63

Going from 20 to 40 mpg halves the bill; going from 30 to 40 saves less, because each extra mile per gallon saves fewer gallons than the one before. The mpg converter shows why.

Carbon dioxide from the tailpipe

The Environmental Protection Agency puts the carbon dioxide from burning one gallon of gasoline at 8,887 grams, a little under 20 pounds. The calculator multiplies the gallons by that figure: the 12 gallons of the default drive release about 235 lb CO₂. It counts only what leaves the tailpipe, not the oil drilled, refined and trucked to the station.

Why a real drive can cost more

The label figure assumes steady, careful driving. According to fueleconomy.gov, run by the Department of Energy and the EPA, speeding, rapid acceleration and hard braking can lower gas mileage by roughly 15% to 30% at highway speeds and 10% to 40% in stop-and-go traffic, and mileage usually drops quickly above 50 mph. If the same car manages only 20 mpg on this drive, the gas comes to $52.58 instead of $42.06.

For a long drive with tolls, parking and friends to share the bill, the road trip cost calculator adds those in.

Questions

How do I find my car's mpg?

The EPA label and fueleconomy.gov give a combined figure for each model. Your own figure, from two fill-ups, is better: the mpg calculator works it out.

Does a round trip just double the cost?

Yes, if you take the same road back. Pick There and back and the calculator doubles the miles.

What if my car uses premium or diesel?

Type the price you pay. The gallons are the same; only the price changes. The carbon figure is for gasoline: diesel releases more per gallon.

Does air conditioning or a full car change the answer?

A little. Extra weight and a roof box lower mpg; lower the mpg you type to see the effect.

Sources

Figures checked on 2026-12-02. Page updated 2026-12-02.