Since the US war with Iran began, I’ve been tracking how gas prices have changed in each state. Using data from AAA, I compare the per gallon price of regular gasoline in each state to its price on February 18, before the war. More recently, I’ve created a new map that shows changes in diesel fuel, which has risen even faster.
As of October 21, regular gas is up in every state and D.C., from $0.80 per gallon in North Carolina (29 percent) to $1.96 in Utah (70 percent). Oklahoma has seen the largest percentage increase at 72 percent, and California remains the most expensive state at $6.11. Diesel has risen even more: every state is up at least $1.98 per gallon, Colorado’s price has nearly doubled (up 92 percent to $6.62), and California’s now stands at $8.49.
The two maps below show regular gas and diesel prices by state, and you can hover over any state to see how its price has moved since February 18. The maps are built in Flourish and update automatically via a Python script that scrapes the AAA website every day. If you want to build something similar, I walk through how to build and automate these maps in Flourish in this video.





