The U.S. economy continued to grow at a healthy pace at the end of 2023, capping a year in which unemployment remained low, inflation cooled and a widely predicted recession never materialized.

Gross domestic product, adjusted for inflation, grew at a 3.3 percent annual rate in the fourth quarter, the Commerce Department said on Thursday. That was down from the 4.9 percent rate in the third quarter but easily topped forecasters’ expectations and showed the resilience of the recovery from the pandemic’s economic upheaval.

The latest reading is preliminary and may be revised in the months ahead.

Forecasters entered 2023 expecting the Federal Reserve’s aggressive campaign of interest-rate increases to push the economy into reverse. Instead, growth accelerated: For the full year, measured from the end of 2022 to the end of 2023, G.D.P. grew 3.1 percent, up from less than 1 percent the year before and faster than in any of the five years preceding the pandemic. (A different measure, based on average output over the full year, showed annual growth of 2.5 percent in 2023.)

“Stunning and spectacular,” Diane Swonk, chief economist at KPMG, said of the latest data. “We’ll take the win.”

There is little sign that a recession is imminent this year, either. Early forecasts point to continued — albeit slower — growth in the first three months of 2024. Layoffs remain low, and job growth has held steady. Cooling inflation has meant that wages are again rising faster than prices. And consumer sentiment is at last showing signs of rebounding after years in the doldrums.

“It’s hard to imagine how things could look better for the soft landing,” said Brian Rose, senior economist at UBS. “Looking back at last year, the combination of growth and inflation that we had was not considered in the realm of possibility by most people. To have such strong growth, low unemployment and to have inflation coming down that quickly, even the optimists weren’t that optimistic.”

The fourth-quarter data provided more evidence that the recovery remains on solid footing. Consumer spending, the bedrock of the U.S. economy, grew at a 2.8 percent annual rate, only modestly slower than the prior quarter. The housing sector, which was battered by high interest rates in 2022 and early 2023, grew modestly for the second quarter in a row. Businesses stepped up their investment on equipment. Personal income rose faster than prices as the strong job market continued to benefit workers.

Perhaps most significantly, inflation continued to cool: Consumer prices rose at a 1.7 percent annual rate in the final three months of the year, below the Fed’s long-run target of 2 percent. (Measured from a year earlier, prices were up 2.7 percent.) That isn’t just good news for households bruised by two years of rapidly rising prices; it also makes a recession less likely, because it gives Fed policymakers more flexibility to cut interest rates to keep the recovery on track.

“Even if we see some signs of recessionary forces, the Fed might be able to respond fairly quickly,” said Aichi Amemiya, senior economist at Nomura.

Risks remain. Separate data on Thursday showed that new filings for unemployment benefits rose last week. Consumers have increasingly funded their spending with credit cards and other forms of borrowing, such as “buy now, pay later” loans, which could prove unsustainable, especially if the job market weakens. High interest rates continue to ripple through the economy, and developments overseas — from conflict in the Middle East to economic weakness in China — could have domestic consequences.

Our business reporters. Times journalists are not allowed to have any direct financial stake in companies they cover.

Such threats don’t seem to be fazing investors, who have pushed the stock market to record highs. And businesses, too, appear to be growing more confident, stepping up their investment after a year spent girding for a possible downturn.

“I think the fears that the economy was going to slip into a recession are pretty much behind us, and it seems like businesses are planning for growth,” said Ben Herzon, an economist at S&P Global Market Intelligence.

Mike Stasko Jr. went into last year expecting it to be a difficult one for Sunny Street Cafe, the chain of breakfast restaurants where he is head of brand strategy.

“This time last year, there was some hand-wringing going on,” he said. The Ohio-based company, which owns 10 locations and has another dozen owned by franchisees, decided to defer expansion plans to see how high interest rates and a possible recession would affect its business.

Within a few months, however, it became clear that Sunny Street was continuing to thrive. Business wasn’t growing as rapidly as in the frenetic days after pandemic lockdowns lifted, but customers were still eating out, and the slightly cooler labor market made it easier to hire. It didn’t hurt that the surge in egg prices in late 2022 and early 2023 faded as the year went on. By the middle of the year, the company was back in expansion mode.

“We just kind of had that nice, steady, predictable growth over the course of the year, which is exactly what you want,” Mr. Stasko said. “For our perspective, it was a great year.”

For many businesses, the frenetic pace of the early reopening period has been replaced by something that feels more sustainable. Workers aren’t changing jobs as often, giving them time to get better at the jobs they have. Technologies and business-model changes adopted in the pandemic have become more familiar. Demand has become more predictable. All of that led to improved productivity, allowing for faster growth with less inflation.

Ms. Swonk likened the current moment to the late 1990s, when strong productivity growth spurred rising wages across the income spectrum.

“There is something very reminiscent about the 1990s boom,” she said. “Whether it can continue or not, we will see. But it is something to celebrate.”

It is also something few economists saw coming, leading some of them to question how their forecasts were so wrong.

One possibility is that they failed to see how the pandemic had rewritten the rules of the economy. The Fed has struggled in the past to bring down inflation without driving up unemployment. But this time, the rapid rise in consumer prices was driven at least in part by disruptions caused by the pandemic — and as those disruptions have eased, so has inflation.

“This cycle is historically unique; we’ve never had a global pandemic before,” said Michael Gapen, chief U.S. economist at Bank of America. “Maybe the fault was relying too much on history and too much on models.”

You May Also Like

Boeing Max 9 Jets Remain Grounded as Airlines Await Inspection Instructions

A Boeing passenger jet model, the 737 Max 9, remained grounded in…

Downturn or Not? At Year’s End, Wall St. Is Split on What’s Ahead.

Twelve months ago, Tom Lee bet that 2023 was going to turn…

Corporate America Is Testing the Limits of Its Pricing Power

Alexander MacKay coleads the Pricing Lab at Harvard Business School, a research…