The total worth of U.S. homes rose 6.7% to $31.4 trillion in October from $29.4 trillion in February. This $2 trillion increase eclipses the $1.7 trillion (6.6%) gain that America’s homeowners reaped during the same period last year, when the country wasn’t grappling with a pandemic or a recession.

Home prices have been surging since the summer, even as an economic downturn triggered by the coronavirus pandemic has put millions of Americans out of work. This is partly due to a worsening shortage of homes for sale, which has fueled fierce competition among house hunters. Record-low mortgage rates and a wave of migration made possible by remote work have also driven up housing values.

“The surge in home prices during the pandemic has been a financial boon for homeowners, but has put millions of Americans who can’t afford to own homes at a major disadvantage, exacerbating wealth inequality in the U.S.,” said Redfin senior economist Sheharyar Bokhari . “Many renters have missed out on substantial gains that homeowners will be able to use to upgrade to their next home, start a business, send their kids to college, and fund retirement.”

“Soaring prices are also keeping homebuyers on the sidelines,” Bokhari continued. “A lot of folks had been planning to take advantage of record-low mortgage rates to purchase their first home this year, but then lost their jobs due to the pandemic. Many of those people are now back to work, but are still stuck renting because they can no longer afford to buy.”

The total value of homes in Milwaukee has surged 10.4% to $12 billion during the pandemic, a larger gain in percentage terms than any other major U.S. metropolitan area. Charlotte, NC and Austin came next, up 10.3% and 10.2%, respectively. The other metros that made it into the top 10 were Sacramento (+9.3%), Detroit (+9.2%), Warren, MI (+8.5%), Seattle (+8.4%), Phoenix (+8.2%), Providence, RI (+7.8%) and Pittsburgh (+7.6%).

Five of the top 10 metros—Milwaukee, Charlotte, Detroit, Warren and Pittsburgh— have median home values below the national level ($285,968). A handful of metros on the top 10 list are also popular destinations for homebuyers who are looking to relocate during the pandemic. Nearly 40% of Redfin.com home searches  in Charlotte and Austin in the third quarter came from people in different metro areas. About a third of searches in Phoenix and nearly a quarter in Milwaukee came from users outside those metros. Sacramento had an even higher share (50.1%) of searches from out-of-towners during the period.

Scroll down to see a table that breaks down the findings of this report by the 50 most populous U.S. metro areas.

“If you’re a homeowner or a seller in Milwaukee right now, you’re in a great position. If you’re a buyer, you’re probably having a rough year,” said Brian Callahan , Redfin’s managing broker in Wisconsin. “I’ve never seen so many buyers get priced out of Milwaukee’s housing market. It’s mostly first-time buyers who just don’t have the financial wherewithal to compete with 10 other bidders .”

Milwaukee’s home prices have historically trailed behind those of other midwestern metros, including Chicago, Minneapolis and Madison, WI. As a result, they’ve had more room to grow during the pandemic, Callahan said. Low inventory, strong demand and migration have also propped up prices, he added.

While many Milwaukeeans are leaving the city for the suburbs during the pandemic, at least some of them are being replaced by a flood of people coming from Chicago, Callahan said.

Milwaukee is a smaller, more laidback version of Chicago,” he said. “Chicagoans are coming to Milwaukee because it offers a better lifestyle and more affordable housing, but is still within driving distance of their family, friends and workplaces back home. The typical monthly mortgage payment also isn’t much more expensive than the typical monthly rent, so a lot of folks who are moving here are realizing that they might as well just buy a home.”

In San Francisco, the total value of homes has grown just 1.8% since February, a smaller increase than any other major metro. It was followed by New York, which saw a 2.6% increase, and Miami, with a 3.5% gain. Many people have left San Francisco and New York during the pandemic in search of bigger homes and better value, as they no longer need to travel into the office every day.

Each of the top 50 metro areas has added at least $8 billion in total home value during the pandemic, with pricey coastal hubs experiencing the biggest increases in dollar terms.

Los Angeles homeowners have gained $81.8 billion of additional property value since February—more than any other major metro. In second place was Washington, D.C., with a $57.2 billion gain, followed by Seattle, at $54.7 billion. The other metros in the top 10 were Boston, Phoenix, Oakland, San Diego, Atlanta, Anaheim, CA and New York.

Jacksonville, FL saw the smallest increase, adding $8.2 billion of home value during the pandemic. Cincinnati and Detroit rounded out the bottom three, up $8.4 billion and $8.6 billion, respectively.

To determine how much property value American homeowners have gained during the coronavirus pandemic, we calculated the aggregate value of about 78 million U.S. homes as of February 2020 and as of October 2020, using Redfin Estimates of the homes’ market values.