(CNBC) — Where you live can have a big impact on whether you’re able to amass a security nest egg.

Experts generally recommend you have at least six months’ cash on hand in case you lose your job or have a medical or other emergency.

However, data from personal finance website Bankrate show that there are cities where you’re more likely to stash away that rainy day fund — and others where it’s nearly impossible to get out of the red.

Note: Read our discussion guidelines before commenting.