Many Americans spend the better part of their lives preparing for retirement. Even if it’s just routing a portion of every paycheck into a 401(k) or individual retirement account, you’re likely to spend almost all of your adulthood slowly building your nest egg so you can enjoy a comfortable retirement. However, with all of the focus on how fast you can put money into your savings, it’s possible that you’re overlooking the other side of the equation: how fast you’ll be taking that money back out.

That storied $1 million in retirement savings might finally be yours, but what if you live in an area where property taxes and Social Security income taxes force you to rely more heavily on your nest egg? Likewise, even if you started saving later in life, you can effectively boost the purchasing power of your limited funds by opting to live in a state with a cheap cost of living and lower taxes.

Where you live in your golden years can be an essential part of your retirement planning. Once you’re on a fixed income, you’ll need to maximize your dollars. GOBankingRates found the worst states for retirees to hang on to their savings by analyzing the expenses most relevant to those ages 65 and older: property taxes, cost of living, sales taxes, Social Security income taxes and more. Note that the metric used for cost of living is an index where 100 is the U.S. average, sourced from the Missouri Economic Research and Information Center.

The following is a list of the 30 states to avoid when you’re considering where to spend your retirement, with the No. 1 state being the most expensive for retirees. Even if your decision is influenced by your family’s location or personal preferences, it’s worth understanding how these different costs can add up so that you’re able to budget accordingly. If you’re flexible in terms of where you’re willing to live, you might even be able to save enough money to retire early and quit the daily grind.