That was above the median forecast for a rise of 2.7 per cent in a Reuters poll of economists and is faster than the growth in pay for most people.
Inflation climbed to a near four-year high of 2.9% in May, up from 2.7% the month before, according to official figures.
"The further increase in inflation - to its highest rate since June 2013 - primarily reflects retailers passing on higher import prices to consumers in earnest", said Samuel Tombs, the chief United Kingdom economist at Pantheon Macroeconomics.
The ONS said one of the main drivers for inflation in May was the increased cost of holidays overseas for British tourists who have to pay more for their euros and United States dollars.
Month-on-month, underlying consumer prices increased 0.1 percent, while it was expected to decrease by 0.1 percent.
But some economists suggested that the unexpected slowdown in inflation in recent months may cause the Fed to slow the pace of further rate hikes.
Steph Curry says he wouldn't go to the White House if invited
They apparently wasted little time in deciding whether to visit the White House and President Donald Trump if invited . Just last month , Kerr called Trump a "blowhard" and said he "couldn't be more ill-suited for office ".
Another big push on prices came from computer games and equipment, which are typically imported and therefore reflect the diminished buying power of sterling since the Brexit vote.
Growth slowed to 0.2 percent in the first quarter, partly because of weaker consumer spending, and the National Institute of Economic and Social Research estimates it hasn't picked up so far this quarter.
That was the smallest increase since last November and followed a 2.2 percent gain in April. "Nevertheless, given other pressures, including domestic political uncertainty, interest rates still seem set to remain on hold for now", Rhys Herbert, Senior Economist at Lloyds Bank Commercial Banking said in an emailed statement.
United Kingdom inflation climbed even higher in May as a weak pound continued to push up the prices of everyday goods and services. Central bank governor Urjit Patel kept the benchmark repurchase rate unchanged at 6.25 percent in a policy review last week, saying the easing of price pressures may be transient.
Core inflation, which excludes energy and food, rose a slight 0.1 percent in May. Prices in London alone rose by 4.7 per cent in April.
- John Major says Tory-DUP deal could threaten Northern Irish peace process
- Trump visé par une enquête pour entrave à la justice
- Acquaintance of Alexandria shooting suspect: 'He could have a short temper'
- Trump makes surprise visit to hospital treating hurt congressman
- New 'Spider-man' Playstation game unveiled
- Sessions Refuses to Testify on Trump Conversations, Saying it Would Be 'Inappropriate'
- Obama Praises US Cities, States, for Climate Change Stand
- Who is James T. Hodgkinson, identified as GOP baseball practice shooter?
- Rep. Brooks, others emerge as heroes after Alexandria shooting
- ND, Minn. leaders respond to ballpark shooting wounding GOP leader