Cities in Massachusetts by housing units

Boston, MA had the highest housing units of 54 cities in 2023, at 307,840. Palmer Town, MA had the lowest, at 5,792. The median was 19,006 and the figure for Massachusetts was 3.01 million. Source: the U.S. Census Bureau.

Keep it in a collection in your library.
Highest307,840Boston, MA
Lowest5,792Palmer Town, MA
Median19,00654 cities
Massachusetts3,014,657History

All cities, 2023

Boston, MA: 307,840 countBoston, MA307,840Worcester, MA: 85,371 countWorcester, MA85,371Springfield, MA: 62,713 countSpringfield, MA62,713Cambridge, MA: 54,612 countCambridge, MA54,612Quincy, MA: 48,227 countQuincy, MA48,227New Bedford, MA: 44,468 countNew Bedford, MA44,468Fall River, MA: 44,359 countFall River, MA44,359Lowell, MA: 44,110 countLowell, MA44,110Lynn, MA: 37,849 countLynn, MA37,849Somerville, MA: 37,583 countSomerville, MA37,583Brockton, MA: 37,420 countBrockton, MA37,420Newton, MA: 33,531 countNewton, MA33,531Lawrence, MA: 31,929 countLawrence, MA31,929Framingham, MA: 28,416 countFramingham, MA28,416Malden, MA: 28,043 countMalden, MA28,043Haverhill, MA: 27,596 countHaverhill, MA27,596Barnstable Town, MA: 27,488 countBarnstable Town, MA27,488Waltham, MA: 26,898 countWaltham, MA26,898Weymouth Town, MA: 26,160 countWeymouth Town, MA26,160Medford, MA: 25,879 countMedford, MA25,879Chicopee, MA: 25,528 countChicopee, MA25,528Taunton, MA: 25,098 countTaunton, MA25,098Revere, MA: 23,445 countRevere, MA23,445Peabody, MA: 23,254 countPeabody, MA23,254Pittsfield, MA: 21,589 countPittsfield, MA21,589Salem, MA: 21,000 countSalem, MA21,000Attleboro, MA: 19,055 countAttleboro, MA19,055Leominster, MA: 18,957 countLeominster, MA18,957Everett, MA: 18,541 countEverett, MA18,541Fitchburg, MA: 17,945 countFitchburg, MA17,945Beverly, MA: 17,665 countBeverly, MA17,665Marlborough, MA: 17,370 countMarlborough, MA17,370Holyoke, MA: 17,057 countHolyoke, MA17,057Woburn, MA: 16,982 countWoburn, MA16,982Westfield, MA: 16,704 countWestfield, MA16,704Braintree Town, MA: 15,032 countBraintree Town, MA15,032Gloucester, MA: 14,630 countGloucester, MA14,630Chelsea, MA: 14,178 countChelsea, MA14,178Northampton, MA: 13,217 countNorthampton, MA13,217North Attleborough Town, MA: 13,126 countNorth Attleborough Town, MA13,126West Springfield Town, MA: 13,095 countWest Springfield Town, MA13,095Randolph Town, MA: 13,064 countRandolph Town, MA13,064Franklin Town, MA: 12,889 countFranklin Town, MA12,889Melrose, MA: 12,724 countMelrose, MA12,724Agawam Town, MA: 12,232 countAgawam Town, MA12,232Amherst Town, MA: 10,400 countAmherst Town, MA10,400Bridgewater Town, MA: 9,798 countBridgewater Town, MA9,798Gardner, MA: 9,487 countGardner, MA9,487Greenfield, MA: 8,670 countGreenfield, MA8,670Winthrop Town, MA: 8,467 countWinthrop Town, MA8,467Newburyport, MA: 8,298 countNewburyport, MA8,298Southbridge Town, MA: 7,644 countSouthbridge Town, MA7,644North Adams, MA: 6,833 countNorth Adams, MA6,833Palmer Town, MA: 5,792 countPalmer Town, MA5,792Boston, MA: 307,840 countBoston, MA307,840Worcester, MA: 85,371 countWorcester, MA85,371Springfield, MA: 62,713 countSpringfield, MA62,713Cambridge, MA: 54,612 countCambridge, MA54,612Quincy, MA: 48,227 countQuincy, MA48,227New Bedford, MA: 44,468 countNew Bedford, MA44,468Fall River, MA: 44,359 countFall River, MA44,359Lowell, MA: 44,110 countLowell, MA44,110Lynn, MA: 37,849 countLynn, MA37,849Somerville, MA: 37,583 countSomerville, MA37,583Brockton, MA: 37,420 countBrockton, MA37,420Newton, MA: 33,531 countNewton, MA33,531Lawrence, MA: 31,929 countLawrence, MA31,929Framingham, MA: 28,416 countFramingham, MA28,416Malden, MA: 28,043 countMalden, MA28,043Haverhill, MA: 27,596 countHaverhill, MA27,596Barnstable Town, MA: 27,488 countBarnstable Town, MA27,488Waltham, MA: 26,898 countWaltham, MA26,898Weymouth Town, MA: 26,160 countWeymouth Town, MA26,160Medford, MA: 25,879 countMedford, MA25,879Chicopee, MA: 25,528 countChicopee, MA25,528Taunton, MA: 25,098 countTaunton, MA25,098Revere, MA: 23,445 countRevere, MA23,445Peabody, MA: 23,254 countPeabody, MA23,254Pittsfield, MA: 21,589 countPittsfield, MA21,589Salem, MA: 21,000 countSalem, MA21,000Attleboro, MA: 19,055 countAttleboro, MA19,055Leominster, MA: 18,957 countLeominster, MA18,957Everett, MA: 18,541 countEverett, MA18,541Fitchburg, MA: 17,945 countFitchburg, MA17,945Beverly, MA: 17,665 countBeverly, MA17,665Marlborough, MA: 17,370 countMarlborough, MA17,370Holyoke, MA: 17,057 countHolyoke, MA17,057Woburn, MA: 16,982 countWoburn, MA16,982Westfield, MA: 16,704 countWestfield, MA16,704Braintree Town, MA: 15,032 countBraintree Town, MA15,032Gloucester, MA: 14,630 countGloucester, MA14,630Chelsea, MA: 14,178 countChelsea, MA14,178Northampton, MA: 13,217 countNorthampton, MA13,217North Attleborough Town, MA: 13,126 countNorth Attleborough Town, MA13,126West Springfield Town, MA: 13,095 countWest Springfield Town, MA13,095Randolph Town, MA: 13,064 countRandolph Town, MA13,064Franklin Town, MA: 12,889 countFranklin Town, MA12,889Melrose, MA: 12,724 countMelrose, MA12,724Agawam Town, MA: 12,232 countAgawam Town, MA12,232Amherst Town, MA: 10,400 countAmherst Town, MA10,400Bridgewater Town, MA: 9,798 countBridgewater Town, MA9,798Gardner, MA: 9,487 countGardner, MA9,487Greenfield, MA: 8,670 countGreenfield, MA8,670Winthrop Town, MA: 8,467 countWinthrop Town, MA8,467Newburyport, MA: 8,298 countNewburyport, MA8,298Southbridge Town, MA: 7,644 countSouthbridge Town, MA7,644North Adams, MA: 6,833 countNorth Adams, MA6,833Palmer Town, MA: 5,792 countPalmer Town, MA5,792
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

