Oil prices rose more than $US1 a barrel overnight after news that China and the United States were resuming trade talks ahead of a meeting at the G20 summit later this month, spurring hopes that the two countries would resolve an ongoing trade conflict.

Rising tensions in the Middle East after last week’s tanker attacks, with the US planning to send more troops to the Middle East, also lent support.

US West Texas Intermediate crude futures rose $US1.97, or 3.8 per cent, to settle at $US53.90 a barrel.

Brent crude futures gained $US1.20, or two per cent, to settle at $US62.14 a barrel.

“Had a very good telephone conversation with President Xi of China. We will be having an extended meeting next week at the G-20 in Japan. Our respective teams will begin talks prior to our meeting,” US President Donald Trump tweeted.

Chinese officials, who had previously declined to say whether the two leaders would meet, confirmed the get-together.

“The talks were dead in the water, and the damage to the global economy has been growing on a daily basis,” said John Kilduff, a partner at Again Capital LLC in New York.

Fears of a confrontation between Iran and the United States have mounted since last Thursday’s oil tanker attacks, which US authorities have blamed on Tehran.

The Iranian government has denied involvement.

Trump said he was prepared to take military action to stop Iran having a nuclear bomb but left open whether he would sanction the use of force to protect Gulf oil supplies.

Iran’s government on Monday said it would breach internationally agreed curbs on its stock of low-enriched uranium within 10 days, adding that European countries still had time to save a landmark nuclear deal.

Acting US Defense Secretary Patrick Shanahan announced on Monday the deployment of about 1,000 more troops to the Middle East for what he said were defensive purposes, citing concerns about a threat from Iran.

Market participants are also awaiting a meeting between the Organisation of the Petroleum Exporting Countries and other producers including Russia, a group known as OPEC+, to decide whether to extend a supply reduction pact that ends this month.

OPEC and non-OPEC states are discussing holding meetings on July 10-12 in Vienna, a date range proposed by Iran, OPEC sources said on Tuesday.

Russian Energy Minister Alexander Novak said on Tuesday it was too early to make any decisions about the future of the agreement because of market uncertainties.

Oil prices have fallen by more than 15 per cent from April’s 2019 highs, partly because of concerns over the US-China trade row and disappointing economic data.

High US crude stockpiles, partly due to growing domestic production, has also weighed on the market.

Commercial stocks were at their highest since July 2017 and about eight per cent above the five-year average for this time of year, according to government data last week.

US crude stocks fell by 812,000 barrels last week to 482 million, industry group the American Petroleum Institute said on Tuesday.

Official estimates are due to be released on Wednesday.