The figures were a blow to the German government, which last month boldly doubled its growth forecast for this year after a feared winter energy crunch failed to materialise.
The German economy shrank unexpectedly in the first three months of this year, marking the second quarter of contraction which is one definition of recession.
Data released on Thursday by the Federal Statistical Office shows Germany's gross domestic product, or GDP, declined by 0.3 per cent in the period from January to March. This follows a drop of 0.5 per cent in Europe's biggest economy during the last quarter of 2022.
Two consecutive quarters of contraction is a common definition of recession, though economists on the euro area business cycle dating committee use a broader set of data, including employment figures. Germany is one of the 20 countries that use the euro currency.
Employment in the country rose in the first quarter and inflation has eased, but higher interest rates will keep weighing on spending and investment, said Franziska Palmas, senior Europe economist for Capital Economics.
“Germany has experienced a technical recession and has been by far the worst performer among major eurozone economies over the past two quarters,” Palmas said, predicting further weakness ahead.
But the German government had said the economy would grow by 0.4 per cent - up from a 0.2 per cent expansion predicted in late January - a forecast that may now need to be revised downward.
Economists said high inflation hit consumer spending, with prices in April 7.2 per cent higher than a year ago.
GDP reflects the total value of goods and services produced in a country. Some experts question whether the figure alone is a useful indicator of economic prosperity, given that it doesn't distinguish between types of spending.
The eurozone economy scraped out meagre growth of 0.1 per cent in the first quarter, according to initial estimates, with inflation eroding people’s willingness to spend as pay fails to keep pace.
The US also has reported disappointing growth estimates that kept alive fears of a recession in the world’s largest economy.
The International Monetary Fund predicted this week that the UK would avoid falling into recession this year after previously expecting it to be one of the worst performing among the Group of Seven leading industrial nations.
IMF Managing Director Kristalina Georgieva said on Tuesday: “we're likely to see the UK performing better than Germany, for example".