Shirley
Town in Middlesex County, Massachusetts

Shirley is a town in Middlesex County, Massachusetts, with 7,431 residents (2020 Census). It sits at 279 ft (85 m) above sea level. The nearest town is Devens, 2.5 miles SE.
- 7,431residents (2020 Census)
- 279 ftelevation · 85 m
- 15.8 sq miland area · 41.0 km²
- 470 / sq mipopulation density
- 01464main ZIP code (2 in total)
About Shirley
Shirley is a town in Middlesex County, Massachusetts, United States. It is approximately thirty miles west-northwest of Boston. The population was 7,431 at the 2020 census. It contains census-designated place of Shirley and part of Devens. The town has a well-preserved historic New England town center.
It is home to the Massachusetts Correctional Institution – Shirley, a medium-security state prison. (The neighboring maximum-security Souza-Baranowski Correctional Center lies just outside the town limits in the town of Lancaster.) The remains of a Shaker village have been preserved within the grounds of the prison.
Text: Wikipedia · CC BY-SA 4.0
Shirley weather: 7-day forecast
Loading the National Weather Service forecast…
Source: National Weather Service (NOAA).
Live webcams in Shirley
Webcams: Windy.com
Living in Shirley
- Median household income
- $122,365
- Median home value
- $427,600
- Median rent
- $1,481/mo
- Median age
- 44.3
Do you know Shirley? Tell us about it
Help other travelers: share what makes Shirley special. We review every message before publishing it.
Map of Shirley
Tap any street on the map to see it in Street View below. Map: © OpenStreetMap contributors.
Shirley Street View
Drag the image to look around and tap the arrows on the ground to move. If it says there is no imagery, tap a nearby street on the map above.
Open in Google Maps ›Shirley, MA population
Shirley had 7,431 residents in the 2020 Census.
| 2020 Census | 7,431 |
|---|---|
| Density | 470 per sq mi (181 per km²) |
Source: U.S. Census Bureau, Decennial Census.
Shirley at a glance
| State | Massachusetts (MA) |
|---|---|
| County | Middlesex County |
| Type | Town |
| Population | 7,431 (2020) |
| Land area | 15.82 sq mi (41.0 km²) |
| Water area | 0.08 sq mi (0.21 km²) |
| Elevation | 279 ft (85 m) |
| Coordinates | 42.5737° N, 71.6410° W |
| ZIP codes | 01464, 01434 |
| Official website | shirley-ma.gov |
| Census code (GEOID) | 2501761590 |
Sources: U.S. Census Bureau (Gazetteer, ZCTA), USGS GNIS, Wikidata.
Towns near Shirley
- Devens2.5 mi SE
- Ayer3.4 mi E
- Lunenburg4.1 mi W
- Groton4.7 mi NE
- Harvard5.5 mi SE
- Lancaster6.5 mi S
- Pepperell7.0 mi N
- Townsend7.3 mi NW
- East Pepperell7.3 mi NE
- Leominster7.5 mi SW
- Littleton8.1 mi E
- Boxborough8.6 mi SE
Straight-line distance between town centers.
Frequently asked questions about Shirley
What county is Shirley in?
Shirley is in Middlesex County, Massachusetts.
What is the population of Shirley, MA?
7,431 people lived in Shirley at the 2020 Census.
What is the ZIP code of Shirley, MA?
The main ZIP code is 01464. Other ZIP codes: 01434.
What is the elevation of Shirley?
279 feet (85 m) above sea level.
What towns are near Shirley?
Devens (2.5 mi), Ayer (3.4 mi), Lunenburg (4.1 mi), Groton (4.7 mi), Harvard (5.5 mi).
Last updated: