When it comes to purchasing a home, many people have different preferences. Some people prefer to live in an area near lots of nightlife, while others want to live in a quiet suburb. However, many homebuyers with kids share a common preference when it comes to choosing a neighborhood—quality school districts. After looking at rankings and results from US News, LA Times, and Niche.com, Neighborhoods.com put together a guide for the county’s top-rated school districts based on test scores, student-teacher ratio, college preparedness, graduation rates, and SAT/ACT scores.

Here are some of the best neighborhoods in the Los Angeles area, if you want to be near the best school districts.

San Marino

San Marinois a relatively exclusive and affluent city located in the San GabrielValley near the San Rafael Hills between Pasadena, San Gabriel, and Alhambra. The community has access to plenty of open greenspace provided by its recreational parks as well as luxurious amenities along Huntington Drive. In recent years, the neighborhood has attracted many international residents, which has helped bolster its economy. The San Marino Unified School District is one of the most prestigious academic districts in the region with reputable institutions ranging from elementary to high school level. However, when looking to purchase a home in this city, homebuyers face skyrocketing home prices, which are among the highest in the nation.

Rancho Palos Verdes

Located about an hour south of Los Angeles is the upscale suburb of Rancho Palos Verdes. The neighborhood is known to have some of Southern California’s most beautiful beaches and parks. From famous landmarks and preserved habitats to botanic gardens and shopping centers, there are several reasons to visit this city. Residents can enjoy the benefits of being close to the ocean, while having ample access to nature along the rolling hills. With a reputation for academically challenging its students, the Palos Verdes Unified School District is among the top 10 school districts in the Los Angeles area, according to Niche.

Fullerton

Arguably one of the most popular communities in Orange County, the modest city of Fullerton is about 25 miles southeast of Downtown Los Angeles. There are plenty of fun things to do in Fullerton, such as visiting the arboretum, fishing by Laguna Lake, bar hopping in Downtown Fullerton, or even going to one of the city’s many parks. Fullerton isn’t just a growing destination for nightlife, culture, and recreation, it’s also home to nearly 30 academic programs ranging from elementary to high school. This city is usually one of the top choices for families looking for an affordable and safe neighborhood near the reputable Fullerton School District.

Irvine

Irvine, another popular Orange County city, was recently rated one of the best cities to raise a family in the United States. According to WalletHub, the city finished ninth overall based on its housing costs, recreation, healthcare, safety, socioeconomics, and of course, the quality of its local schools. The Irvine Unified School District ranked 12th overall among California’s best school districts.

La Canada Flintridge

According to LA Times, La Canada Flintridge is home to many affluent residents who enjoy living in privacy away from the rest of LA. This upscale city is sandwiched between Altadena, Glendale, Pasadena, and La Crescenta-Montrose in the Crescenta Valley and San Gabriel Valley. Similar to San Marino, this community is known for its outstanding La Canada Unified School District as well as its high-priced homes. This school district was ranked third in all of California, according to Niche.

Arcadia

Arcadia is a city in the San Gabriel Valley region that has been recognized for its impressive hospitals, community engagement, and excellent schools. Residents consist of young families, students, and established professionals. It has previously been voted “Best Place to Raise Your Kids” by BusinessWeek and “Best Places to Live” by Money Magazine. Although there are several reasons to live in Arcadia, one of the city’s main draws is its highly regarded academic district. The Arcadia Unified School District was rated second overall in the Los Angeles area and seventh in the state, according to Niche.