RankCities2023
count
Change on 2022
1Boston, MA307,840+1.2%
2Worcester, MA85,371+0.7%
3Springfield, MA62,713-0.8%
4Cambridge, MA54,612+1.2%
5Quincy, MA48,227+1.7%
6New Bedford, MA44,468+0.2%
7Fall River, MA44,359+0.9%
8Lowell, MA44,110+0.3%
9Lynn, MA37,849+1.4%
10Somerville, MA37,583+1.4%
11Brockton, MA37,420+0.2%
12Newton, MA33,531+0.6%
13Lawrence, MA31,929+1.7%
14Framingham, MA28,416-1.3%
15Malden, MA28,043+1.2%
16Haverhill, MA27,596+1.4%
17Barnstable Town, MA27,488+1.7%
18Waltham, MA26,898-0.8%
19Weymouth Town, MA26,160+2%
20Medford, MA25,879-3.3%
21Chicopee, MA25,528+1.1%
22Taunton, MA25,098-0.7%
23Revere, MA23,445+0.6%
24Peabody, MA23,254-0.4%
25Pittsfield, MA21,589+1.4%
26Salem, MA21,000-0.4%
27Attleboro, MA19,055-2.1%
28Leominster, MA18,957-1.2%
29Everett, MA18,541+2%
30Fitchburg, MA17,945+0.5%
31Beverly, MA17,665+0.1%
32Marlborough, MA17,370-0.3%
33Holyoke, MA17,057+1.9%
34Woburn, MA16,982+0.9%
35Westfield, MA16,704+2%
36Braintree Town, MA15,032-0.4%
37Gloucester, MA14,6300%
38Chelsea, MA14,178+0.4%
39Northampton, MA13,217+1.3%
40North Attleborough Town, MA13,126+1.8%
41West Springfield Town, MA13,095-0.6%
42Randolph Town, MA13,064+1.9%
43Franklin Town, MA12,889+2.5%
44Melrose, MA12,724+2.8%
45Agawam Town, MA12,232+1.6%
46Amherst Town, MA10,400+8.9%
47Bridgewater Town, MA9,798+2.4%
48Gardner, MA9,487-0.9%
49Greenfield, MA8,670+1%
50Winthrop Town, MA8,467-5%
51Newburyport, MA8,298+0.7%
52Southbridge Town, MA7,644+2.2%
53North Adams, MA6,833+1.1%
54Palmer Town, MA5,792+1.4%

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 2023 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/2023/table-based-SF/data/5YRData/acsdt5y2023-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, 2023) [Data set]. Retrieved October 12, 2026, from https://www2.census.gov/programs-surveys/acs/summary_file/2023/table-based-SF/data/5YRData/acsdt5y2023-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, 2023. U.S. Census Bureau, 29 Jan. 2026, https://www2.census.gov/programs-surveys/acs/summary_file/2023/table-based-SF/data/5YRData/acsdt5y2023-b25001.dat. Invokely, https://invokely.ai/rankings/housing-units/massachusetts-cities?period=2023. 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, 2023. Dataset. Accessed October 12, 2026. https://www2.census.gov/programs-surveys/acs/summary_file/2023/table-based-SF/data/5YRData/acsdt5y2023-b25001.dat. Also distributed by Invokely, https://invokely.ai/rankings/housing-units/massachusetts-cities?period=2023.

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, 2023 [Dataset]. Available at: https://www2.census.gov/programs-surveys/acs/summary_file/2023/table-based-SF/data/5YRData/acsdt5y2023-b25001.dat, via Invokely: https://invokely.ai/rankings/housing-units/massachusetts-cities?period=2023 (Accessed: 12 October 2026).

