Cities in Massachusetts by housing units

Boston, MA had the highest housing units of 54 cities in 2022, at 304,079. Palmer Town, MA had the lowest, at 5,714. The median was 19,327 and the figure for Massachusetts was 3 million. Source: the U.S. Census Bureau.

Keep it in a collection in your library.
Highest304,079Boston, MA
Lowest5,714Palmer Town, MA
Median19,32754 cities
Massachusetts2,999,314History

All cities, 2022

Boston, MA: 304,079 countBoston, MA304,079Worcester, MA: 84,771 countWorcester, MA84,771Springfield, MA: 63,245 countSpringfield, MA63,245Cambridge, MA: 53,948 countCambridge, MA53,948Quincy, MA: 47,424 countQuincy, MA47,424New Bedford, MA: 44,392 countNew Bedford, MA44,392Lowell, MA: 43,975 countLowell, MA43,975Fall River, MA: 43,951 countFall River, MA43,951Lynn, MA: 37,334 countLynn, MA37,334Brockton, MA: 37,333 countBrockton, MA37,333Somerville, MA: 37,054 countSomerville, MA37,054Newton, MA: 33,331 countNewton, MA33,331Lawrence, MA: 31,407 countLawrence, MA31,407Framingham, MA: 28,783 countFramingham, MA28,783Malden, MA: 27,708 countMalden, MA27,708Haverhill, MA: 27,226 countHaverhill, MA27,226Waltham, MA: 27,114 countWaltham, MA27,114Barnstable Town, MA: 27,040 countBarnstable Town, MA27,040Medford, MA: 26,761 countMedford, MA26,761Weymouth Town, MA: 25,645 countWeymouth Town, MA25,645Taunton, MA: 25,267 countTaunton, MA25,267Chicopee, MA: 25,253 countChicopee, MA25,253Peabody, MA: 23,355 countPeabody, MA23,355Revere, MA: 23,311 countRevere, MA23,311Pittsfield, MA: 21,283 countPittsfield, MA21,283Salem, MA: 21,086 countSalem, MA21,086Attleboro, MA: 19,467 countAttleboro, MA19,467Leominster, MA: 19,187 countLeominster, MA19,187Everett, MA: 18,170 countEverett, MA18,170Fitchburg, MA: 17,861 countFitchburg, MA17,861Beverly, MA: 17,656 countBeverly, MA17,656Marlborough, MA: 17,416 countMarlborough, MA17,416Woburn, MA: 16,827 countWoburn, MA16,827Holyoke, MA: 16,743 countHolyoke, MA16,743Westfield, MA: 16,384 countWestfield, MA16,384Braintree Town, MA: 15,094 countBraintree Town, MA15,094Gloucester, MA: 14,630 countGloucester, MA14,630Chelsea, MA: 14,121 countChelsea, MA14,121West Springfield Town, MA: 13,168 countWest Springfield Town, MA13,168Northampton, MA: 13,048 countNorthampton, MA13,048North Attleborough Town, MA: 12,891 countNorth Attleborough Town, MA12,891Randolph Town, MA: 12,817 countRandolph Town, MA12,817Franklin Town, MA: 12,580 countFranklin Town, MA12,580Melrose, MA: 12,372 countMelrose, MA12,372Agawam Town, MA: 12,042 countAgawam Town, MA12,042Gardner, MA: 9,575 countGardner, MA9,575Bridgewater Town, MA: 9,567 countBridgewater Town, MA9,567Amherst Town, MA: 9,550 countAmherst Town, MA9,550Winthrop Town, MA: 8,908 countWinthrop Town, MA8,908Greenfield, MA: 8,580 countGreenfield, MA8,580Newburyport, MA: 8,239 countNewburyport, MA8,239Southbridge Town, MA: 7,478 countSouthbridge Town, MA7,478North Adams, MA: 6,756 countNorth Adams, MA6,756Palmer Town, MA: 5,714 countPalmer Town, MA5,714Boston, MA: 304,079 countBoston, MA304,079Worcester, MA: 84,771 countWorcester, MA84,771Springfield, MA: 63,245 countSpringfield, MA63,245Cambridge, MA: 53,948 countCambridge, MA53,948Quincy, MA: 47,424 countQuincy, MA47,424New Bedford, MA: 44,392 countNew Bedford, MA44,392Lowell, MA: 43,975 countLowell, MA43,975Fall River, MA: 43,951 countFall River, MA43,951Lynn, MA: 37,334 countLynn, MA37,334Brockton, MA: 37,333 countBrockton, MA37,333Somerville, MA: 37,054 countSomerville, MA37,054Newton, MA: 33,331 countNewton, MA33,331Lawrence, MA: 31,407 countLawrence, MA31,407Framingham, MA: 28,783 countFramingham, MA28,783Malden, MA: 27,708 countMalden, MA27,708Haverhill, MA: 27,226 countHaverhill, MA27,226Waltham, MA: 27,114 countWaltham, MA27,114Barnstable Town, MA: 27,040 countBarnstable Town, MA27,040Medford, MA: 26,761 countMedford, MA26,761Weymouth Town, MA: 25,645 countWeymouth Town, MA25,645Taunton, MA: 25,267 countTaunton, MA25,267Chicopee, MA: 25,253 countChicopee, MA25,253Peabody, MA: 23,355 countPeabody, MA23,355Revere, MA: 23,311 countRevere, MA23,311Pittsfield, MA: 21,283 countPittsfield, MA21,283Salem, MA: 21,086 countSalem, MA21,086Attleboro, MA: 19,467 countAttleboro, MA19,467Leominster, MA: 19,187 countLeominster, MA19,187Everett, MA: 18,170 countEverett, MA18,170Fitchburg, MA: 17,861 countFitchburg, MA17,861Beverly, MA: 17,656 countBeverly, MA17,656Marlborough, MA: 17,416 countMarlborough, MA17,416Woburn, MA: 16,827 countWoburn, MA16,827Holyoke, MA: 16,743 countHolyoke, MA16,743Westfield, MA: 16,384 countWestfield, MA16,384Braintree Town, MA: 15,094 countBraintree Town, MA15,094Gloucester, MA: 14,630 countGloucester, MA14,630Chelsea, MA: 14,121 countChelsea, MA14,121West Springfield Town, MA: 13,168 countWest Springfield Town, MA13,168Northampton, MA: 13,048 countNorthampton, MA13,048North Attleborough Town, MA: 12,891 countNorth Attleborough Town, MA12,891Randolph Town, MA: 12,817 countRandolph Town, MA12,817Franklin Town, MA: 12,580 countFranklin Town, MA12,580Melrose, MA: 12,372 countMelrose, MA12,372Agawam Town, MA: 12,042 countAgawam Town, MA12,042Gardner, MA: 9,575 countGardner, MA9,575Bridgewater Town, MA: 9,567 countBridgewater Town, MA9,567Amherst Town, MA: 9,550 countAmherst Town, MA9,550Winthrop Town, MA: 8,908 countWinthrop Town, MA8,908Greenfield, MA: 8,580 countGreenfield, MA8,580Newburyport, MA: 8,239 countNewburyport, MA8,239Southbridge Town, MA: 7,478 countSouthbridge Town, MA7,478North Adams, MA: 6,756 countNorth Adams, MA6,756Palmer Town, MA: 5,714 countPalmer Town, MA5,714
count. Source: U.S. Census Bureau, American Community Survey 5-year estimates, table B25001: total housing units, US cities (incorporated places of 10,000 or more). Retrieved 2026-10-12.

