(WHTM) — The headaches at the gas pump do not seem to be going away any time soon for residents of Pennsylvania.

According to GasBuddy, Pennsylvania has surpassed a statewide average of $5 per gallon after a 2.3 cent jump.

Get daily news, weather, breaking news, and alerts straight to your inbox! Sign up for the abc27 newsletters here

In the Harrisburg area, the current average is $4.95/g. This is up about 20 cents from one week ago. The same can be said in Gettysburg, Lancaster, Lebanon, and York.

At one Midstate gas station where Daniel Jillard was filling up, gas was $5.09 on Tuesday. And Jillard has to fill his tank with diesel, which was $6.39 a gallon.

“I’ve got a half-hour, 45-minute ride to work,” Jillard said. “Just to get back and forth makes it almost unreasonable to go to work.”

Scranton is paying the most in Pennsylvania at $5.11 a gallon, followed by Philadelphia at $5.08 and Allentown at $5.03 a gallon. The Pennsylvania Turnpike has gas prices nearing $5.10 a gallon in the Midstate.

AAA’s gas map confirmed that the highest prices in the state are in the northeastern area of the state, where prices surpassed $5/g.

Jay Shabat, publisher of an economics newsletter called Econ Weekly, says gas shortages are part of the problem, as are shortages of something else.

“Normally if I go to the gas station and it’s really expensive to fill up my tank, I’m going to think, ‘You know what? I need to get a new car anyway. I’m going to buy an electric vehicle,'” Shabat said. “You would eventually see the price of oil go down because there would just be less of a need for the gasoline.”

But there is a shortage of electric cars, too, and the prices of the few that are around are surging as quickly as gas prices.

The national average price for a gallon of regular gasoline shot up 17 cents from last week. Drivers were paying $3.04 a gallon on average a year ago at this time.

Analysts say the pent-up urge to travel has so far outweighed the skyrocketing prices at the pump for many consumers, but two-thirds of drivers recently surveyed said they would change their driving habits if gas hit $4.50 a gallon and three-quarters said they would do so if it topped $5 a gallon.

For those who think all hope is lost, Shabat says the past may offer some reassurance.

For example, Shabat said one could look at 2008. “That year started with prices at about $3 a gallon. They peaked at $4.11 — that would be like 5-and-a-half bucks a gallon in today’s dollars — but then by New Year’s Eve, they were down to just $1.61,” Shabat said.

“And we had a similar situation to that mid-2014” — $3.70 in June, $2.30 by the end of the year — “so it absolutely could go down very fast,” Shabat said.