US Census Data

ZIP 02540 vs ZIP 02542

A side-by-side comparison of ZIP Code 02540 and ZIP Code 02542: population, income, housing, and more.

ZIP 02540 and ZIP 02542 are ZIP Code areas in Massachusetts. This page compares them across population, income, housing, education, commuting, and how each has changed since 2019.

ZIP 02540 has the higher population (8,354 vs 854 in ZIP 02542). ZIP 02540 has the higher median household income ($88,266 vs $55,000 in ZIP 02542). Since 2019, ZIP 02540's population has grown faster (+0.1% vs -10.0%).

Population, income & housing

ZIP 02540ZIP 02542
Population8,354854
Median age62.4 yrs26.0 yrs
Median household income$88,266$55,000
Median home value$756,300
Median gross rent$1,328$1,830
Housing units6,200380
Homeownership rate65.7%0.0%
Bachelor's degree or higher58.7%36.4%
Unemployment rate5.1%5.4%

Trends (ACS 5-year, 2019–2023)

ZIP 02540ZIP 02542
Population8,346 → 8,354 (+0.1%)949 → 854 (-10.0%)
Median household income$78,603 → $88,266 (+12.3%)$53,031 → $55,000 (+3.7%)
Median home value$599,200 → $756,300 (+26.2%)
Median gross rent$1,015 → $1,328 (+30.8%)$1,708 → $1,830 (+7.1%)

ZIP 02540

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

ZIP 02542

Population
949854
Median household income
$53,031$55,000
Median gross rent
$1,708$1,830

Age & race/ethnicity

Age distribution (share)

ZIP 02540ZIP 02542
Under 52.0%13.9%
5 to 179.5%12.5%
18 to 244.7%16.6%
25 to 348.8%32.6%
35 to 445.6%17.6%
45 to 548.0%2.3%
55 to 6418.3%4.4%
65 to 7420.4%0.0%
75 and over22.8%0.0%

Race & ethnicity (share)

ZIP 02540ZIP 02542
White (non-Hispanic)84.3%85.4%
Black or African American1.1%2.2%
American Indian & Alaska Native1.4%0.0%
Asian2.7%0.0%
Native Hawaiian & Pacific Islander0.0%0.0%
Some other race0.9%1.6%
Two or more races5.2%4.2%
Hispanic or Latino4.5%6.6%

Educational attainment (age 25+)

Share of adults 25+

ZIP 02540ZIP 02542
No high school diploma6.0%4.1%
High school graduate11.8%17.9%
Some college or associate's23.5%41.6%
Bachelor's degree27.5%18.3%
Graduate or professional degree31.2%18.1%

Commute to work

How workers get to work (share)

ZIP 02540ZIP 02542
Drove alone59.3%93.1%
Carpooled8.9%1.6%
Public transit2.2%0.0%
Walked3.6%1.6%
Bicycle2.8%0.0%
Worked from home22.5%3.7%
Other means0.7%0.0%

Housing

Units in structure (share)

ZIP 02540ZIP 02542
1-unit, detached64.5%51.8%
1-unit, attached8.8%21.3%
2 to 4 units12.7%21.8%
5 to 19 units3.4%5.0%
20 or more units10.6%0.0%
Mobile home & other0.0%0.0%

Poverty & households

ZIP 02540ZIP 02542
Poverty rate16.2%0.8%
Average household size1.962.90
Mean commute (minutes)1819
Median year structure built19661956

Full profiles

2
ZIP 02540 vs ZIP 02542: Compare Population & Demographics | US Census Data