Full ranking

RankCities2022
count
Change on 2021
1Boston, MA304,079+1.2%
2Worcester, MA84,771-0.5%
3Springfield, MA63,245+0.1%
4Cambridge, MA53,948+3.8%
5Quincy, MA47,424+1.4%
6New Bedford, MA44,392+0.3%
7Lowell, MA43,975-0.3%
8Fall River, MA43,951-0.4%
9Lynn, MA37,334-0.8%
10Brockton, MA37,333+1.2%
11Somerville, MA37,054+1%
12Newton, MA33,331+2%
13Lawrence, MA31,407-0.4%
14Framingham, MA28,783-0.7%
15Malden, MA27,708+2.3%
16Haverhill, MA27,226+0.2%
17Waltham, MA27,114+3.4%
18Barnstable Town, MA27,040-0.2%
19Medford, MA26,761+1.9%
20Weymouth Town, MA25,645+1.3%
21Taunton, MA25,267+2.3%
22Chicopee, MA25,253-0.6%
23Peabody, MA23,355-0.8%
24Revere, MA23,311-0.7%
25Pittsfield, MA21,283-1.4%
26Salem, MA21,086+0.6%
27Attleboro, MA19,467-0.4%
28Leominster, MA19,187+2.8%
29Everett, MA18,170+1.6%
30Fitchburg, MA17,861+0.9%
31Beverly, MA17,656+2.5%
32Marlborough, MA17,416-4.7%
33Woburn, MA16,827-1.9%
34Holyoke, MA16,743+0.1%
35Westfield, MA16,384+1.9%
36Braintree Town, MA15,094+0.1%
37Gloucester, MA14,630-1%
38Chelsea, MA14,121+1.2%
39West Springfield Town, MA13,168+0.6%
40Northampton, MA13,048+2.4%
41North Attleborough Town, MA12,891+2.6%
42Randolph Town, MA12,817+2.1%
43Franklin Town, MA12,580+0.6%
44Melrose, MA12,372+0.8%
45Agawam Town, MA12,042-1.6%
46Gardner, MA9,575-0.6%
47Bridgewater Town, MA9,567+5.4%
48Amherst Town, MA9,550-10.3%
49Winthrop Town, MA8,908+2.4%
50Greenfield, MA8,580-0%
51Newburyport, MA8,239+1.4%
52Southbridge Town, MA7,478-2.3%
53North Adams, MA6,756+2.6%
54Palmer Town, MA5,714+3.9%

