This Bay Area zip code ranks as the most expensive in the country

1) Atherton -- 94027 -- most expensive zip code in the nation and in the Bay Area San Mateo County Median sales price: $7.05 million Pictured: Built in 2013, this Atherton estate at 267 Camino Al Lago features a main five-bedroom, six-bathroom home and a two-bedroom, two bathroom guest house on nearly two acres. less 1) Atherton -- 94027 -- most expensive zip code in the nation and in the Bay Area San Mateo County Median sales price: $7.05 million Pictured: Built in 2013, this Atherton estate at 267 Camino Al Lago ... more Photo: Open Homes Photography Photo: Open Homes Photography Image 1 of / 13 Caption Close This Bay Area zip code ranks as the most expensive in the country 1 / 13 Back to Gallery

In the gallery above, find a ranking of the top 10 most expensive zip codes in the San Francisco Bay Area.

A new report puts the Silicon Valley town of Atherton at the top of a list featuring the most expensive zip codes in the country.

Property Shark ranked zip codes by median sales price, and in 94027, where most homes sit behind a gate on a generous lot, that number sits at a cool $7.05 million.

The Bay Area dominates the overall list. Due to multiple ties in median sales prices, 125 zip codes actually make up the list of zips with the 100 most expensive median sales prices. Of those, 51 are in the Bay Area, with clusters of wealth in the counties of San Francisco, San Mateo, Santa Clara, Marin and Alameda.

Stretching across Downtown Palo Alto and parts of Crescent Park, 94301 was the second-highest Bay Area zip code and No. 7 nationally with a median sales price of $3.522 million, down 6% year-over-year. Silicon Valley’s third-priciest zip code, 94022 in Los Altos, has a median of $3.45 million and ranked No. 9 in the nation.

Marin County’s 94957, covering the tony community of Ross, was the fourth-most expensive in the Bay Area and rounded out the national top 10, coming in at $3.35 million. Known for its high-performing schools and spectacular mansions, 94957 climbed 13 positions since last year and now hails as the most expensive zip code in North Bay. This was the result of a 31% appreciation of the median sales price, "the fourth-fastest growth rate among this year’s top 100," according to Property Shark.

San Francisco alone has 13 of the nation’s priciest zip codes, the most of any city. The highest ranking zip in S.F. was 94123, with a median sales price of $2.005 million (Cow Hollow). 94114 was the second-priciest in the city at $1.985 million (Presidio and Laurel Heights). 94114 (Noe Valley, the Castro and Corona Heights), with a median sales price of $1.85 million, was the city's third-priciest.

ALSO: Report: Steph Curry scoops up Atherton estate for $31 million

A town of some 7,200 residents, Atherton has held the top spot three years in a row, but this was the first year its median sales prices surpassed $7 million. The community was founded in 1923 and, in the past 10 to 20 years, has seen an influx of tech money, especially since nearby companies Google and Facebook went public.

Tech titans such as Google's Eric Schmidt, Facebook's Sheryl Sandberg and former Hewlett Packard CEO Meg Whitman call Atherton home. Oracle co-founder Larry Ellison is a former resident. The exclusive enclave is also popular with professional athletes including Jerry Rice, Willie Mays and Warriors majority owner Joe Lacob. But undoubtedly the town's most well-known resident is among its newest. Warriors star Steph Curry and his wife, Ayesha, moved their family from the East Bay to the 94027 zip code in June, reportedly buying a house for $31 million.

Real estate agent Pierre Buljan of Compass says neighboring Hillsborough was once favored by moneyed buyers but now Atherton has more cachet.

"The reason they like Atherton is it's a little more private," says Buljan, who has worked in real estate in San Mateo County for more than 40 years. "The average lot in Hillsborough is a half-acre. The new rules in Atherton is a home must be on at least 1 acre or more. In Atherton, you're bound to not know your neighbor. In Atherton, you only ever meet your neighbors at your children's schools. In Hillsborough, you have more community value."

Amy Graff is a digital editor with SFGATE. Email her at agraff@sfgate.com.