Typically, Connecticut comes out on top in reports of the richest zip codes in the country, but a recent study by PropertyShark ranks Connecticut near the bottom of their top 100 list.

The real estate site ranked U.S. zip codes by the price of closed home sales; year-to-date residential sales were analyzed to determine the median sale price of each zip code, according to the site.

Three Connecticut zip codes, all in Greenwich, ranked between number 70 and 100.

"Calculating medians based on sale prices rather than asking prices more accurately reflects the reality on the ground in the country’s most cutthroat markets – where low supply pairs with high demand, often pushing sale prices above the initial asking figures.

It also ensures that ultra-luxury properties – which generally spend extended periods of time on the market and often sell with notable price cuts – don’t skew the numbers away from what the market is actually willing to pay," PropertyShark writes.

Click through to see which Connecticut zip codes ranked in PropertyShark's list. Keep clicking to see Connecticut's zip codes ranked by household income. 

These "ultra-luxury" properties could be the reason we don't see Connecticut up high on this list. A recent study by the Federal Reserve Bank of New York found that Fairfield County is the most unequal place in America when it comes to income. The report shows that in general, most unequal places tend to be large urban areas. But the study ranked Fairfield County as the most unequal metropolitan area in the nation in both 1980 and 2015.

California reined king in PropertyShark's ranking, and on the east coast, New York was the priciest.