Other periods

About this ranking

All housing units, occupied and vacant: houses, apartments, mobile homes and rooms intended as separate living quarters. United States: American Community Survey five-year estimate, where the period shown is the last year of the five-year span.

A survey estimate averaged over five years, not a count on one date.

Every value in the ranking comes from the same publisher and the same period, so the cities are compared on one definition. 4 cities with data in other periods have no value for 2022 and are left out rather than filled from another source. Equal values share a rank.

How to cite

U.S. Census Bureau. American Community Survey 5-year estimates, table B25001: total housing units, US cities (incorporated places of 10,000 or more). https://www2.census.gov/programs-surveys/acs/summary_file/2022/table-based-SF/data/5YRData/acsdt5y2022-b25001.dat. Retrieved 2026-10-12.

Citation styles

The publisher is the author. Invokely is named only as the place the figures were read, where a style asks for it.

APA 7

U.S. Census Bureau. (2026). American Community Survey 5-year estimates, table B25001: total housing units, US cities (incorporated places of 10,000 or more) (Cities in Massachusetts by housing units, 2022) [Data set]. Retrieved October 12, 2026, from https://www2.census.gov/programs-surveys/acs/summary_file/2022/table-based-SF/data/5YRData/acsdt5y2022-b25001.dat

MLA 9

American Community Survey 5-year estimates, table B25001: total housing units, US cities (incorporated places of 10,000 or more), Cities in Massachusetts by housing units, 2022. U.S. Census Bureau, 29 Jan. 2026, https://www2.census.gov/programs-surveys/acs/summary_file/2022/table-based-SF/data/5YRData/acsdt5y2022-b25001.dat. Invokely, https://invokely.ai/rankings/housing-units/massachusetts-cities?period=2022. Accessed 12 Oct. 2026.

Chicago (author-date)

U.S. Census Bureau. 2026. American Community Survey 5-year estimates, table B25001: total housing units, US cities (incorporated places of 10,000 or more). Cities in Massachusetts by housing units, 2022. Dataset. Accessed October 12, 2026. https://www2.census.gov/programs-surveys/acs/summary_file/2022/table-based-SF/data/5YRData/acsdt5y2022-b25001.dat. Also distributed by Invokely, https://invokely.ai/rankings/housing-units/massachusetts-cities?period=2022.

