High oil and gasoline prices, as well as energy supply issues, are unlikely to disappear overnight, despite Sunday's agreement to end the Iran war and open the Strait of Hormuz.

It will likely take months before energy companies can resume operations to the point of meeting the world’s demand, according to energy experts.

The slow pace of the process of shipping and refining crude oil, and doubts about the security of traveling through the strait mean the effect won't be seen immediately, they said.

Ships loaded with crude oil have been stranded in the Persian Gulf for more than three months, unable to safely travel through the waterway, through which about a fifth of the world’s oil and gasoline supplies typically traveled before the war began.

"It's going to take time for people to feel comfortable and for insurance to be in place ... particularly to get people on the ground to restart some of these assets," said Daniel Evans, global head of fuels and refining research at S&P Global Energy.