(CNN Money) -- President Donald Trump chose a dicey time to crack down on Iran, the world's fifth-biggest oil producer.
Global oil supplies were already getting tight before Trump vowed on Tuesday to exit the Iran nuclear deal and impose "powerful" sanctions on the OPEC nation.
Energy industry insiders say Trump's tough stance on Iran will probably keep oil and gasoline prices higher than they would otherwise be.
Iran ramped up its oil production by 1 million barrels per day after sanctions were lifted in early 2016. At least some of that oil will now be pulled from the market — at a time when oil prices are already rising because of production cuts by OPEC and Russia as well as instability in Venezuela.
Dan Eberhart, CEO of oilfield services company Canary LLC, drew a direct connection: "Withdrawing from the Iran nuclear deal will support higher oil prices."
Trump telegraphed the move, and oil prices shot up in recent weeks as traders anticipated it. Crude topped $70 a barrel this week for the first time in nearly four years. Hours before Trump's announcement, federal government forecasters raised their estimate for 2018 oil prices by 10.5% to an average of $65.58 a barrel.
Crude oil prices swung wildly on Tuesday, eventually climbing back above $70 a barrel later in the day.
Gasoline prices, which generally follow oil prices, have jumped to a national average of $2.81 a gallon, according to AAA. A gallon of gas went for $2.34 a year ago. The typical family will spend about $200 more this summer driving season, according to the Oil Price Information Service.
"It will be more painful for motorists than the past two years — but nothing close to 2011 to 2014 when it was $3.40 to $3.60 a gallon," said Tom Kloza, global head of energy analysis at OPIS.
Related: Oil prices swing wildly after Iran news
No one knows exactly how high prices will go. That will be determined by a range of factors, including how much Iranian crude is restricted by the sanctions and whether other major producers — such as the United States — fill the gap.
Saudi Arabia will 'mitigate' supply shortages
OPEC kingpin Saudi Arabia indicated it was ready to act. In a statement late Tuesday, the Saudi energy ministry said was "committed to supporting the stability of oil markets."
"The kingdom [will] work with major producers within and outside OPEC, as well as major consumers, to mitigate the impact of any potential supply shortages," the official Saudi Press Agency said, citing a statement from the ministry.
But there's another major question: Will tensions in the Middle East rise even further now that the United States is leaving the Iran deal? Heightened geopolitical fears in the Middle East often raise prices.
Several US military officials told CNN that there are increasing concerns Iran is on the cusp of an attack against Israel. It's not clear when an attack could come, nor what form it could take.
"The three or four-year period of quiet in terms of geopolitics impacting oil markets is over," said Canary's Eberhart.
Iran produced about 3.8 million barrels of oil per day in April, according to the latest S&P Global Platts OPEC survey. That's up from 2.9 million barrels per day in January 2016, when the nuclear deal took effect.
Just how much of Iran's growth in oil production is at risk — and when it could decline — is uncertain. The Treasury Department said on Tuesday that sanctions targeting Iran's oil trade and energy industry will come with a six-month lag.
Most analysts believe that at least some nations will ignore the new American sanctions and continue buying Iranian crude. China, Iran's largest customer, may be especially reluctant to cut Iran off because of the trade tensions between Beijing and Washington.
"Short of war, the only way Iran's crude sales could be disrupted is if European and certain Asian buyers revert back to their pre-2015 embargo policy — and there is virtually zero chance of that," Raymond James energy analyst Pavel Molchanov said in email.
Related: America's biggest oilfield is running out of pipeline
Snapping sanctions back on Iran will have an immediate impact on less than 200,000 barrels per day of Iranian oil, according to analysts surveyed by S&P Global Platts. That figure rises to less than 500,000 barrels per day after six months.
That's still a sizable amount of oil, especially considering the strong demand around the world.
Other major producers could fill the hole left by Iran.
Saudi Arabia, for instance, has the ability to crank up output. Yet analysts say Saudi Arabia would like to keep prices rising ahead of the IPO of its state-owned oil giant Saudi Aramco.
Production in the United States is surging thanks to the shale revolution. In fact, the Energy Information Administration lifted its 2019 domestic output forecast on Tuesday by nearly 4% to a record 11.9 million barrels per day.
"It's quite possible that surging US shale production could easily fill the gap left by Iran," Eberhart said.
One catch: Output is surging so much in the Permian Basin, America's biggest oilfield, that pipelines can't keep up. New pipelines are in the works, but won't be ready until later next year.
™ & © 2018 Cable News Network, Inc., a Time Warner Company. All rights reserved.