By Stephanie Kelly
NEW YORK (Reuters) - Oil prices climbed to their highest level in three weeks on Tuesday as tension in the Middle East and the possibility of further falls in Venezuelan output helped offset the impact of growing U.S. crude production.
U.S. West Texas Intermediate (WTI) crude
The more active May U.S. crude futures
(GRAPHIC: Russia vs Saudi vs U.S. oil production - http://reut.rs/2G7AK80)
Prices extended gains in post-settlement trading after data from the American Petroleum Institute showed a surprise draw in U.S. crude inventories.
Stocks fell 2.7 million barrels in the week ended March 16 to 425.3 million barrels, according to the API, compared with analysts' expectations for an increase of 2.6 million barrels. Government inventory data is due on Wednesday at 10:30 a.m. EDT (1430 GMT).
(GRAPHIC: World oil supply and demand balance - http://reut.rs/2FIxGvP)
Geopolitical risks were top of mind on Tuesday. Saudi Arabia called the 2015 nuclear deal between Iran and world powers a "flawed agreement" on Monday, on the eve of a meeting between Crown Prince Mohammed bin Salman and U.S. President Donald Trump.
Trump has threatened to withdraw the United States from the accord between Tehran and six world powers, raising the prospect of new sanctions that could hurt Iran's oil industry.
"There's an expectation that (Trump and Prince Mohammed) are going to take a harder line on Iran, and that's bringing prices up," said Phil Flynn, a senior energy analyst at Price Futures Group in Chicago.
Worries about falling production in Venezuela, whose output has been halved since 2005 to below 2 million barrels per day (bpd)
The International Energy Agency said last week Venezuela was "vulnerable to an accelerated decline" and that the Latin American country could trigger a renewed drawdown in stocks.
However, increased output in the United States, Canada and Brazil has capped oil price gains. U.S. crude oil production
The ramped-up production threatens to undermine cuts made by the Organization of the Petroleum Exporting Countries in an effort to draw down a global supply glut.
(GRAPHIC: U.S. vs Venezuela oil production since 2005 - http://reut.rs/2FWXdBH)
Appetite for U.S. crude is adding to the headache facing OPEC. A widening discount of WTI to Brent crude makes it more attractive for foreign refiners to process U.S. oil. Brent is the benchmark for several Middle East and other global crudes.
The premium of Brent crude to WTI
Gasoline futures on the New York Mercantile Exchange
Data from market intelligence firm Genscape showed gasoline inventories in the New York Harbor region fell by about 1.1 million barrels last week, traders who saw the data said.
Heating oil futures
(Additional reporting by Amanda Cooper in London and Henning Gloystein in Singapore; Editing by Marguerita Choy and Leslie Adler)