UK inflation rose to 3.6% in October from 3.5% in September, pushed higher by energy prices linked to the war in the Middle East.
The figure from the Office for National Statistics (ONS) matched City economists' forecasts.
The October reading includes a 4% rise in Ofgem's energy price cap, which took effect at the start of the month.
Forecasters warn the cap could rise by as much as a quarter in January because of higher wholesale gas prices.
The Bank of England expects inflation to peak at close to 5% next year.
Earlier this month it raised interest rates to 4% from 3.75% and warned that further increases might be needed to tackle price pressures caused by the Iran war.
Financial markets expect at least two more quarter-point rises before the end of next year.
Andy Burnham's government has promised to help households facing a fresh squeeze on living costs as the conflict disrupts the global economy.
At last month's budget, the chancellor, John Healey, announced a £100 winter payment for 20 million households.