This was higher than a 2.9% rise in Northern Ireland, a 0.8% rise in Wales and a fall of 0.9% in Scotland.
The average price of a home in the UK rose to £284,000.
'Robust'
Overall, the pace of UK house price rises was unchanged in August compared with July.
The annual rise in prices of 5.2% was still much faster than consumer prices in general, which were unchanged over the same period.
Richard Snook, senior economist at accountants PwC, said: "The figures show a robust housing market, providing further ammunition for those calling for an interest rate rise in the near term.
"With inflation likely to rise over the coming months as last winter's energy price decline drops out of the equation, we expect pressure to continue to build on the Monetary Policy Committee."
The ONS said that house prices were rising faster for owner-occupiers (up 5.8%) than they were for first-time buyers (up 3.8%).
Regionally, the fastest property price rise was seen in the East of England (up 8.8%), with Scotland registering the only fall in average prices.