This post originally appeared on LearnVest.
Who wants to be a millionaire?

To retire in America’s biggest cities, you’ll need to be one.
That’s the conclusion of new research by SmartAsset, which calculated the most expensive cities for living your golden years.
It’s no surprise that many of the priciest are coastal cities—though the required nest eggs will likely give you sticker shock. New York City, which tops the rankings, calls for estimated retirement savings of $2.25 million. Next comes Honolulu at $1.66 million, and San Francisco isn’t far behind.
To crunch the numbers, SmartAsset began with $42,557, the yearly expenditures of an average senior, according to the Bureau of Labor Statistics (including $10,907 for housing and $5,314 for food).
They adjusted that annual average to account for cities’ varied costs of living and calculated the necessary pre-tax income. SmartAsset assumed seniors would get the average Social Security income of $17,189 and otherwise rely on savings accounts like a 401(k).
Finally, they tallied the total savings needed at retirement to generate the respective levels of income for 30 years, assuming a real interest rate of 2% on investments.
Among the results? Seniors would spend more than $47,000 a year on an apartment in Manhattan (where housing costs four times the national average). New York’s outer boroughs don’t provide much relief; you’ll need a cool $1.5 million of total savings if you’re thinking of retiring in Brooklyn.
Northeastern metros like Washington, D.C.; Stamford, Conn.; and Boston also made the list of least affordable retirement spots. But California dominates, with five of the 10 priciest locations: San Francisco, Orange County, Oakland, San Diego and Los Angeles.
The good news is that there are plenty of more affordable, if smaller, cities—places like McAllen, Tex.; Ashland, Ohio; or Henry County, Va. SmartAsset found them to be the three least expensive places to retire. In each, seniors can live comfortably for 30 years with less than $400,000 in nest egg savings. (Hattiesburg, Miss., came in at #9 among the least expensive.)
If you can’t shake visions of spending your retired days lounging on Hawaii’s sun-kissed beaches or catching Broadway shows in NYC, try these five ways to retrain your brain to save more for retirement.
Author Bio: Jennifer Liu, editorial assistant at LearnVest
LearnVest Planning Services is a registered investment adviser and subsidiary of LearnVest, Inc., that provides financial plans for its clients. Information shown is for illustrative purposes only and is not intended as investment, legal or tax planning advice. Please consult a financial adviser, attorney or tax specialist for advice specific to your financial situation. Unless specifically identified as such, the individuals interviewed or quoted in this piece are neither clients, employees nor affiliates of LearnVest Planning Services, and the views expressed are their own. LearnVest Planning Services and any third parties listed, linked to or otherwise appearing in this message are separate and unaffiliated and are not responsible for each other’s products, services or policies.