The U.S. economy suffered its sharpest downturn since at least the 1940s in the second quarter, highlighting how the pandemic has ravaged businesses across the country and left millions of Americans out of work.

Gross domestic product shrank 9.5 percent in the second quarter from the first, a drop that equals an annualized pace of 32.9 percent, the Commerce Department’s initial estimate showed on Thursday. That’s the steepest annualized decline in quarterly records dating back to 1947 and compares with analyst estimates for a 34.5 percent contraction. Personal spending, which makes up about two-thirds of GDP, slumped an annualized 34.6 percent, also the most on record.

The figures lay bare the extent of the economic devastation that resulted from the government-ordered shutdowns and stay-at-home orders designed to slow the spread of the novel coronavirus that abruptly brought a halt to the longest-running expansion. While employment, spending and production have improved since reopenings picked up in May and massive federal stimulus reached Americans, a recent surge in infections has tempered the pace of the recovery.