A new ranking by WalletHub has found that where retirees live can have a significant impact on their health, their quality of life and their finances.

The study focused on which states offer the best—and worst—environments for retirees, taking into account 47 data points within the three broad categories of healthcare, affordability and quality of life.

"Finding the best states to retire can be difficult without doing lots of research," WalletHub said in its report. "Even in the most affordable areas of the U.S., most retirees cannot rely on Social Security or pension checks alone to cover all of their living expenses. Social Security benefits increase with local inflation, but they replace only about 37% of the average worker’s earnings."

The report also emphasized that finding the right location for retirement is critical considering that 25% of non-retired U.S. adults haven't saved any money for retirement.

"In addition, only 40% of non-retired adults think their retirement savings are on track," the report stated.

The following are WalletHub's best states for retirement:

10. North Dakota
The state is ranked 20th for healthcare, 22nd for affordability and 25th for quality of life.