Price rises have seen the biggest jump since records began in 1997 as the economy continued to reopen.
Official figures show that the increase in the cost of living, as measured by the Consumer Prices Index, hit 3.2% in the year to August.
Higher prices in restaurants and for recreation and food were behind the spike, up from 2% the previous month.
The cost of living rose less rapidly in July because of lower clothing and footwear prices.
However, the Office for National Statistics (ONS) urged caution in reading too much into August's price increases, which it described as "temporary".
Eating and drinking out cost more last month in comparison with August last year, when the Eat Out to Help Out Scheme was running and diners got a state-backed 50% discount on meals up to £10 each on Mondays, Tuesdays and Wednesdays.
At the same time, business owners in the hospitality and tourism sectors received a VAT discount, designed to help some of the industries worst hit by the pandemic.
Jonathan Athow, deputy national statistician at the ONS, said: "August saw the largest rise in annual inflation month-on-month since the series was introduced almost a quarter of a century ago.
"However, much of this is likely to be temporary, as last year, restaurant and cafe prices fell substantially due to the Eat Out to Help Out scheme, while this year, prices rose."
In August this year, transport costs also increased.
Ruth Gregory, senior UK economist at Capital Economics, told BBC Radio 4's Today Programme that price rises seen in August were "almost unavoidable" because of the discounts available in 2020.
"Inflation, which is a year-on-year comparison, was always going to look strong compared to last year," she said.
"Some of that rise reflected genuine factors too. In particular, we are now seeing the effects of higher global shipping costs and shortages of staff driving up food price inflation."
She also expects, however, that the cost of living could continue to increase rapidly, with inflation exceeding 4% by November.
The latest official figures will add to the debate about whether interest rates need to go up to curb consumer spending and moderate prices.
Inflation now exceeds the Bank of England's 2% target, aimed at keeping cost increases steady.
But Capital Economics points out that inflation is likely to fall back almost as sharply next year and that the Bank of England's Monetary Policy Committee is not expected to raise interest rates until 2023.
The central bank's deputy governor, Ben Broadbent, insisted in July that it would not stop its efforts to boost the economy, despite the forecast of higher costs.
"While we know [inflation] is going to go further over the next few months, I'm not convinced that the current inflation in retail goods prices should in and of itself mean higher inflation 18 to 24 months ahead, the horizon more relevant for monetary policy," he said.
Most of the inflation in goods prices was down to oil price rises and supply chain issues, he said, which was likely to "fall away" in the early part of 2022.
But given that Wednesday's latest figures breach the Bank's target, it must now write to Chancellor Rishi Sunak to explain what it will do to ensure that price prices are steady in future.
James Lyon Shaw, who owns the Greene Oak Pub in Windsor, Berkshire, told the BBC the rise in inflation had to be taken in context and that businesses, including his own, needed to "ride the storm".
He is paying his employees 10 to 20% more an hour compared to last year due to the wider workforce shortages.
He said increases in food prices depended on where restaurants and pubs source their food, with rises in haulage and logistics costs hitting profit margins.
"We just have got to get through, you've got to be pragmatic, get on and adapt your business."
He questioned if people had enjoyed access to "cheap food" for too long and whether there needed to be a shift in attitudes to pay for more sustainably produced products.