Britain's economy dodged a return to recession and grew faster than expected in the first three months of this year, providing some political relief for a government under fire over its austerity drive.

The Office for National Statistics said Britain's gross domestic product rose 0.3% in the first quarter, well above forecasts for a 0.1% rise.

The economy shrank 0.3% quarter-on-quarter in late 2012, so a second contraction would have put Britain into its third recession in less than five years.

Year-on-year, the latest GDP reading was 0.6% higher, the strongest rise since the end of 2011.

Finance minister George Osborne said today's data was encouraging and vowed to stay the course on fixing Britain's budget problems.

"We all know there are no easy answers to problems built up over many years, and I can't promise the road ahead will always be smooth, but by continuing to confront our problems head on, Britain is recovering and we are building an economy fit for the future," he said in a statement.

Sterling hit its highest level in two months against the dollar after the data.

Britain's preliminary GDP figures are one of the first for a major advanced economy, and based mostly on estimated data, but it would be rare for a reading this high to be revised down into negative territory. The rise was driven by strong services sector growth and a bounce-back in North Sea oil and gas output.

The figures also showed that the impact of the snow at the start of the year was not as bad as feared, with weather-hit trading in the shops offset by a boost in energy demand as households ramped up their heating during the cold snap

Politically, a slip back into recession would have been difficult for the government in general and Osborne in particular, coming just days after ratings agency Fitch stripped Britain of its top-notch credit rating.

Osborne is sticking to his commitment to eliminate Britain's underlying budget deficit in five years, betting that growth will pick up in time for a national election in May 2015 despite sluggish expansion forecast to be just 0.6% this year.

But the International Monetary Fund - previously supportive of Britain's approach to deficit reduction - thinks some cuts may need to be deferred given the weakness in demand. An IMF mission visits Britain next month for an assessment of the country's economy that could include recommendations for a change of course.

The stronger than expected reading may help Osborne when he tries to convince the IMF that Britain's economy is on track for recovery, and that he is right to stick with his current plans.

Analysts warn of a broader problem of stagnation that has led some to warn that Britain risks a Japanese-style 'lost decade of near-zero growth.

Britain's GDP remains 2.6% below its peak in the first quarter of 2008 and even with today's data, has stagnated for the past 18 months. Britain has been much slower to recover from the financial crisis than most other big economies.

Weak demand from a recession-hit euro zone, a drag from the government's deficit-reduction measures and high inflation eating into meagre wage rises are all to blame. Furthermore, the global economy is weakening and there are signs of slowing growth in the US and China.

Britain's government and the Bank of England are making some efforts to boost growth without requiring more public spending, including seeking to expand bank lending . The first-quarter rise in output was driven by a broad-based increase in services output, building on a strong January, with the motor trade particularly strong.

Industrial output was lifted by the biggest rise in the mining and quarrying sector since 2002, as some North Sea oil and gas fields came back on line after lengthy maintenance that depressed output in 2012.