U.S. crude for December snapped a three-day losing streak to settle up more than 6 percent, or $2.74, at $45.94 a barrel on Wednesday.
Oil futures recovered after paring gains slightly following the Federal Reserve's announcement that it would leave interest rates near zero.
Prices had risen on Wednesday, extending gains from an earlier rally, after the U.S. reported a crude inventory build that reversed bearish market expectations.
The price spike stalled oil bears' expectations for a longer and deeper price rout after futures hit two-month lows in the previous session on worries about high supplies and weak demand.
Bets that the U.S. Federal Reserve would hold off on a U.S. rate hike had weighed on the dollar, fueling price gains across commodities and adding to the oil rally.
Brent December crude futures were up $2.14, or 4.5 percent, at $48.95 a barrel at 2:35 p.m. EDT (1835 GMT), having fallen to their lowest since mid-September on Tuesday.