simplemaplab

Gas Cost Calculator

By Marko Visic · Updated Nov 22, 2026

Work out what a drive costs in fuel. Each stretch of road is priced at this week’s EIA average for the state it runs through, with your car’s EPA mpg, the cost per person and the CO₂. Prices from the week of Nov 16, 2026.

Trip

Car

22.2 mpg is EPA’s figure for the typical gasoline car on the road.

Price

a gallon

Example: Los Angeles → Las Vegas

$63.75

for 271 miles at 22.2 mpg, regular

Fuel
12.2 gal
Per mile
$0.24
Drive time
4h 24m
CO₂ from the tailpipe
108 kg (239 lb)
$3.22–3.42$3.42–3.56$3.56–3.89$3.89–4.23$4.23–5.39

The route is colored by the EIA price that pays for each stretch. Tap it for the state, the price and its share of the trip.

Fuel cost by price area
WhereMilesPriceCost
California227$5.387$55.04
Nevada West Coast except California average43.9$4.405$8.71

How to use the gas cost calculator

  1. Enter the trip. Search a start and a destination, add up to four stops, and tick Round trip if you are coming back the same way. Or press Enter miles instead and type the distance.
  2. Set the car. Type your car’s miles per gallon, or press Look up my car’s mpg to pick the year, make and model and use its EPA combined rating. 22.2 mpg, EPA’s figure for the typical gasoline car on the road, is filled in to start.
  3. Read the cost. The calculator prices each stretch of road at this week’s EIA average for the state it runs through and adds them up. Type your own price to use one price for the whole trip, and the number of people to split it.

What people use it for

Budgeting a road trip

Pricing the fuel state by state matters when the route crosses a price line, as every drive out of California does.

EXAMPLE
Los Angeles to Las Vegas is 270.7 miles by road: about 227 miles in California at $5.387 a gallon and 44 in Nevada at $4.405 (EIA’s West Coast except California average). At 22.2 mpg that is 12.2 gallons and $63.75 of regular this week.

Splitting gas money

Type the number of people and the calculator divides the total.

EXAMPLE
Four friends driving to Las Vegas and back from Los Angeles at 22.2 mpg: $127.50 in all, $31.87 each.

Choosing which car to take

Look up each car’s EPA rating and compare the totals for the same trip.

EXAMPLE
Los Angeles to Las Vegas: a 2025 Ford F-150 2WD with the 5.0-liter V8 (19 mpg combined, EPA) burns $74.49 of regular this week; a 2025 Toyota Camry Hybrid LE (51 mpg), $27.75. Taking the hybrid saves $46.74 each way.

Working out a commute

Press Enter miles instead, type one day’s round trip, then multiply by your working days.

EXAMPLE
A 25-mile commute each way, 21 working days a month, in a 2025 Toyota RAV4 2.5-liter (30 mpg): 1,050 miles, 35.0 gallons and $133.18 a month at the U.S. average for regular.

Pricing premium against regular

Switch the fuel grade to see what premium adds. EIA’s premium average is $1.029 a gallon above regular this week.

EXAMPLE
A 300-mile trip at 25 mpg takes 12 gallons. In premium that costs $12.35 more than in regular at the U.S. averages.

Gas prices by state this week

EIA’s weekly averages for the week of Nov 16, 2026, the prices the calculator uses. States in the same color band share a price; a state EIA doesn’t survey on its own takes its region’s average, and thick white lines mark where the price area changes. The dots are EIA’s ten city averages. Hover over or tap a state or a city for its price.

EIA, week of Nov 16, 2026. U.S. average $3.805 a gallon.

$3.22–3.42$3.42–3.56$3.56–3.89$3.89–4.23$4.23–5.39EIA city average

The lowest regular price among EIA’s states and regions is Texas at $3.216; the highest is California at $5.387.

Average retail price per gallon, taxes included, EIA week of Nov 16, 2026
AreaRegularMidgradePremiumDieselRegular, change
United States
U.S. average$3.805$4.435$4.834$5.937−0.190
Regions (PADDs)
East Coast (PADD 1)$3.707$4.233$4.635$5.782−0.140
New England (PADD 1A)$3.908$4.587$4.933$6.225−0.152
Central Atlantic (PADD 1B)$4.064$4.598$4.935$6.309−0.082
Lower Atlantic (PADD 1C)$3.436$3.940$4.337$5.541−0.173
Midwest (PADD 2)$3.604$4.106$4.722$5.967−0.264
Gulf Coast (PADD 3)$3.293$3.837$4.181$5.547−0.188
Rocky Mountain (PADD 4)$3.696$4.065$4.332$6.011−0.250
West Coast (PADD 5)$4.933$5.438$5.593$6.948−0.177
West Coast except California$4.405$4.863$5.074$6.269−0.179
States
California$5.387$5.733$5.858$7.733−0.175
Colorado$3.513$3.915$4.243–−0.233
Florida$3.525$4.021$4.357–−0.201
Massachusetts$3.872$4.522$4.911–−0.135
Minnesota$3.608$3.999$4.551–−0.241
New York$4.063$4.573$4.970–−0.053
Ohio$3.396$4.012$4.578–−0.372
Texas$3.216$3.752$4.088–−0.192
Washington$4.714$5.050$5.252–−0.160
Cities
Boston$3.885$4.493$4.890–−0.135
Chicago$4.193$4.814$5.471–−0.268
Cleveland$3.445$4.160$4.842–−0.365
Denver$3.344$3.807$4.131–−0.298
Houston$3.298$3.942$4.282–−0.191
Los Angeles$5.387$5.789$5.830–−0.172
Miami$3.629$4.123$4.440–−0.162
New York City$3.960$4.583$4.919–−0.052
San Francisco$5.289$5.640$5.885–−0.158
Seattle$4.894$5.381$5.424–−0.176

