The roller coaster rise and fall in gasoline and diesel prices over the last couple of years tracks changes in the cost of crude oil. Those changes are determined in the global crude oil market by the worldwide demand for and supply of crude oil. See the document below for detailed information.
What's Up with Gasoline Prices? is available in both high and low resolution versions.
See high and low resolution versions of individual charts below: