Retail sales plunged in March, offering a grim snapshot of the coronavirus outbreak’s effect on consumer spending, as businesses shuttered from coast to coast and wary shoppers restricted their spending.

Total sales, which include retail purchases in stores and online as well as money spent at bars and restaurants, fell 8.7 percent from the previous month, the Commerce Department said Wednesday. The decline was by far the largest in the nearly three decades the government has tracked the data.

Even that bleak figure doesn’t capture the full impact of the sudden economic freeze on the retail industry. Most states didn’t shut down nonessential businesses until late March or early April, meaning data for the current month could be worse still.

“It was a pretty catastrophic drop-off in that back half of the month,” said Sucharita Kodali, a retail analyst at Forrester Research. She said April “may be one of the worst months ever.”