Part 1: How do Gasoline Prices Work?
Gasoline prices are one of the most visible ways Americans experience energy markets. The price posted on a corner gas station sign can change quickly, vary widely from one neighborhood to another, and become a flashpoint whenever global events disrupt oil markets.
But while prices at the pump can feel unpredictable, they are not random. They reflect a complex chain of production, refining, transportation, taxes, competition, and global supply-and-demand dynamics.
What goes into the price of gasoline?

Crude Oil (51%)
The largest input to the price of gasoline is crude oil. Refineries buy crude oil and turn it into gasoline, diesel, jet fuel and other petroleum products. Neither producers nor refiners set the price of crude oil on their own. Because oil is traded globally, its price is shaped by global supply, demand and risk. When crude prices move, gasoline prices often follow.

Since crude oil is the biggest input into gasoline prices (51%), it is also usually the biggest short-term variable in gasoline prices. When pump prices rise or fall quickly, it is often because crude oil prices are moving quickly in response to geopolitical events. That is why disruptions overseas can affect U.S. gasoline prices even when the United States is the world’s largest producer of oil and natural gas.
Refining, Distribution, & Marketing (32%)
Refining is another major component. Refineries are complex industrial facilities with significant costs for labor, maintenance, electricity, fuel and compliance.
Once gasoline leaves the refinery, it still has to move through pipelines, ships, trucks, rail, terminals and retail stations before it reaches consumers. Transportation and distribution costs vary depending on how close a region is to refining centers and whether it has efficient pipeline infrastructure. The Gulf Coast, with its dense refining and pipeline network, generally has lower costs. More isolated markets, including parts of the West Coast and Northeast, are more exposed to supply constraints and higher logistics costs.
Federal & State Taxes (17%)
Taxes also matter. federal gasoline taxes are fixed on a per-gallon basis, and have been 18.4 center per gallon—unchanged since 1993. State taxes and fees are generally higher than the federal tax, and vary significantly—by more than 60 cents per gallon. Generally, where state taxes and fees are highest, consumers pay more at the pump.


Why do prices vary so much?
Gasoline is both global and intensely local.
The global part starts with crude oil. A barrel of oil produced in Texas competes in the same broad market as barrels produced in Canada, the Middle East, Latin America or elsewhere. When global demand for oil is strong, or when available supply becomes more limited, buyers have to compete for fewer barrels. That tends to push crude oil prices higher.
The local part shows up after crude becomes gasoline, and the biggest differences are often driven by regional infrastructure and state policy choices. States with abundant refining capacity, pipeline access, lower taxes and fewer specialized fuel requirements tend to have lower gasoline prices. States with isolated fuel markets, limited pipeline access, higher taxes, specialized fuel blends or declining refinery capacity tend to see higher prices.

California and Texas illustrate the difference. Texas benefits from proximity to major crude production, extensive Gulf Coast refining capacity, pipeline infrastructure and a comparatively low state gasoline tax. California, by contrast, has a more isolated fuel market, higher taxes and fees, special fuel requirements, limited pipeline access to the rest of the country, and shrinking in-state refining capacity. EIA has noted that California’s higher prices are driven by taxes and fees, environmental requirements, special fuel requirements and isolated petroleum markets; it also reported that California was set to lose 17% of its refinery capacity from planned closures.
Those state and regional factors explain much of the difference consumers see on a national map. Neighborhood dynamics still matter — a station near a busy highway may charge more than one a few blocks away, and high-volume retailers may accept lower margins — but those are smaller pricing decisions within a broader market shaped by supply, infrastructure and policy. Gas stations do not control the broad market price of gasoline; they make local pricing decisions within a range shaped by wholesale fuel costs, taxes, delivery expenses and nearby competition.
What about Diesel?
Diesel prices are shaped by many of the same forces as gasoline: crude oil prices, refinery operations, distribution costs, and taxes. But diesel often costs more at the pump than gasoline because it serves a different market and faces different supply pressures.
Diesel is a distillate fuel used heavily in trucking, rail, agriculture, construction, and freight movement. That broad industrial demand means diesel prices affect more than what drivers see at the pump. They can ripple through supply chains and show up in the cost of goods Americans buy every day.
Diesel supply is also more constrained. A barrel of crude produces roughly 19–20 gallons of gasoline but only 11–12 gallons of diesel. When freight demand is strong, heating demand rises in winter, or refinery capacity is constrained, diesel prices can move higher relative to gasoline.
Taxes compound that gap. The federal tax on diesel is 24.4 cents per gallon compared to 18.4 cents for gasoline, and state diesel taxes also tend to run higher. Pennsylvania, for example, levies about 78 cents per gallon on diesel versus 58 cents on gasoline.