Skip to content

Home › Massachusetts › Barnstable County › 02540

What county is ZIP code 02540 in?

ZIP code 02540 is in

Barnstable County, MA

Main county
Barnstable County
State
Massachusetts
ZIP land area
11 sq mi
Barnstable County population
233,539

Cities and communities in ZIP code 02540

A ZIP code’s mailing city can differ from these. The post office names the city that delivers the mail, which may not be the town you live in.

Other ZIP codes in Barnstable County

All 48 ZIP codes in Barnstable County

Check an exact address

Based on the US Census Bureau’s 2020 ZIP Code Tabulation Area (ZCTA) for 02540. ZCTAs closely follow USPS ZIP code delivery areas but are not identical. Data downloaded 2026-11-09. How this works.