Middlesex County, Massachusetts

81 ZIP codes · 817.88 sq mi of land · FIPS 25017

Population1,638,365
StateMassachusetts
FIPS code25017
Time zoneEastern
Land area817.88 sq mi
Center (lat, long)42.4817, -71.3949

Area codes in this area

339351617781857978

These are the area codes that most often serve Middlesex County (including overlays). The exact area code depends on the phone number — landlines, mobiles and overlays can differ even on the same street.

Cities and towns (largest first)

Cambridge · 118,796Lowell · 118,368Somerville · 81,036Framingham · 72,399Malden · 65,906Medford · 59,354Everett · 50,045Woburn · 41,939Marlborough · 41,647Wakefield · 27,793Burlington · 26,274Reading · 25,612Winchester · 23,406Wilmington · 23,336Hudson · 15,719AshbyAyerGrotonLittletonPepperellShirleyTownsendWest TownsendActonBoxboroughAshlandBedfordHanscom AfbCarlisleConcord

ZIP codes in Middlesex County

01431 Ashby01432 Ayer01450 Groton01460 Littleton01463 Pepperell01464 Shirley01469 Townsend01474 West Townsend01701 Framingham01702 Framingham01718 Acton01719 Boxborough01720 Acton01721 Ashland01730 Bedford01731 Hanscom Afb01741 Carlisle01742 Concord01746 Holliston01748 Hopkinton01749 Hudson01752 Marlborough01754 Maynard01760 Natick01770 Sherborn01773 Lincoln01775 Stow01776 Sudbury01778 Wayland01801 Woburn01803 Burlington01821 Billerica01824 Chelmsford01826 Dracut01827 Dunstable01850 Lowell01851 Lowell01852 Lowell01854 Lowell01862 North Billerica01863 North Chelmsford01864 North Reading01867 Reading01876 Tewksbury01879 Tyngsboro01880 Wakefield01886 Westford01887 Wilmington01890 Winchester02138 Cambridge02139 Cambridge02140 Cambridge02141 Cambridge02142 Cambridge02143 Somerville02144 Somerville02145 Somerville02148 Malden02149 Everett02155 Medford

Showing 60 of 81. See all MA ZIP codes.

Population: U.S. Census Bureau, ACS 5-year estimates, 2024.

More details

What FIPS code 25017 means

FIPS county codes have five digits. The first two, 25, are the code for Massachusetts, and the last three, 017, identify Middlesex County within the state. Government and business data files (Census, health and election data, for example) often use this code instead of the county name.

Middlesex County by the numbers
People per square mile2,003
Rank in MA by population1 of 14
Rank in MA by land area3 of 14
Land area817.88 sq mi (2,118 km²)
ZIP codes81
Largest ZIP codes in Middlesex County
ZIPPlacePopulation
02148Malden65,906
02155Medford61,730
02149Everett50,045
01801Woburn41,939
01752Marlborough41,647
02139Cambridge40,033
01702Framingham39,789
02138Cambridge38,509
01852Lowell37,144
01760Natick36,782

Population of the whole Census ZIP area. Some ZIPs cross county lines.

How we check this page

County names, FIPS codes, land area and the ZIP-to-county match come from US Census Bureau files, and population from U.S. Census Bureau, ACS 5-year estimates, 2024. Pages are rebuilt from the same files whenever the data is refreshed, and automated checks look for broken links and missing values before each update goes live.

Last reviewed: October 2026. Updated: October 23, 2026. Read our sources and methodology, or tell us if something looks wrong.