The fivefold increase in working from home ushered in by the pandemic is perhaps the largest change to hit U.S. labor markets since World War II. It has touched just about every manager in America, reshaped industries including real estate and business travel, and led to an exodus from city centers to the suburbs.

And working from home is here to stay—at least in a hybrid model where a commute to the office is limited to just a few days each week. Tracking detailed survey data, we see working-from-home levels were rapidly dropping from 2020 to 2022. But by early 2023 they stabilized and have remained flat ever since. Hybrid working has become the new normal for millions of professionals and managers across America.

So, it’s time to tally up the impact. Looking ahead to 2024 and beyond, who are the biggest winners and losers from the work-from-home revolution?

Start with the losers

The biggest losers are likely city-center office and retail property owners. The massive shift to home working has created a doughnut effect in major cities around the world. Millions of employees are no longer commuting every day, leaving many offices half-filled and retail stores struggling for customers. The owners of this real estate—often pension funds, family firms and endowments—have collectively lost hundreds of billions of dollars of investments.

In the long run, the sector will slowly recover as supply contracts. New construction has slowed, some empty buildings are slowly being converted to residential accommodation, and some lower-quality offices will be torn down. But recovery will take years to complete. Winter has come for the office sector. One forecast that a major leasing company shared with me was it would take until 2033 for occupancy to recover to prepandemic levels in San Francisco—perhaps the hardest hit city.

Another loser has been mass-transit rail systems. Ridership has dropped by 30% nationally as commuters shift from a five-day commuting schedule to two or three days a week. These commuter rail systems have high fixed costs due to inflexible track and train costs, alongside rigid union-controlled labor expenses.

Large drops in ridership revenue translate into larger budget deficits. To date these deficits have been bailed out by pandemic-era federal and state subsidies. But the fear is unless public transit costs can be right-sized, once these subsidies run out they will see devastating service cuts or outright closure.

Growing up in Britain, I heard about the infamous Beeching cuts of the 1960s, which cut station numbers by 55% and devastated rail travel. I fear something similar happening to U.S. transit for 2024 and beyond unless operators and unions can align cost with revenues.

The third big loser has been big cities. American cities occupy surprisingly small spaces. For example, San Francisco is less than 50 square miles, comprising just the tip of a peninsula. So, when city-center residents fled for the suburbs, they took their tax dollars with them.

As we know from the experience of New York in the 1970s, cities can adjust by cutting expenditures. But this will be painful and risks a hollowing out of city centers if key services like police and education are cut. Indeed, bond markets have already cut the prices of many city municipal bonds, providing an ominous signal of the budgetary struggles ahead.

But there are winners

It isn’t all gloomy, particularly for the biggest work-from-home winners: the workers. In national surveys, employees report they value the ability to work from home two or three days a week as much as an 8% pay increase. Multiplied across the roughly 70 million Americans who are currently working from home, this is a perk valued at roughly $500 billion a year. This vast dividend has benefited employees through less commuting and lower stress, alongside more personal, leisure and family time.

One recent study highlighted how the typical U.S. home-working employee spends 40 minutes more a week on child care from the time saved from avoiding the daily commute. This will have longer-run effects ranging from higher labor-force participation rates—possibly pushing up growth rates—to potentially even a fertility dividend as parenting becomes somewhat easier.

Another winner is the environment, thanks to reduced travel and energy needs. A recent study found working from home two days a week reduces pollution by about 15%. This comes from lower commuting emissions alongside additional savings from lower office energy bills. A double dividend is the reduced congestion on emptier roads, with traffic speed data from Inryx suggesting the morning commute is 10% faster.

And perhaps the biggest work-from-home winner are companies. Research finds that hybrid working three days a week in the office has a net neutral on employee productivity, while allowing firms to save on recruitment and retention costs. Firms can save money by trimming office expenses while using remote working to lower labor costs by hiring employees outside major cities.

U.S. firms made about $1 trillion higher profits in 2022 than in 2019, an increase of almost 50%. While many factors likely contributed to this, including the strong economic growth, it is notable this happened alongside the fivefold surge in working from home. Indeed, the mass adoption of hybrid working by millions of firms across the U.S. and Europe is perhaps the strongest evidence of its positive impact on profitability.

Looking further out, the biggest change will almost surely come from the new technologies we use to work remotely. When I first started working in the 1990s, working remotely meant conference calls and emailing files. Now we telecommute and share files on cloud networks.

The future likely heralds similarly large changes. In discussions with startups and tech firms, I hear about systems for holographic meetings, wall-size screens and global connectivity. This technology means working from home hasn’t just stabilized but is now moving into its longer-run phase of expansion. Ten years from now we will look back at 2023 as the beginning of the long bull market in hybrid working.

Nicholas Bloom is a professor of economics at Stanford University. He can be reached at reports@wsj.com.