Americans are spending more at the pump than they have in years. Prices could rise even higher just as drivers hit the road for family vacations.

“This summer, in terms of average gas prices, will likely be the highest since 2014,” said Patrick DeHaan, petroleum analyst at GasBuddy, a fuel-tracking app. “There’s been very little question about that.”

Crude...