One reason the price of gasoline can vary by state is state taxes.
The average nationwide tax collected on each gallon of gasoline sold at the retail station is 49.5 cents. Of that, 18.4 cents per gallon goes to the federal government; the rest ends up in state and local government coffers.
The amount of gasoline taxes collected by states can vary widely, from just 26.4 cents per gallon in Alaska, to as much as 69.6 cents per gallon in New York.
In addition to excise taxes, other taxes can also apply, such as sales taxes, gross receipts taxes, oil inspection fees, county and local taxes, underground storage tank fees, and other miscellaneous environmental fees. These additional taxes contribute to the difference collected among states.