(NEXSTAR) – As people continue to shift back to pre-pandemic social and recreational activities — even if they are still working remotely — a new study has broken down the best U.S. cities in which to work, learn, hang out and generally enjoy oneself in 2023.

Niche, a data analysis company, used Census data, surveys and other info sources to break down the best cities in the U.S., taking into account the cost of living, safety, school quality, nightlife, walkability, outdoor activities and more.

See the top five for 2023 below:

Weeks Bridge in Cambridge, Massachusetts. (File: Getty)

Topping the list is Cambridge, Massachusetts, home to roughly 117,000. The city, which is also home to Harvard, “offers residents an urban feel” with numerous bars, restaurants, coffee shops and parks. The public schools are also excellent, according to Niche.

Rosslyn, Arlington, Virginia, USA city skyline on the Potomac River. (File: Getty)

In second place is Arlington, Virginia, which jumped up from fourth in 2022. While Arlington took a hit when it comes to the affordability of housing (median home value: $755,800), it received the highest possible grade when it comes to public schools, family-friendliness and nightlife.

Aerial view of athletes competing in the bike course of the IRONMAN Texas. (Photo by Meg Oliphant/Getty Images for IRONMAN)

The Woodlands, which is in the Houston area of Texas, took the top spot in 2022 but dropped to third place in 2023. Most people own their houses in The Woodlands, which “offers residents a dense suburban feel” and has plentiful restaurants and parks. “Newcomers always point out the excess greenery and ask how we locals can find anything, but I have no problem with all the trees because the town is so well-organized,” one person wrote in the study’s comments.

Fall in Naperville, Illinois. (File: Getty)

Naperville, Illinois is in the fourth spot and is home to roughly 150,000 people. The schools are great and the city is family friendly, according to Niche, but the Chicago suburb received just a “B+” when it came to nightlife, and a “B-” for crime and safety.

Aerial view of Columbia, Maryland. (File: Getty)

Columbia, Maryland is fifth on the list for 2023. The city, which has a population of about 105,000 residents, is home to many families and young professionals, according to Niche, and the public schools are excellent.

See the list of the top 20 cities below, or go to Niche’s report for the full list.

PlaceMetro areaState2023 ranking2022 ranking2021 ranking
CambridgeBoston AreaMassachusetts125
ArlingtonWashington, D.C. AreaVirginia242
The WoodlandsHouston AreaTexas311
NapervilleChicago AreaIllinois433
ColumbiaBaltimore AreaMaryland578
BerkeleySan Francisco Bay AreaCalifornia689
IrvineLos Angeles AreaCalifornia71011
Ann ArborDetroit AreaMichigan866
Overland ParkKansas City AreaKansas954
BellevueSeattle AreaWashington101110
PlanoDallas-Fort Worth AreaTexas1197
RichardsonDallas-Fort Worth AreaTexas121212
SeattleSeattle AreaWashington131313
SunnyvaleSan Francisco Bay AreaCalifornia141616
San FranciscoSan Francisco Bay AreaCalifornia151415
Santa ClaraSan Francisco Bay AreaCalifornia162423
MadisonMadison AreaWisconsin171514
Sandy SpringsAtlanta AreaGeorgia182219
RaleighRaleigh AreaNorth Carolina191717

For Americans hoping to buy a house in 2023, February brought a glimmer of hope as the median sales price of $363,000 was .2% lower year-over-year, according to to the National Association of Realtors.

“Conscious of changing mortgage rates, home buyers are taking advantage of any rate declines,” said NAR Chief Economist Lawrence Yun. “Moreover, we’re seeing stronger sales gains in areas where home prices are decreasing and the local economies are adding jobs.”

If you’re looking to capitalize on your existing home before moving to Cambridge or Arlington, for instance, you may want to wait until April to list your home. Realtor.com projections found that the week of April 16-22 is historically the best for sellers.

In February, existing-home sales rose to break a 12-month slide, according to NAR, jumping 14.5%, the largest monthly percentage increase since July, 2020.