Wyoming is the best state for retirement, and New York is the worst, according to a new Bankrate.com report.

“There are a lot of factors that go into how well retirees will do in a state,” Claes Bell, CFA, a senior analyst at Bankrate.com, said in a statement. “While features like pleasant weather and nearby amenities are important, nuts-and-bolts considerations like cost of living and the local tax burden may have a bigger impact on your overall quality of life. Many retirees live on a fixed income, and it’s hard to have a pleasant retirement if you’re constantly under financial pressure.”

The study examined six key factors: cost of living, taxes, healthcare, weather, crime and residents’ overall well-being. It used data from several sources, including cost of living information from the Council for Community and Economic Research, crime data from the FBI, well-being rankings from the Gallup-Healthways Well-Being Index, healthcare data from the Agency for Healthcare Quality and Research, tax information from the Tax Foundation and weather information from the National Oceanic and Atmospheric Administration.

Healthcare was cited as a plus for one of the cities on the top 10 list, Iowa. It was cited as a weakness for five of the states on the list of 10 worst places: Arkansas, Kentucky, Louisiana, Oklahoma and West Virginia.

The top 10 best places:

  1. Wyoming (best)
  2. South Dakota
  3. Colorado
  4. Utah
  5. Virginia
  6. Montana
  7. Idaho
  8. Iowa
  9. Arizona
  10. Nebraska

The 10 worst places:

  1. New York (worst)
  2. West Virginia
  3. Oregon
  4. Arkansas
  5. Louisiana
  6. Hawaii
  7. Oklahoma
  8. Kentucky
  9. Connecticut
  10. Maryland