A home in Atherton. (Photo courtesy of Zip-Codes.com)

More than half of the country’s most expensive ZIP codes are in the Bay Area, according to a study by Property Shark.

ZIP code 94027, in Atherton, topped the charts for the third year in a row with a median home sale price of more than $7 million.

San Francisco, where 13 of the country’s priciest ZIP codes exist, is the most expensive city in the U.S. The number of pricey ZIP codes in San Francisco has risen steeply in recent years, from seven in 2016 to nine in 2018.

In total, 51 of the top 100 most expensive ZIP codes fell somewhere in the Bay Area. Besides San Francisco, others appeared in San Mateo, Santa Clara, Marin and Alameda counties.

The full list is available online, along with information about the methodology used to conduct the study, at https://bit.ly/2Os67MC.