German consumer prices increased by an annualised 2.4% in October, as rising costs of oil and staples like milk and butter kept inflation in the euro zone's biggest economy at its highest level in two years.
On a monthly basis, retail prices climbed by 0.2%, the federal statistics office Destatis said, confirming provisional data released late last month.
When volatile petrol products were removed from the calculation, German inflation came to 2.2% on an annual basis. The cost of motor fuels shot up by 10.3% over the year.
But the rising cost of high-profile food products like milk, butter and bread also fueled inflation, while sparking debate across the country. Next in line are fees for gas and electricity, which consumers have been warned will also climb this winter.
The increases could curb retail spending which the government and economists hoped would take over from business investment as an engine of economic growth.
A continuing decrease in unemployment and slow improvement in wages should nonetheless underpin the retail sector, analysts say.