The U.S. economy expanded in the second quarter at the fastest rate since the last three months of 2011 as companies stepped up investment and households boosted spending.

Gross domestic product grew at a revised 4.6 percent annualized rate, up from a previous estimate of 4.2 percent, Commerce Department data showed Friday in Washington. The increase matched the median forecast of 81 economists surveyed by Bloomberg and followed a 2.1 percent decline in the first three months of the year.