US oil settles down 3.3%, or $1.58, at $46.32 a barrel

Rusted out 'pump-jacks' in the oil town of Luling, Texas.
Getty Images

Crude oil settled lower on Wednesday, wiping out most of their gains from the previous day, as a strong dollar, tumbling gasoline prices and rising U.S. crude inventories bore down on the market.

Adding to bearish sentiment was an internal OPEC document published by Reuters that showed weaker demand in the next few years for oil from the producer group, even as Saudi Arabia pumped near record levels to protect its market share.

Read MoreOil price rebound in focus but gloom gathering

Brent crude futures fell $1.91, or 3.78 percent, at $48.63 by 2:35 p.m. EDT (1835 GMT).

U.S. crude settled down 3.3 percent, or $1.58, at $46.32 a barrel.

Both Brent and U.S. crude had rallied about 4 percent on Tuesday on the back of a Brazilian oil workers strike, supply constraints in Libya and a U.S. pipeline outage.

Here are the downside risks for oil
Oil supply competition to intensify: IHS
Is this oil rally another short-lived phenomenon?

In Wednesday's session, the dollar rose to three-month highs against a basket of currencies as remarks from Federal Reserve Chair Janet Yellen intensified bets the central bank would raise interest rates next month if U.S. economic growth continued to improve. A strong dollar makes commodities denominated in the greenback, such as oil, less affordable for holder of other currencies.

"The bottom line is we are still well supplied," said Tariq Zahir, trader in crude oil spreads Tyche Capital Advisors in New York. "With the U.S. dollar strong on us, there are serious headwinds for crude."

U.S. crude inventories rose for the sixth consecutive week, adding 2.85 million barrels last week, in line with forecasts, in spite of a drop in imports to the lowest level since 1991, the U.S. Energy Information Administration (EIA) said.

Read MoreOil slump sends Saudi Arabia's PMI to all-time low

U.S. gasoline futures tumbled more than 2 percent, buckling down from Tuesday's 5 percent rally, despite the EIA reporting a larger-than-expected 3.3 million-barrel draw in stockpiles of the motor fuel last week.

With autumn maintenance season coming to an end, refinery utilization rates rose by 1.1 percentage points to 88.7 percent of capacity.

"Oil inventories have built by a fairly chunky amount despite refinery utilization increasing, and imports dropping," said Matt Smith, director of commodity research at energy database and consultancy Clipper Data.

"Here we are, mired in the $40 levels, while production ticks higher and inventories stand at over 100 million barrels higher than this time last year."