Based on WalletHub's new study, North Dakota ranks as the 38th best state to retire. Or 13th worst, depending on how you look at it.

The study took three main factors into consideration: affordability for retirement, quality of life, and health care. While North Dakota ranks as one of the best in the nation for health care (6th), the state is ranked poorly in affordability (43rd) and quality of life (42nd).

The states taking the top three spots for retirement were Florida in the top spot, followed by Wyoming, and South Dakota. The bottom three were Connecticut, Alaska, and Rhode Island finishing as the worst. The District of Columbia was added to the list and ranked between Connecticut and Alaska at the bottom.