"America should know... it is not capable of preventing the export of Iran's oil," Rouhani said at a televised rally in Semnan province.
"If it ever tries to do so... no oil will be exported from the Persian Gulf," he added.
Pak-Iran: Trade and travel suspended for three weeks
Since the 1980s, Iran has said repeatedly it would blockade the Gulf in response to international pressure but has never carried out the threat.
Washington has reimposed sanctions, including an oil embargo, since withdrawing from a landmark 2015 nuclear deal between Tehran and major powers in May.
It has vowed to reduce Iran's oil sales to zero, but has granted temporary waivers to eight countries.
Rouhani last threatened to close the Gulf in July when he warned the US "should not play with the lion's tail."
The president downplayed the economic impact of sanctions, accusing the media of exaggerating the country's problems.
"No hyperinflation, no massive unemployment will threaten us. People should stop saying such things in the papers," he told the crowd.
Afghan conflict: Pakistan, Iran stress on coordination to safeguard mutual interests
The latest inflation report from Iran's central bank says food prices rose 56 per cent year-on-year in October.
Rouhani acknowledged there were "some problems", but said these would be addressed in the new budget plan to be presented on December 16.
He said the government would maintain subsidies on essential goods and increase public sector wages and pensions by 20 per cent.
COMMENTS (1)
Comments are moderated and generally will be posted if they are on-topic and not abusive.
For more information, please see our Comments FAQ