The U.S. economy surprisingly accelerated to a 2.4% annual growth rate from April through June, showing continued resilience in the face of steadily higher interest rates resulting from the Federal Reserve’s 16-month-long fight to bring down inflation.

Thursday’s estimate from the Commerce Department indicated that the gross domestic product — the economy’s total output of goods and services — picked up from the 2% growth rate in the January-March quarter. Last quarter’s expansion was well above the 1.5% annual rate that economists had forecast.

Driving last quarter’s growth was a burst of business investment. Excluding housing, business spending surged at a 7.7% annual rate, the fastest such pace since early 2022. Companies plowed more money into factories and equipment. Increased spending by state and local governments also helped fuel the economy’s expansion in the April-June quarter.

Consumer spending, the heart of the nation’s economy, was also solid last quarter, though it slowed to a 1.6% annual rate from a robust 4.2% pace in the first quarter of the year.... Read More: Associated Press