When it comes to retirement living, no state is perfect. But a new study by the MoneyRates personal finance website identifies those with the best overall quality of life for retirees.

The website released a ranking of states that assessed quality of life for retirees based on a number of factors, including economic conditions, crime and safety, lifestyles and health-care services.

"Most states have both good points and bad points when it comes to retirement conditions," the report said. "That's why MoneyRates.com came up with a methodology that takes into account several different factors and then takes into account the trade-offs between those factors."

The following states, in ascending order, were deemed the best for retirement by the report. The listings also include where the states ranked in each category.

9. (tie) Rhode Island
Economy: 48
Crime/Safety: 7
Lifestyle: 14
Health care: 7

Health care and safety were rated high for Rhode Island, but high costs could be an obstacle for some. "As is often the case, quality comes at a price, so you have to consider whether the nation's 10th-highest cost of living fits your budget," the report said.