NEW YORK (CNNMoney) -- Gas prices spiked 6 cents Friday, the biggest one-day jump in two years, and drivers are probably wondering how prices can rise so much in such a short period of time.
Sure, oil prices surged past $100 a barrel Thursday in the wake of violence and protests in the Middle East. But the gas you're pumping at the station was probably made two or three weeks ago, when U.S. crude was trading in the high $80s.
So why the 6 cent jump?
Current gas prices aren't pegged to how much it cost refiners to make the gallon going into your car. They're pegged to what it will cost them to replace the gallons you're consuming.
Refiners sell gasoline and other products at pipeline terminals and barge ports scattered around the country. There are about 350 terminals where gas gets picked up for distribution and this is where wholesale prices are set.
The oil used to produce a gallon of gas may have cost the refiner $85 but the price of that gallon of gas will depend on the price of oil at the time of sale.
"If a refiner sells that gallon, what will it cost him to replace it the next day," said Brian Milne, refined fuels editor at Telvent DTN, an information provider. "The market is dictating these prices, it's not a retailer or wholesaler trying to gouge."
When gas prices go up, motorists generally blame the gas station. In fact, the recent spike has been quite tough for station owners. While retail prices have risen 12 cents, wholesale prices have surged 19 cents -- jumping 13 cents on Wednesday alone.
"Gas station owners are miserable, and they still haven't passed on all the price increases," said Tom Kloza, Chief oil analyst at the Oil Price Information Service. "They would love to see prices drop."
Station owners actually make their money when prices are on the way down -- when they can buy the replacement gas for a cheaper price than they are selling the stuff that's stocked in their tanks, Kloza said.
Astute market watchers may have become suspicious when gas prices spiked at the same time as U.S. oil prices. But U.S. oil prices aren't the whole story.
For-profit Corinthian College network is shutting its remaining 28 ground campuses effective today. More
A major earthquake was the last thing Nepal needed. Even before one of the country's major fault lines rumbled to life, the country was beset by challenges. More
Stars of Youtube, Vine, Snapchat, and Twitter are attending this year's White House Correspondents' Dinner. More
A Girl Scouts Cookie Oven rolling out to Wal-Mart, Target, Kmart stores this summer will let you bake those iconic thin mints right at home. More