An annual ranking of the 100 most expensive zip codes in the nation was once again dominated by two states.

The third annual ranking by real estate website RealtyHop.com found that the nation's 100 most expensive zip codes are located in just 13 states, and that 81% of the zip codes are in New York and California.

California has 59 of the wealthy zip codes, New York has 21, and Massachusetts and New Jersey tie for third place with three each, according to RealtyHop.

Although the national housing market cooled last year because of rising mortgage rates, the RealtyHop study found that the most expensive zip codes saw overall price increases, with 60 zip codes at a median price point of at least $2.5 million, compared with 47 in 2021.

The median price point out of the 100 most expensive zip codes is $2,749,500, an increase of 11.03% from $2,476,250 last year.

Following are RealtyHop's most expensive zip codes and the median home prices in those locations:

10. Bridgehampton, N.Y.
$4,395,000