UK CPI inflation rose from 2.4% to 2.7% in May, according to the Office for National Statistics, a larger than expected rise driven by transport and clothing costs.
The rise takes the headline inflation rate back to levels seen between October 2012 and March 2013, erasing the drop to 2.4% seen last month.
Economists had expected a rise back up to 2.6%. The core rate of inflation rose from 2% to 2.2%.
The largest upwards contributions came from transport, particularly air transport and motor fuel, as well as clothing. The largest downward contributor, meanwhile, came from food.
Capital Economics' chief UK economist Vicky Redwood said the rise "should not prevent [incoming Bank of England governor] Mark Carney from giving the economy more policy support in order to achieve ‘escape velocity'".
"Inflation will probably get above 3% in the next month or two [...]but thereafter it should begin a slow but steady drift down, getting to its target around the start of next year," Redwood said.