A worker stands next to a pump jack at an oil field Sergeyevskoye owned by Bashneft company north from Ufa, Bashkortostan, Russia. Sergei Karpukhin | Reuters

Oil prices fell 3 percent on Wednesday, paring their big gains for August, after government data showed a larger-than-expected weekly build in U.S. crude and distillate stockpiles and a smaller-than-expected drawdown in gasoline. Crude futures remained on track for their best monthly return since April, rising as much as 11 percent, after speculation in recent weeks that the Organization of the Petroleum Exporting Countries and other oil producers could agree to curb output at September talks in Algeria. Even so, oil has fallen since the start of this week as the dollar rallied and expectations for an OPEC-led production freeze fizzled. Wednesday's supply-demand data from U.S. Energy Information Administration (EIA) could trigger a more bearish trend, analysts said. The EIA said crude stockpiles rose for a second straight week, building by 2.3 million barrels last week, compared with analysts' expectations for a rise of 921,000 barrels.

Distillate stocks, which include diesel and heating oil, unexpectedly rose 1.5 million barrels, while the gasoline inventory drop of 691,000 barrels was about half the drawdown forecast. "I would call this the trifecta of bearish news," said Tariq Zahir, a trader in WTI timespreads at Tyche Capital Advisors in New York. "We should be getting draws for this time of year. Not only are we getting shocking builds, we're also being squeezed by the bullishness of the U.S. dollar and a hurricane season that's had very little impact thus far on actual crude production."

Brent crude oil futures fell $1.33, or 2.75 percent, to $47.04 per barrel. U.S. West Texas Intermediate (WTI) crude futures were down $1.65, or 3.56 percent, at $44.70. For the month, Brent was up 11 percent and WTI 8 percent. "We had a short on WTI this morning at $46 and we took the money and ran," said Phil Davis, trader at PSW Investments Woodland Park, New Jersey. The market has paid little heed so far to risks of storm damage to oil and gas installations in the U.S. Gulf of Mexico. The U.S. government said on Tuesday that a little more than 22 percent of crude equivalent production in the Gulf had been shut due to a tropical depression.