
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.
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
Fuel economy
Electric
Your car
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.
| Distance | 20 mpg | 25 mpg | 30 mpg | 40 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
- U.S. Energy Information Administration, Gasoline and Diesel Fuel Update (weekly retail prices)
- U.S. EPA, Greenhouse Gas Emissions from a Typical Passenger Vehicle
- fueleconomy.gov (DOE and EPA), Driving more efficiently
- fueleconomy.gov (DOE and EPA), Learn more about the fuel economy label for electric vehicles
- NIST Handbook 44 (2026), Appendix C: General tables of units of measurement
Figures checked on 2026-12-02. Page updated 2026-12-02.