This follows on from a rise of 0.4% in June and a drop of 0.1% in May.
Real GDP grew by 0.2% in the three months to July compared to the three months to April, but the ONS said this was a fall from the three-month-on-three-month rises of 0.3% and 0.6% in June and May respectively.
The ONS also noted that three-monthly GDP slowed for the third consecutive period in July.
Services output was the principal cause of three-monthly GDP growth, having expanded by 0.4% in both the three months to July and the three months to June.
Production output recorded a fall of 1.3% in the three months to July, while construction output grew by 0.6% over the same period.
The new-build energy advantage
Sponsored by Halifax Intermediaries
‘Huge concerns about consumer confidence’
Danni Hewson, head of financial analysis at AJ Bell, said: “The UK economy has demonstrated incredible resilience over the past six months, delivering growth that has overshadowed other G7 countries.
“But the latest set of data throws into stark relief the fragility of that growth, the very thing this government has hung its hat on and something that will be crucial as the Chancellor battles to balance her books ahead of Budget.
“Clearly, Donald Trump’s tariffs and the uncertainty about the impact on global trade has impacted some manufacturers, but it’s notable that one of the biggest drops came from the pharmaceutical sector, a sector already in the spotlight after US pharma giant Merck announced it was pulling out of a major UK investment.
“And whilst the sun shone for retailers and parts of the hospitality sector in July, there are huge concerns about consumer confidence, which is expected to buckle under the weight of Budget speculation at a crucial juncture for both.”
She continued: “Many businesses [that] had delayed investment and job creation as they worked through the impact of last year’s Budget on labour costs have kept their fingers on the pause button as they consider what taxes might go up in order to fill the hole in the public finances.
“The biggest question is how will these figures impact the sums being sweated over by the government’s spending watchdog the OBR, because any downgrading of their long-term growth expectation will cost the Treasury dearly?”