SUNNYVALE, Calif. (KRON) — Finding the right place to live in the San Francisco Bay Area is not easy. For many families, living in a safe neighborhood is at the top of their priority list.

The National Association of Realtors’ annual survey found that about half of all homebuyers said the quality of a neighborhood was the most important factor, ahead of affordability and proximity to friends and family.

A new nationwide study released by SmartAsset on Friday ranked three Bay Area cities in the top 25 for safest cities in America.

Sunnyvale, ranked at No. 9 on the list, was deemed the safest city in the Bay Area. Fremont ranked in at No. 19, and San Jose also made the list at No. 24.

SmartAsset analyzed data from 200 American cities focusing on five key metrics: violent crime, property crime, vehicular mortality rate, drug poisoning mortality rate and excessive drinking. Crime data was compiled from the FBI’s Uniform Crime Reporting Database, and substance abuse numbers were gathered from county health officials.

Top 25 Safest Cities in America

(Rate per 100,000 residents)

RankCityViolent CrimeProperty CrimeVehicular MortalityDrug Poisoning Mortality
1Frisco, TX959016.48.0
2McKinney, TX1278876.48.0
3McAllen, TX1791,8049.25.0
4Santa Clarita, CA1319888.414.2
5Plano, TX1571,6336.48.0
6Alexandria, VA2071,6713.910.9
7Laredo, TX3011,1889.512.3
8Glendale, CA1041,8118.414.2
9Sunnyvale, CA1522,2326.712.0
10Yonkers, NY2648283.815.6
11Arlington, VA2041,4833.19.0
12El Paso, TX2481,24711.312.2
13Irvine, CA611,7306.915.5
14Naperville, IL613204.616.0
15Torrance, CA1872,2298.414.2
RankCityViolent CrimeProperty CrimeVehicular MortalityDrug Poisoning Mortality
16Olathe, KS2461,2695.111.2
17Palmdale, CA4431,4018.414.2
18Cary, NC739627.213.5
19Fremont, CA1882,7966.215.2
20Jersey City, NJ3311,2684.222.9
21Overland Park, KS2362,1715.111.2
22Huntington Beach, CA2512,1686.915.5
23Aurora, IL3318024.616.0
24San Jose, CA4392,6046.712.0
25Chesapeake, VA4631,6997.219.3