For the past two years, the most expensive ZIP code in the United States has been 94027, which belongs to Atherton, California.

The Silicon Valley community is home to tech executives like Microsoft cofounder Paul Allen, HP CEO Meg Whitman, and Google chairman Eric Schmidt.

According to US Census data, the median household income for the area's residents is just short of a quarter of a million dollars annually  $220,583.

But it's not the most expensive place in the country to buy a house anymore.

That honor goes to ZIP code 11962 Sagaponack, New York.

According to data from January 2014 to June 2015 compiled by the real-estate-listings site Property Shark, the median sale price for homes in Sagaponack was $5,125,000.

By comparison, the median sale price in Atherton was $5,050,000.

Set in the Hamptons, about two hours from New York City, Sagaponack is less of a draw for West Coast-based billionaires.

But it has its share of rich and famous residents. 

Billy Joel and the Clinton family are known to summer there, and billionaire Ira Rennert built a $248 million mansion with three swimming pools, a 100-car garage, and its own 164-seat theater.

Compared to that, Sheryl Sandberg's old house in Atherton, which sold for $10 million last year, looks modest.

NOW WATCH: Forget the Apple Watch here's the new watch everyone on Wall Street wants

See Also:

15 of the most expensive homes you can rent around the worldThe hidden costs of owning a home in 15 major US citiesHow to buy a vacation home you can afford in 5 steps

SEE ALSO: The 20 most expensive ZIP codes in America