By Barani Krishnan
NEW YORK (Reuters) - Oil prices were largely unchanged on Wednesday, giving up earlier gains after the U.S. government reported a surprise crude stockpile build.
Crude inventories rose 1.1 million barrels in the week ended Aug. 5, compared with analysts' expectations for a decrease of 1.0 million barrels, the U.S. Energy Information Administration (EIA) said.
U.S. West Texas Intermediate (WTI) crude futures fell 5 cents to $42.75 per barrel by 10:50 a.m. EDT (1450 GMT).
U.S. gasoline futures rose nearly 1 percent, extending gains, after the EIA also reported a larger-than-expected gasoline drawdown of 2.8 million barrel, but last reversed gains and was trading at down nearly 1 percent.
Brent crude futures rose by 2 cents to $45 per barrel.
Also Read
"We do feel that any further strength in the spot price will be met with selling," said Tariq Zahir, trader in crude oil spreads at Tyche Capital Advisors in New York.
"At this time of year, we should be drawing down in crude inventories and we are still building."
(Additional reporting by Ahmad Ghaddar in LONDON and Henning Gloystein in SINGAPORE; Editing by Marguerita Choy and Jeffrey Hodgson)