Compare towns

Topsfield vs Ayer vs Hamilton

Cost, people, housing, commute and schools, side by side, each benchmarked against Massachusetts.

What stands out worked out from the figures below

Topsfield has the highest household income ($196k).
Ayer has grown the fastest since 2010 (+14.2%).
Hamilton has the oldest population (median age 43.5).

What matters to you?

Pick a few. We’ll pull those rows to the top and mark which town comes out ahead on each. There’s no overall score: what matters is up to you.

MeasureTopsfieldAyerHamilton
People
Population
6,564Lowest
8,645Highest
7,600
Growth since 20102010 → 2020 census
+8%
MA: +7.4%
+14.2%Highest
MA: +7.4%
-2.6%Lowest
MA: +7.4%
Median age
42.2±1.8
6% above MA
39.2±2.8Lowest
about the MA average
43.5±2.1Highest
9% above MA
Hamilton and Topsfield are within the Census margin of error here, so we can’t say which is really higher.
Kids under 18
24.8%±4.7Highest
MA: 19.4%
20.3%±3.9Lowest
MA: 19.4%
24%±3.5
MA: 19.4%
Topsfield and Hamilton are within the Census margin of error here, so we can’t say which is really higher.
Age 65+
22.4%±3.8Highest
MA: 17.9%
14.5%±2.8Lowest
MA: 17.9%
21.9%±3.8
MA: 17.9%
Topsfield and Hamilton are within the Census margin of error here, so we can’t say which is really higher.
Bachelor’s degree+adults 25+
71.8%Highest
MA: 47.3%
42.3%Lowest
MA: 47.3%
68.8%
MA: 47.3%
Enrolled in collegeshare of residents
3.8%±1.9Lowest
MA: 7.9%
4.5%±1.5
MA: 7.9%
6.7%±1.6Highest
MA: 7.9%
Hamilton and Ayer are within the Census margin of error here, so we can’t say which is really higher.
Cost of living
Household incomemedian
$195,718±$16kHighest
88% above MA
$101,875±$15kLowest
about the MA average
$129,833±$14k
25% above MA
Home valuemedian, owner-occupied
$853,400±$40kHighest
52% above MA
$463,800±$29kLowest
17% below MA
$720,000±$36k
28% above MA
Rentmedian gross, monthly
$1,115±$538Lowest
37% below MA
$1,415±$180
20% below MA
$1,794±$394Highest
about the MA average
Hamilton and Ayer are within the Census margin of error here, so we can’t say which is really higher.
Property taxmedian, yearly
$10,000+Highest
at least 67% above MA
$5,057Lowest
16% below MA
$10,000+Highest
at least 67% above MA
Renters paying 30%+of income on rent
41.9%±40.8Lowest
MA: 51.8%
45.1%±14.2
MA: 51.8%
65.8%±23.6Highest
MA: 51.8%
Hamilton and Ayer are within the Census margin of error here, so we can’t say which is really higher.
Below poverty line
7.5%Lowest
MA: 10%
10.7%Highest
MA: 10%
7.8%
MA: 10%
Housing
Homeownersof occupied homes
90.4%Highest
MA: 62.5%
69.2%Lowest
MA: 62.5%
84.7%
MA: 62.5%
Typical home builtmedian year
1969
5 yrs newer than MA
1977Highest
13 yrs newer than MA
1958Lowest
6 yrs older than MA
Getting to work
Average commuteone way
28 minLowest
5% below MA
33 minHighest
13% above MA
32 min
11% above MA
Work from home
29.4%±8.1Highest
MA: 18.6%
21.6%±5.9Lowest
MA: 18.6%
26.3%±5.1
MA: 18.6%
Topsfield and Hamilton are within the Census margin of error here, so we can’t say which is really higher.
Schools
Public school scoresrank in state, math + reading #172 of 282 in MA #113 of 282 in MA #36 of 282 in MA
School district Topsfield Ayer Shirley School District Hamilton-Wenham
High school in town None in town Ayer Shirley Regional High School Hamilton-Wenham Regional High
Students per teacherat that high school —
11.5Lowest
11.8Highest
On TownTapestry
Old photos in History None yet 12 photos → None yet

MA average · Sources: U.S. Census Bureau, American Community Survey 5-year estimates 2020–2024; 2010 & 2020 decennial census; NCES Common Core of Data. “±” is the Census margin of error. Property tax is top-coded by the Census at $10,000+. School rank compares math and reading proficiency against the state average.