The cost of crude oil is a key driver of gas and diesel prices

Just over half of the cost of a gallon of gas connects directly to the price of crude oil, which can fluctuate widely. The rest of the costs are more stable.