When you pay for a gallon of gasoline, a meaningful slice never reaches the refiner, the retailer, or the driller. It goes to federal and state governments as excise tax, plus a patchwork of environmental fees, underground storage charges, and sometimes sales tax layered on top. The total varies by more than 50 cents per gallon depending on where you fill up, which explains a lot of the price gap between neighboring states.
State taxes do most of the work, and they vary a lot
State-level gasoline taxes range from under 15 cents per gallon in Alaska to more than 65 cents in California and Pennsylvania, according to figures published by the American Petroleum Institute and state revenue departments. Most states sit somewhere between 25 and 45 cents when you count the excise tax plus environmental and inspection fees.
Some states also apply general sales tax to fuel, which means the tax bite grows automatically when pump prices rise. California, Illinois, Indiana, Michigan, and a handful of others fall into this category. Others, including Texas and Missouri, rely on a flat per-gallon rate that stays the same whether gas is $2.50 or $5.00.
What the total tax bite looks like at the pump
Combining federal and state components, drivers in the lowest-tax states pay roughly 33 to 40 cents per gallon in taxes. Drivers in the highest-tax states pay 80 cents to over 90 cents. On a 14-gallon fill-up, that is a difference of about $7 between, say, Mississippi and California, before you even account for base fuel cost differences.
This is one of the largest drivers of state-to-state price variation, alongside refinery access, fuel blend requirements, and distribution logistics. California's higher price is not primarily a gouging story; it is taxes, a unique reformulated blend, and a constrained refining market working together.
Why EVs and hybrids complicate the math
Because gas taxes fund roads, drivers who use less fuel pay less into that system while still using the pavement. Highly efficient hybrids contribute less per mile driven, and battery-electric vehicles contribute nothing at all through the pump. To close that gap, more than 30 states now charge annual EV registration surcharges, typically between $100 and $250, according to the National Conference of State Legislatures.
A handful of states, including Oregon, Utah, and Virginia, have piloted road-usage charge programs that bill drivers by the mile instead. Expect this to expand. The US Department of Energy has flagged fuel-tax erosion as a long-term funding issue, and per-mile fees are the most likely replacement mechanism over the next decade.
How to think about it as a driver
Tax policy is not something you can shop around week to week, but it does explain why crossing a state line can save you 20 or 30 cents a gallon. If you commute near a border, the math on a small detour usually favors the lower-tax side, especially for larger tanks.
It also puts pump-price complaints in perspective. When national average prices move on crude oil swings, the tax share stays fixed in cents. When your state raises its excise rate, that increase is permanent and shows up immediately. Knowing which piece is which makes it easier to judge whether a price change is a market story or a policy story.
The takeaway
Federal tax is a flat 18.4 cents everywhere, but your state can double or triple that. If you live near a border, checking the lower-tax side of the line pays off on big fill-ups. And when pump prices swing, remember that the tax portion is fixed in cents, so most short-term movement is really about crude oil, refining, and seasonal blends, not policy.
