Middlesex County · Massachusetts

ZIP Code 01731

Hanscom Afb, MA · 2,110 residents

City (USPS)
Hanscom Afb
Time zone
Eastern Time
Coordinates
42.4646° N, 71.2848° W
Land area
2.3 sq mi · 903 people/sq mi
71.30°W71.25°W42.45°NZIP 01730ZIP 01742ZIP 01773ZIP 01803ZIP 02420ZIP 0242102421017311 miN
ZIP Code 01731 (highlighted) with bordering ZIP Codes and county lines. Select a neighbor to open it.

What county is 01731 in?

ZIP Code 01731 is in Middlesex County, Massachusetts.

The Postal Service's default place name for 01731 is Hanscom Afb. By Census boundaries it covers Hanscom AFB (community, 38% of the land) and Lexington (community, 11% of the land). The remaining 50% is unincorporated.

Population2,110±703
Median household income$104,688
Median rent$3,408/mo
Median age25.0
Households680

What stands out in ZIP 01731

  • The share of adults with a bachelor's degree is 34.7%, 42% lower than Middlesex County (59.5%).
  • The median age is 25.0 years, 36% lower than Middlesex County (38.9 years).
  • The median rent is $3,408 a month, 55% higher than Middlesex County ($2,201 a month).
  • The average commute is 23 minutes, 22% lower than Middlesex County (30 minutes).

People in ZIP 01731

Median age25.0
Under 1835.5%
65 and older0%
Born abroad22.5%
Moved here in the last year32.2%

Age and sex

MaleAgeFemale
0.0%80+0.0%
0.0%70–790.0%
0.0%60–694.7%
1.1%50–590.9%
6.3%40–494.2%
10.3%30–3916.4%
8.9%20–2911.0%
2.5%10–194.8%
19.9%0–99.1%
Share of all residents in each age group

Race and ethnicity

  • Hispanic or Latino37%
  • White34.4%
  • Asian21.1%
  • Two or more races3.7%
  • Other3.5%
  • Black0.2%

Hispanic or Latino residents can be of any race; the other groups count non-Hispanic residents only.

Households

680 households, 2.98 people per household on average, 78.5% family households, and 15.6% people living alone.

Income in ZIP 01731

Median household income$104,688±$76,436
Per-capita income$36,720
Poverty rate0%
Income inequality (Gini)0.330 = equal, 1 = unequal

Median household income ranks 280th of 496 ZIP Codes in Massachusetts. Richest ZIP Codes in Massachusetts

0%Under $25k
42%$25k–50k
1%$50k–75k
3%$75k–100k
25%$100k–150k
20%$150k–200k
8%$200k+
Households by annual income

Housing in ZIP 01731

Median gross rent$3,408/mo
Housing units680
Median year built1974
Vacant0%

Owners and renters

  • Renter-occupied 100%

Types of homes

  • Single-family homes 50.3%
  • 2–9 unit buildings 49.7%

Work, commute and education

Mean commute23 minone way
Unemployment rate0.7%
Labor force participation78.9%age 16+
Broadband at home99.3%households

How workers get to work

  • Drove alone71.7%
  • Carpooled4.8%
  • Public transit2%
  • Walked0.2%
  • Bicycle0.5%
  • Worked from home20.8%

Education, adults 25+

  • High school or higher100%
  • Bachelor's or higher34.7%
  • Graduate or professional degree23.2%

How ZIP 01731 compares

ZIP 01731Middlesex CountyMassachusettsUnited States
Median household income$104,688$130,847$103,960$80,734
Per-capita income$36,720$69,556$57,897$44,673
Median gross rent$3,408/mo$2,201/mo$1,762/mo$1,413/mo
Homeownership rate0%61.3%62.5%65.2%
Median age25.038.940.038.9
Bachelor's degree or higher34.7%59.5%47.3%35.7%
Poverty rate0%7.7%10%12.5%
Unemployment rate0.7%4.4%5.2%5.2%
Mean commute23 min30 min29 min26 min
Worked from home20.8%24.7%18.6%15.1%
Broadband at home99.3%94.7%92.8%91%
Foreign-born residents22.5%23.1%18%14.1%

ZIP Codes bordering 01731

ZIP CodeCityPopulationMedian incomeHome valueMedian ageDirection
01730Bedford14,707$172,400$898,50044.3N · 2.4 mi
02421Lexington18,080$227,813$1,205,70048.2SE · 2.9 mi
01773Lincoln4,891$209,327$1,200,80052.5SW · 3.0 mi
01742Concord18,448$195,125$1,218,10047.4W · 4.1 mi

Cities and communities in 01731

ZIP Code 01731: questions and answers

What county is ZIP Code 01731 in?
ZIP Code 01731 is in Middlesex County, Massachusetts.
What city is ZIP Code 01731 in?
The Postal Service's default place name for 01731 is Hanscom Afb. By Census boundaries it covers Hanscom AFB (community, 38% of the land) and Lexington (community, 11% of the land). The remaining 50% is unincorporated.
What is the population of ZIP Code 01731?
About 2,110 people live in ZIP Code 01731, according to the Census Bureau's American Community Survey (2020–2024).
What time zone is 01731 in?
ZIP Code 01731 is in the Eastern Time zone (America/New_York).
What is the median household income in 01731?
The median household income in ZIP Code 01731 is $104,688 (2020–2024 ACS), compared with $130,847 in Middlesex County and $103,960 in Massachusetts.
Which ZIP Codes border 01731?
01730 (Bedford), 02421 (Lexington), 01773 (Lincoln), and 01742 (Concord).

Sources: U.S. Census Bureau, American Community Survey 2020–2024 5-year estimates; 2025 Population Estimates; 2024 Gazetteer and cartographic boundary files; ZIP Code place names: GeoNames (CC BY 4.0). How we build these pages.