UK GDP grew by 0.6% in the second quarter of the year, higher than analyst expectations of 0.4% for the period covering the vote to leave the EU, according to the Office for National Statistics.
In the preliminary estimate, the ONS said today's figure for the three months to the end of June is an increase on the 0.4% growth during the first quarter of the year, and a 2.2% increase year-on-year.
Although the period only includes data up to one week after the referendum, it indicates the country approached Brexit from a period of relative strength. There have now been 14 consecutive quarters of positive GDP growth.
Chancellor Philip Hammond said the figures indicated "the fundamentals of the British economy are strong" and reiterated the government would do "whatever action is necessary" to support the economy.
GDP is now 7.7% higher than it was at the pre-economic downturn peak in the first quarter of 2008.
The two main sectors to see a boost in output this quarter were services, which increased by 0.5%, and production which increased by 2.1%. Construction declined by 0.4% and agriculture declined by 1%.
Hargreaves Lansdown senior economist Ben Brettell said: "The UK economy shook off pre-referendum nerves to grow by a better-than-expected 0.6% in the second quarter, with a notably strong performance from the manufacturing sector.
"It is always difficult to tell where you are going by looking in the rear-view mirror, and as such today's GDP figures cannot be taken as evidence of the current climate. However, what they do show is an absence of pre-Brexit concerns, meaning that if the forecast downturn does materialise, at least we start from a position of relative strength."
However, Brettell said other leading indicators such as falling consumer confidence and PMI data signalled a recession could be "self-fulfilling prophecy".