Germany's economy grew at its fastest rate in three years in the first quarter, driven by domestic factors.

But a leading indicator of sentiment signalled that expansion in Europe's largest economy is set to slow.

Strong investment and more freely-spending consumers drove the German economy to a seasonally-adjusted 0.8% quarterly growth rate, according to the Federal Statistics Office. 

That was twice the rate in the final quarter of last year and meant Germany was the growth engine of the euro zone's €9.5 trillion economy. 

Growth was helped by milder than usual winter weather which meant the usual spring upturn was brought forward. 

Exports, the traditional backbone of the German economy, were a drag on growth. "Positive impetus came exclusively from within the country in a quarter-on-quarter comparison," the Statistics Office said. 

Economists and the German government expect growth to slow after the strong first quarter. The government sees the economy expanding by 1.8% this year, down from the year-on-year growth rate of 2.5% in the first quarter. 

Germany's leading indicator of business morale, the Ifo index, today also pointed to a reduced growth rate, falling in May to the lowest level so far this year and missing expectations. 

"A lull was seen in the German economy in May," Ifo President Hans-Werner Sinn said after business sentiment dropped to 110.4 from 111.2 in April. 

The drop, which Ifo economist Klaus Wohlrabe said was in part due to the impact of the Ukraine crisis, sent the euro to its lowest level in three months. 

In the Ifo survey, assessments of current business and expectations of future business developments both fell. 

Ifo said expectations in the car sector had taken off, in line with news this month from the world's biggest luxury carmaker BMW, which said investment in new models would help it achieve record sales this year. The firm is spending heavily in a bid to stay ahead of rivals. 

In the first quarter, German plant and equipment investment grew by 3.3%, the strongest level in three and a half years, while construction investment, up 3.6%, was the strongest on the quarter in three years. 

Domestic demand added 1.7 percentage points to GDP in the first quarter, while foreign trade subtracted 0.9 percentage points. Private consumption added 0.4 percentage points. 

But as other euro zone countries such as Spain, which had to take strong medicine to improve competitiveness, are starting to see benefits, some economists expected trade to help Germany again as well.