How the gas cost is calculated

gallons = miles ÷ mpg
cost = Σ (miles in each state ÷ mpg × that state’s price)
CO₂ = gallons × 8,887 g (gasoline) or 10,180 g (diesel)

The road route comes from Valhalla, an open-source router, on OpenStreetMap roads. The calculator follows the route’s line, finds the state of each stretch from Census Bureau state outlines, and sums the miles in each state, scaled so they add up to the router’s total. Each state’s miles are priced at EIA’s weekly average for that state, or for its region where EIA publishes no state figure. A stretch outside the 50 states and DC, such as a shortcut through Canada, is priced at the U.S. average.

EIA’s prices are volume-weighted averages of a sample of stations, surveyed on Monday at 8 a.m. local time: the cash, self-serve price, taxes included. Its regions are the five Petroleum Administration for Defense Districts, with the East Coast split in three, and its city prices cover the counties EIA lists for each city. Fuel economy is the EPA’s combined city and highway rating from fueleconomy.gov; what a car gets on the road varies with speed, load, weather and upkeep.

Related tools and resources

For the distance and drive time alone, use the distance calculator; for a trip with many stops in the best order, the multi-stop route calculator. The halfway point finder picks a town where two drivers can meet, and the drive time map shows how far you get in an hour or two.

To measure a route on Google Maps instead, see how to measure distance on Google Maps.

Frequently asked questions

Divide the miles by your car’s miles per gallon to get the gallons, then multiply by the price per gallon. This calculator does it state by state: the miles driven in each state, divided by your mpg, times that state’s EIA average price, added up. For Los Angeles to Las Vegas (270.7 miles) at 22.2 mpg that comes to $63.75 this week.
At 22.2 mpg, EPA’s figure for the typical gasoline car on the road, 100 miles take 4.5 gallons. At this week’s U.S. average for regular, $3.805 a gallon (EIA, week of Nov 16, 2026), that is $17.14.
$3.805 a gallon for regular, $4.435 for midgrade, $4.834 for premium and $5.937 for diesel: EIA’s U.S. averages for the week of Nov 16, 2026. Regular is down 0.190 from the week before.
EIA publishes weekly averages for nine states (California, Colorado, Florida, Massachusetts, Minnesota, New York, Ohio, Texas and Washington) and for the regions it calls PADDs. For any other state the calculator uses the average of the region EIA puts it in, and the map and the bubbles say so. For diesel, EIA publishes only California on its own.
Your car’s EPA combined rating is a fair start: press Look up my car’s mpg. Real mileage depends on speed, load, weather and the car’s condition. If you know your own average from fill-ups, type that. Without either, 22.2 mpg is EPA’s figure for the typical gasoline vehicle on the road, and new model-year 2024 vehicles averaged 27.2 mpg (25.6 without electric and plug-in hybrid models).
Yes. Pick Midgrade, Premium or Diesel under Fuel, or look up your car and the calculator picks the fuel EPA lists for it. Each grade has its own EIA prices. Electric cars use no gasoline, so the calculator does not price them.
No, only the fuel. Tolls, parking, oil and tires come on top.
Type the number of people under Split the cost between. A round trip from Los Angeles to Las Vegas at 22.2 mpg costs $127.50 this week, or $31.87 each for four people.
Burning a gallon of gasoline gives off about 8,887 grams of CO₂, and a gallon of diesel about 10,180 grams, per EPA. The calculator multiplies your trip’s gallons by those figures. Los Angeles to Las Vegas at 22.2 mpg is about 108 kg (239 lb).
EIA surveys stations every Monday at 8 a.m. local time and publishes the averages on Tuesday, around 10 a.m. Eastern. This page reads EIA’s tables at most every six hours, so a new week shows up on Tuesday. Prices at a given station can be higher or lower than the average.
The routing server, a free Valhalla service run by FOSSGIS on OpenStreetMap data, takes places up to 1,500 km (932 miles) apart in a straight line. For a longer drive, add a stop on the way, or press Enter miles instead and type the distance.

Data sources & methodology

Fuel prices: U.S. Energy Information Administration, Gasoline and Diesel Fuel Update, weekly retail prices by area for regular, midgrade, premium and diesel, week of Nov 16, 2026, read by this page at most every six hours. Fuel economy: EPA ratings from the fueleconomy.gov web services (U.S. Department of Energy and EPA). Typical car: 22.2 mpg, and CO₂ of 8,887 g per gallon of gasoline and 10,180 g per gallon of diesel, from EPA’s Greenhouse Gas Emissions from a Typical Passenger Vehicle; new-vehicle averages from the EPA Automotive Trends Report 2025. Road routes: Valhalla on OpenStreetMap data, through the FOSSGIS server. State outlines: US Census Bureau, through us-atlas. Place search: Photon.

Related tools