CALIFORNIA – From the beautiful beaches to the plentiful parks, California is the perfect place to enjoy the outdoors. Of course, there's also the wonderful weather.

Since Californians have no excuse to not go outdoors, it shouldn't come as a surprise that a number of cities in the Golden State ranked as some of the healthiest in the country, according to a study by WalletHub. But the personal finance website didn't just look at the number of hiking trails and public parks to identify the healthiest and unhealthiest cities in the country. The study's authors compared 174 cities — including the 150 most populated U.S. cities, plus at least two of the most populated cities in each state — across four key dimensions: health care, food, fitness and green space.

A total of 16 California cities ranked among the top 50 healthiest American cities, according to the report. Three cities in California made the top 10. San Francisco claimed the top spot, followed by San Diego in 4th place and Irvine in ninth. According to the data, San Francisco has the most walking trails per capita. Along with Washington, D.C., San Francisco also tied for first for the most running trails per capita.

Irvine has the second-most highest percentage of physically active adults. San Jose has the second-lowest percentage of adults not eating enough fruits and vegetables. San Francisco, Oakland and Fremont tied for third place. San Jose has the lowest premature death rate in the country. Anaheim, Santa Ana, Irvine, Huntington Beach and Garden Grove all tied for second place.

As for the unhealthiest city in California, San Bernardino claimed the 152nd spot – out of 174 total cities.



Here are how other California cities ranked in WalletHub's 2018's Healthiest & Unhealthiest Cities in America report. National rankings are in parenthesis.