BibTeX
@misc{census_cities_in_massachusetts_by_2023,
  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, 2023}},
  year = {2026},
  howpublished = {Data set},
  url = {https://www2.census.gov/programs-surveys/acs/summary_file/2023/table-based-SF/data/5YRData/acsdt5y2023-b25001.dat},
  urldate = {2026-10-12},
  note = {Accessed via Invokely, https://invokely.ai/rankings/housing-units/massachusetts-cities?period=2023. 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/2023/table-based-SF/data/5YRData/acsdt5y2023-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, 2023
PY  - 2026
DA  - 2026/01/29
PB  - U.S. Census Bureau
DB  - Invokely
UR  - https://www2.census.gov/programs-surveys/acs/summary_file/2023/table-based-SF/data/5YRData/acsdt5y2023-b25001.dat
L2  - https://invokely.ai/rankings/housing-units/massachusetts-cities?period=2023
Y2  - 2026/10/12
N1  - Accessed via Invokely, https://invokely.ai/rankings/housing-units/massachusetts-cities?period=2023.
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/2023/table-based-SF/data/5YRData/acsdt5y2023-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 307,840 in 2023, according to the U.S. Census Bureau.

Which city has the lowest housing units?

Palmer Town, MA, with 5,792 in 2023.

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 2023 and are not ranked.

Housing units: other rankings

Cities in Massachusetts: more rankings