Downtown Tucson, Arizona

City of Tucson skyline with snow on the Santa Catalina Mountains.

Many Tucsonans love living in the Old Pueblo, but a new study says that Tucson is one of the country's worst cities when it comes to quality of life.

While quality of life can be difficult to measure, personal finance website 24/7 Wall St. has taken on the challenge, creating an index that measures U.S. cities in eight key categories: Crime, economy, education, environment, health, housing, infrastructure and leisure, according to an article by USA Today.

The study identified the 50 worst cities for quality of life, with Tucson coming in at number 31.

"Tucson is the second most populous city in Arizona and the only city in the state to rank among the worst U.S. cities to live in," the article says. "The typical Tucson household earns $40,021 a year, only about three-quarters of the median annual household income in Arizona."

With poverty rate of nearly 24 percent, Tucson comes in way above the national average of 14 percent and Arizona's poverty rate of 16.4 percent, according to the article.

"Crime is also relatively common in Tucson," the article says. "There were 799 violent crimes and 5,891 property crimes in the city in 2016 per 100,000 people, more than double the comparable crime rates on a national scale."

Check out the article here and see what other cities made the list.