Factory gate prices also rose sharply and by much more than expected, the figures from the Office for National Statistics released on Wednesday showed.
Economists polled by Reuters had mostly expected the headline rate of consumer price inflation to accelerate to 3.3 per cent, driven by a rise in petrol and other fuel costs during March.
The price of motor fuels jumped by 8.7 per cent on the month, the biggest rise since June 2022, shortly after Russia's full-scale invasion of Ukraine.
The data from the Office for National Statistics showed services price inflation - which the BoE watches closely as a gauge of longer-term inflation pressures - rose to 4.5 per cent from 4.3 per cent in February.
The economists polled by Reuters had expected it to hold at 4.3 per cent.
Core inflation, which excludes more volatile food, energy, alcohol and tobacco prices, weakened to 3.1 per cent from 3.2 per cent in February. The poll had pointed to another reading of 3.2 per cent.
Before the US-Israeli war on Iran began on February 28, the Bank of England said Britain's inflation rate - the highest among the Group of Seven economies for much of the last four years - was likely to be close to its two per cent target in April.
But the BoE in March sharply increased its inflation forecast due to the energy price shock, predicting it would rise towards 3.5 per cent by the middle of 2026.
The International Monetary Fund last week predicted British inflation would peak at four per cent in the coming months.
However, the BoE's interest rate-setters have mostly said it is too soon to know what the rise in headline inflation will mean for underlying price pressures in the economy, given the weak jobs market which could make it harder for workers to demand higher pay or for businesses to pass on higher costs.
The British central bank is expected to keep borrowing costs on hold on April 30 at the end of its next scheduled Monetary Policy Committee meeting.
Financial markets on Tuesday were betting on one or possibly two quarter-point interest rate rises by the BoE in 2026.
But a Reuters poll of economists showed most expected no change in borrowing costs during 2026.