Working out and remaining active are important components of a healthy lifestyle. According to the Mayo Clinic, regular exercise can help control weight, fight certain diseases and conditions, promote better sleep, and improve mood. The message may be getting through as Americans appear to be exercising more every year.

Though awareness of the importance of exercise is widespread, residents of some parts of the country are much more inclined to stay physically active than others. In a handful of cities, such as Beckley, West Virginia, less than two-thirds of the adult population exercises. Meanwhile, in the most active city in the country — Boulder, Colorado — more than 90% of the adult population makes time to exercise. To determine which city populations exercise the most, 24/7 Wall St. created an index based on the share of area residents reporting regular physical activity from County Health Rankings and the number of area gyms per capita from County Business Patterns.

While it is no guarantee that people will exercise regularly, access to locations that facilitate physical activity is important for city residents. In an interview with 24/7 Wall St., Amanda Jovaag, the County Health Rankings data lead, explained that communities around the country have been working “to make it easier and safer to be active.”

The significant presence of exercise venues has likely helped Boulder’s population become the most active in the country. “There is strong evidence that improving access to places for physical activity increases physical activity,” Jovaag explained. Boulder boasts 20 fitness and recreation centers for every 100,000 people, roughly double the average number of facilities per capita across U.S. metro areas, and more gyms per capita than any other city.

94. Philadelphia-Camden-Wilmington

> State Pennsylvania
> Population: 6,051,170
> Pct. of city residents reporting physical activity: 76.7%
> Fitness centers per 100,000 residents: 12
> Obesity rate: 27.0%
> Pct. of adults reporting fair/poor health: 14.4%

In many of the most active cities, health outcomes tend to be better. While across the country, 27% of adults are obese, the obesity rate in Boulder is only 15%, one of the lowest obesity rates in the country. Of the 50 metro areas with residents that exercise the most, only seven have an obesity rate that exceeds the national rate.

Not only do health outcomes tend to be better in the most active cities, but residents in these cities also tend to subjectively report better health than the average American. All but six of the 50 cities that exercise the most have a smaller share of adults who report fair or poor health than the national share of 16%.

Those who maintain healthy habits such as exercising regularly are also less likely to partake in unhealthy habits. Certain measures such as smoking rates tend to be significantly lower in the most active cities than they are nationwide. Only four of the cities that exercise the most have a higher smoking rate than the 20% national figure: Carson City, Nevada; Kingston, New York; Lewiston, Idaho; and Ocean City, New Jersey.

To identify the 50 cities whose residents exercise the most, 24/7 Wall St. created an index to rank the 381 metro areas in the United States by their level of physical activity and the number of fitness and recreational sports centers per capita. For every metro area, we reviewed the percentage of adults who report engaging in no physical activity during their leisure time to determine the share of the adult population that is physically active, with data from County Health Rankings & Roadmaps, a collaboration between the Robert Wood Johnson Foundation and the University of Wisconsin Population Health Institute. The number of fitness and recreational sports centers comes from County Business Patterns, a data series produced by the U.S. Census Bureau. Obesity rates also came from County Health Rankings & Roadmaps. Smoking rates and the percentage of adults reporting fair or poor health are from the Center for Disease Control’s Behavioral Risk Factor Surveillance System. Population data come from the Census Bureau’s 2014 American Community Survey.

Click here to see the American cities getting the most exercise.