Where you live can drastically affect the long-term value of your home, according to a recent SmartAsset study.

SmartAsset examined home prices dating back to 1997 across 400 metropolitan areas in the U.S. and ranked each based on home value growth and price stability, which is the probability that a home will experience a price decline of 5% or more at any point in the 10 years after it is purchased.