To calculate, realtor.com® analyzed home prices and appreciation rates in ZIP codes of the 100 largest metro areas across the country where a specific so-called “drag-me-down facility” – such as power plants or homeless shelter – was present.

Realtor.com®’s research team then calculated the potential discount by comparing the median home price of the ZIP codes with that facility with the median price for all homes in the same country.

The following neighborhood features emerged as the ones that could potentially drag down home values by the greatest amounts:

Bad school: -22.2% (translation: home owners near a bad school received 22.2 percent less than an average home in the same county could get)