Harvard

U.S. Census Bureau (2026) American Community Survey 5-year estimates, table B25001: total housing units, US cities (incorporated places of 10,000 or more), Cities in Massachusetts by housing units, 2022 [Dataset]. Available at: https://www2.census.gov/programs-surveys/acs/summary_file/2022/table-based-SF/data/5YRData/acsdt5y2022-b25001.dat, via Invokely: https://invokely.ai/rankings/housing-units/massachusetts-cities?period=2022 (Accessed: 12 October 2026).

BibTeX
@misc{census_cities_in_massachusetts_by_2022,
  author = {{U.S. Census Bureau}},
  title = {{American Community Survey 5-year estimates, table B25001: total housing units, US cities (incorporated places of 10,000 or more): Cities in Massachusetts by housing units, 2022}},
  year = {2026},
  howpublished = {Data set},
  url = {https://www2.census.gov/programs-surveys/acs/summary_file/2022/table-based-SF/data/5YRData/acsdt5y2022-b25001.dat},
  urldate = {2026-10-12},
  note = {Accessed via Invokely, https://invokely.ai/rankings/housing-units/massachusetts-cities?period=2022. Publisher attribution: U.S. Census Bureau. American Community Survey 5-year estimates, table B25001: total housing units, US cities (incorporated places of 10,000 or more). https://www2.census.gov/programs-surveys/acs/summary\_file/2022/table-based-SF/data/5YRData/acsdt5y2022-b25001.dat. Retrieved 2026-10-12.},
}
RIS
TY  - DATA
AU  - U.S. Census Bureau
TI  - American Community Survey 5-year estimates, table B25001: total housing units, US cities (incorporated places of 10,000 or more): Cities in Massachusetts by housing units, 2022
PY  - 2026
DA  - 2026/01/29
PB  - U.S. Census Bureau
DB  - Invokely
UR  - https://www2.census.gov/programs-surveys/acs/summary_file/2022/table-based-SF/data/5YRData/acsdt5y2022-b25001.dat
L2  - https://invokely.ai/rankings/housing-units/massachusetts-cities?period=2022
Y2  - 2026/10/12
N1  - Accessed via Invokely, https://invokely.ai/rankings/housing-units/massachusetts-cities?period=2022.
N1  - Publisher attribution: U.S. Census Bureau. American Community Survey 5-year estimates, table B25001: total housing units, US cities (incorporated places of 10,000 or more). https://www2.census.gov/programs-surveys/acs/summary_file/2022/table-based-SF/data/5YRData/acsdt5y2022-b25001.dat. Retrieved 2026-10-12.
ER  - 
Embed this chart

Paste this code into a web page or a blog post. The chart shows the latest figures as they are published, with the source and a link back to this page.

Sites that read oEmbed links, such as WordPress, can show the chart when you paste the link to this page.

Use this data in your AI agent

Invokely serves this figure to AI assistants through MCP and to code through a REST API, with the source and citation attached. Ask your assistant:

Rank Cities in Massachusetts by housing units using official data, and cite the source.
rank_places {"indicator":"housing_units","level":"municipality","within":"Massachusetts","limit":10}
GET https://invokely.ai/api/v1/rank?indicator=housing_units&level=municipality&within=Massachusetts&limit=10

Connect Claude, ChatGPT or Cursor in one step. The trial answers 25 calls a day without an account.

Questions

Which city has the highest housing units?

Boston, MA, with 304,079 in 2022, according to the U.S. Census Bureau.

Which city has the lowest housing units?

Palmer Town, MA, with 5,714 in 2022.

Where does this ranking come from?

Every value comes from one source and one period, so the places are comparable: U.S. Census Bureau, American Community Survey 5-year estimates, table B25001: total housing units, US cities (incorporated places of 10,000 or more). Retrieved 2026-10-12. 4 cities have no value for 2022 and are not ranked.

Housing units: other rankings

Cities in Massachusetts: more rankings