While the best state to retire in the U.S. is also one of the smallest in the country, the worst state to retire is the largest.

Alaska ranks as the worst state in the U.S. to retire for the third year in a row, according to Bankrate’s study of the best states to retire in 2024.

To compile its list of the best and worst places to retire in the U.S., Bankrate ranked all 50 states across five weighted categories:

Bankrate analyzed datasets from a number of sources, including the Council for Community and Economic Research, the U.S. Census Bureau, the Tax Foundation and the National Oceanic and Atmospheric Administration.

Here are the 10 worst states to retire, according to Bankrate.

Notably, Alaska ranks last in the weather category. Although temperatures in Alaska can range from 45 degrees to 75 degrees Fahrenheit in the summer, they can sink as low as negative 10 degrees Fahrenheit in the winter.

Alaska can be an expensive place to live, especially for retirees with a fixed income. On average, the cost of living in Alaska is about 30% higher than the rest of the country, according to RentCafe. Housing costs are about 17% higher than the national average, and utilities and health-care expenses are both nearly 50% higher.

On the upside, Alaska can be a very tax-friendly location for retirees. The state doesn’t have income tax, estate taxes or inheritance taxes and doesn’t tax pension payments or retirement benefits from Social Security.

Lack of affordability appears to be a common thread among the other low-ranking states on the list, which include New York, Washington and California — all known for being relatively pricey.

However, just because a state has a higher cost of living doesn’t necessarily mean you should write it off as a potential retirement destination. You may just need to plan to set aside more money for retirement than you would if you were planning to retire somewhere less expensive.

CNBC Make It’s retirement calculator can help you estimate how much you’ll need to save for retirement based on factors like your current age, savings, income and when you’d like to stop working.

And while living costs can be a key determinant in deciding where you may want to retire in the future, it’s also good to keep other non-financial aspects in mind. For example, access to social and community-building activities is an important, but often overlooked, consideration for retirees, according to Bankrate.

“Having that sense of community and human connection is huge to healthy aging,” Kerry Hannon, a retirement expert and Author of “In Control at 50+: How to Succeed in the New World of Work,” says in Bankrate’s study.

“Isolation and loneliness are not something you want to move toward, so look for your community,” she says.

This post appeared first on NBC NEWS

Check Also

Trump’s AG pick has ‘history of consensus building’

President-elect Donald Trump last week announced the nomination of Florida’s former attorn…