Oil jumped more than 6 percent to above $51 a barrel on Thursday after a move by the Federal Reserve to buy government bonds hit the dollar and revived expectations the U.S. economy could soon begin its recovery.

The Fed announced on Wednesday it would pump another $1 trillion into the U.S. economy by buying long-term government debt for the first time since the 1960s and by expanding purchases of mortgage bonds.

We have for the time being a return to risk appetite in the oil market and it's based on the Fed's announcement yesterday, said analyst Mike Wittner of Societe Generale. That's having a positive impact on sentiment.

U.S. crude for April was up $3.13 a barrel at $51.27 by 1205 GMT (8:05 a.m. EDT), having earlier traded as high as $51.65, the highest since December 1, 2008. London Brent for May delivery rose $3.11 to $50.77.

Some other commodities also advanced as the Fed's plan aroused expectations that demand may increase. Copper jumped more than 5 percent at a four-month high.

The $50-mark has been the top of oil's trading range so far in 2009. A close above that level is needed to increase the prospect of a further rally, said analysts who use past price moves to predict future direction.

Wittner added he did not expect prices to hold above $50 for very long, despite the Fed's move.

After this initial optimism fades, I don't think we'll stay there as the focus will shift to whether these measures will actually work.

The simple fact is we're not going to know the answer to that for some months.

WEAKER DOLLAR

The dollar eased against a basket of currencies on Thursday, after posting its biggest daily fall since 1985. A weak dollar can boost investor demand for oil and other commodities priced in the U.S. currency.

Besides technical resistance, falling demand could also limit oil's gains in the near term.

On Wednesday, oil fell after data showed U.S. crude inventories ballooned to the highest in nearly two years and the World Bank cut its 2009 forecast for China's economic growth.

In its weekly report, the U.S. Energy Information Administration (EIA) said crude oil stocks rose 2.0 million barrels to 353.3 million last week -- double the increase forecast by analysts.

Slumping demand and rising inventories have helped drag oil down from a record high near $150 reached last summer as the economic crisis hit consumption across the globe.

Analysts say oil, which sank below $33 in December, has stabilised around $40 to $50 due to OPEC supply curbs of 4.2 million barrels per day, but the grim economic outlook is standing in the way of a further advance.

The Organization of the Petroleum Exporting Countries pledged to comply more strictly with its supply curbs at a meeting on Sunday. It meets again to set oil output policy on May 28.

Saudi Arabian Oil Minister Ali al-Naimi, the group's most influential voice, said on Wednesday he believed OPEC had managed to put a floor under the market.

I think OPEC has succeeded in stabilizing prices, he said. The next thing is to hope for a gradual improvement in prices over time.

(Additional reporting by Fayen Wong; Editing by Anthony Barker)