US Census Data

ZIP Code 02540

ZIP Code Tabulation Area in Barnstable County, Massachusetts.

Population
8,354
+0.1%’19–’23
Median household income
$88,266
+12.3%’19–’23
Median home value
$756,300
+26.2%’19–’23

ZIP Code 02540 is a ZIP Code Tabulation Area in Barnstable County, Massachusetts, home to about 8,354 residents. The median household income of $88,266 is below the Barnstable County median ($94,452).

From 2019 to 2023, ZIP Code 02540's population held roughly steady from 8,346 to 8,354, while its median gross rent rose 30.8% from $1,015 to $1,328.

The typical home was built around 1966. 16.2% of residents live below the poverty line.

Demographics

ACS 2019–2023
Population
8,354
Median age
62.4 yrs
Median household income
$88,266
Median home value
$756,300
Median gross rent
$1,328
Housing units
6,200
Homeownership rate
65.7%
Bachelor's degree or higher
58.7%
Unemployment rate
5.1%

Trends

ACS 5-year · 2019–2023
Population
8,3468,354
Median household income
$78,603$88,266
Median home value
$599,200$756,300
Median gross rent
$1,015$1,328
YearPopulationMedian household incomeMedian home valueMedian gross rent
20198,346$78,603$599,200$1,015
20208,241$75,809$620,300$1,014
20218,888$81,343$625,400$1,071
20228,615$85,117$708,000$1,185
20238,354$88,266$756,300$1,328

Each year is a US Census Bureau ACS 5-year estimate ending that year.

Age distribution

CountShare
Under 51712.0%
5 to 177939.5%
18 to 243904.7%
25 to 347318.8%
35 to 444685.6%
45 to 546678.0%
55 to 641,52918.3%
65 to 741,70420.4%
75 and over1,90122.8%

Race & ethnicity

CountShare
White (non-Hispanic)7,04084.3%
Black or African American961.1%
American Indian & Alaska Native1141.4%
Asian2222.7%
Native Hawaiian & Pacific Islander00.0%
Some other race720.9%
Two or more races4375.2%
Hispanic or Latino (any race)3734.5%

Educational attainment (age 25+)

CountShare
No high school diploma4196.0%
High school graduate82511.8%
Some college or associate's1,64523.5%
Bachelor's degree1,92727.5%
Graduate or professional degree2,18431.2%

Commute to work

Mean travel time to work
18 min

How workers get to work

CountShare
Drove alone1,91959.3%
Carpooled2898.9%
Public transit702.2%
Walked1183.6%
Bicycle912.8%
Worked from home72822.5%
Other means220.7%

Travel time

CountShare
Under 15 min1,46558.4%
15 to 29 min56722.6%
30 to 44 min25310.1%
45 to 59 min682.7%
60+ min1566.2%

Households

Average household size
1.96
Poverty rate
16.2% (1,315 of 8,112)
CountShare
Family households2,37057.6%
Nonfamily households1,74342.4%

Housing

Median year structure built
1966

Occupancy

CountShare
Occupied4,11366.3%
Vacant2,08733.7%

Tenure (of occupied units)

CountShare
Owner-occupied2,70465.7%
Renter-occupied1,40934.3%

Units in structure

CountShare
1-unit, detached3,99664.5%
1-unit, attached5448.8%
2 to 4 units78912.7%
5 to 19 units2113.4%
20 or more units66010.6%
Mobile home & other00.0%

Geography

ZCTA
02540
Land area
11 sq mi
Water area
1.9 sq mi
Center point
41.5695, -70.6272

Counties this ZIP covers

1

Compare with nearby ZIP codes

6

National ZIP rankings

21

Nearby ZIP codes

9