transcript.md
↑ ContentsState Planner chat · https://stateplanner.com
- State: Massachusetts (MA)
- Started: November 23, 2026, 4:01 PM UTC
- Runtime: 1 min 8 sec
- Status: completed
Prompt
Employment by NAICS code: which sectors employ the most in Massachusetts? Map each county’s largest sector.
Model: Anthropic: Claude Opus 5.5 (anthropic/claude-opus-5.5, via openrouter), high effort
Response
Now the county map of each county's largest private sector.
Health Care and Social Assistance is the largest private-sector employer in Massachusetts, and the largest sector in 11 of the 14 counties. Of the other three counties, Professional, Scientific and Technical Services is largest in Middlesex County, and Accommodation and Food Services is largest in the three Cape and Islands counties.
These are annual average jobs from BLS's Quarterly Census of Employment and Wages (QCEW), covering private employers only. I used 2024 because it's the newest year with every statewide sector published. In the 2025 file, BLS withheld Construction, Transportation and Warehousing, Information, Utilities, and Agriculture, so a 2025 ranking would leave them out. QCEW counts only jobs covered by unemployment insurance, so the self-employed aren't included. Jobs are counted where the workplace is, not where the worker lives.
Statewide: which sectors employ the most (2024, private)

Top private sectors in Massachusetts, 2024 (QCEW)
| Rank | NAICS sector | Annual average jobs |
|---|---|---|
| 1 | Health Care and Social Assistance (62) | 648,228 |
| 2 | Professional, Scientific and Technical Services (54) | 371,502 |
| 3–5 | Retail Trade (44-45), Accommodation and Food Services (72), Manufacturing (31-33) | each roughly 225,000–325,000 |
| 6 | Construction (23) | 170,524 |
| 7–10 | Administrative and Waste Services (56), Finance and Insurance (52), Educational Services (61), Wholesale Trade (42) | each roughly 115,000–180,000 |
The chart shows all 19 sectors. Statewide there were about 3.18 million private jobs in 2025. Government adds about 450,000 more (federal, state and local), but QCEW doesn't break government jobs into the same private sectors.
Compared with the nation (location quotients, 2025):
- Educational Services: 2.1× the national share of jobs.
- Professional, Scientific and Technical Services: 1.42×.
- Health care: 1.23×.
Private colleges and hospitals are counted in these private sectors.
By county: the largest private sector

Map legend: each county is filled by its largest private sector in 2024:
- Blue: Health Care and Social Assistance
- Purple: Professional, Scientific and Technical Services
- Orange: Accommodation and Food Services
Click a county to see the jobs in its top two sectors and the top sector's share. The text tags mark Middlesex (MID), Suffolk (SUF), Barnstable (BAR), Dukes (DUK) and Nantucket (NAN).
Largest and second-largest private sector by county, 2024 (QCEW)
| County | Largest sector | Jobs | Second sector | Jobs |
|---|---|---|---|---|
| Middlesex County | Professional, Scientific and Technical | 159,395 | Health Care and Social Assistance | 125,576 |
| Suffolk County | Health Care and Social Assistance | 153,540 | Professional, Scientific and Technical | 99,564 |
| Worcester County | Health Care and Social Assistance | 72,626 | Retail Trade | 37,057 |
| Essex County | Health Care and Social Assistance | 64,038 | Manufacturing | 39,526 |
| Norfolk County | Health Care and Social Assistance | 55,899 | Retail Trade | 38,603 |
| Hampden County | Health Care and Social Assistance | 52,939 | Retail Trade | 19,022 |
| Bristol County | Health Care and Social Assistance | 42,694 | Retail Trade | 31,467 |
| Plymouth County | Health Care and Social Assistance | 33,292 | Retail Trade | 26,229 |
| Barnstable County | Accommodation and Food Services | 15,677 | Health Care and Social Assistance | 15,098 |
| Berkshire County | Health Care and Social Assistance | 12,092 | Retail Trade | 7,212 |
| Hampshire County | Health Care and Social Assistance | 10,341 | Retail Trade | 7,387 |
| Franklin County | Health Care and Social Assistance | 4,112 | Manufacturing | 3,294 |
| Nantucket County | Accommodation and Food Services | 1,727 | Construction | 1,126 |
| Dukes County | Accommodation and Food Services | 1,390 | Retail Trade | 1,320 |
Things to note:
- Close calls: In Barnstable and Dukes, the top two sectors are within about 600 and 70 jobs of each other.
- Withheld figures: BLS withheld some sector figures to protect employers' confidentiality: six in Nantucket, two each in Barnstable, Dukes and Suffolk, and one in Bristol. The withheld sectors can add up to at most 617 jobs in Nantucket, 141 in Dukes and 394 in Barnstable, fewer than the leading sector has in each case. So no withheld sector could be the largest, and the ranking holds.
- Jobs not placed in a county: About 94,000 private jobs couldn't be assigned to a county (area code 25999). They're in the statewide totals but not in any county's figures.
If you'd rather count all employers, I can add government jobs (for example, public schools and state hospitals) to the sector totals. I can also rank by location quotient to show what each county specializes in, rather than its largest sector.
Chart Queries
Massachusetts private jobs by NAICS sector, 2024
SELECT n.title || ' (' || q.industry_code || ')' AS "Sector",
q.annual_avg_employment AS "Annual average jobs"
FROM ma_qcew_annual q
JOIN us_naics_codes n ON n.code = q.industry_code
WHERE q.area_fips = '25000'
AND q.own_code = 5
AND q.agglvl_code = 54
AND q.year = 2024
AND q.industry_code <> '99'
AND NOT q.suppressed
ORDER BY 2 DESC
charts/turn-1-ma-private-jobs-by-sector.csv
Picture: charts/turn-1-ma-private-jobs-by-sector.png
Exploratory Queries
Query 1 — Statewide private employment by NAICS sector, latest year.
SELECT q.year,
q.industry_code,
n.title,
q.annual_avg_employment,
q.establishments,
q.avg_annual_pay,
q.suppressed,
q.lq_employment
FROM ma_qcew_annual q
LEFT JOIN us_naics_codes n ON n.code = q.industry_code
WHERE q.area_fips = '25000'
AND q.own_code = 5
AND q.agglvl_code = 54
AND q.year = (
SELECT max(YEAR)
FROM ma_qcew_annual
)
ORDER BY q.annual_avg_employment DESC NULLS LAST
| year | industry_code | title | annual_avg_employment | establishments | avg_annual_pay | suppressed | lq_employment |
|---|---|---|---|---|---|---|---|
| 2025 | 62 | Health Care and Social Assistance | 658441 | 74286 | 75950 | false | 1.23 |
| 2025 | 54 | Professional, Scientific, and Technical Services | 356647 | 43758 | 192482 | false | 1.42 |
| 2025 | 44-45 | Retail Trade | 322174 | 21738 | 47720 | false | 0.9 |
| 2025 | 72 | Accommodation and Food Services | 299306 | 16826 | 36959 | false | 0.91 |
| 2025 | 31-33 | Manufacturing | 226691 | 7218 | 110734 | false | 0.77 |
| 2025 | 56 | Administrative and Support and Waste Management and Remediation Services | 178904 | 15351 | 71075 | false | 0.85 |
| 2025 | 52 | Finance and Insurance | 166976 | 11997 | 218440 | false | 1.13 |
| 2025 | 61 | Educational Services | 158730 | 4994 | 86056 | false | 2.1 |
| 2025 | 81 | Other Services (except Public Administration) | 117975 | 24203 | 55350 | false | 1.08 |
| 2025 | 42 | Wholesale Trade | 117632 | 13925 | 134381 | false | 0.83 |
| 2025 | 55 | Management of Companies and Enterprises | 76443 | 1664 | 171122 | false | 1.26 |
| 2025 | 71 | Arts, Entertainment, and Recreation | 66530 | 4222 | 57314 | false | 1.07 |
| 2025 | 53 | Real Estate and Rental and Leasing | 48186 | 8343 | 110704 | false | 0.86 |
| 2025 | 99 | NAICS 99 Unclassified | 292 | true | |||
| 2025 | 21 | Mining, Quarrying, and Oil and Gas Extraction | 101 | true | |||
| 2025 | 22 | Utilities | 527 | true | |||
| 2025 | 23 | Construction | 22668 | true | |||
| 2025 | 48-49 | Transportation and Warehousing | 4714 | true | |||
| 2025 | 51 | Information | 10023 | true | |||
| 2025 | 11 | Agriculture, Forestry, Fishing and Hunting | 1036 | true |
Query 2 — Statewide totals for context: all ownerships and private.
SELECT YEAR,
own_code,
industry_code,
annual_avg_employment
FROM ma_qcew_annual
WHERE area_fips = '25000'
AND industry_code = '10'
AND YEAR = (
SELECT max(YEAR)
FROM ma_qcew_annual
)
ORDER BY own_code
| year | own_code | industry_code | annual_avg_employment |
|---|---|---|---|
| 2025 | 0 | 10 | 3634042 |
| 2025 | 1 | 10 | 44690 |
| 2025 | 2 | 10 | 119020 |
| 2025 | 3 | 10 | 285866 |
| 2025 | 5 | 10 | 3184467 |
| 2025 | 8 | 10 | 449576 |
Query 3 — Check whether the suppressed statewide sectors are published in 2024.
SELECT q.year,
q.industry_code,
q.annual_avg_employment,
q.suppressed
FROM ma_qcew_annual q
WHERE q.area_fips = '25000'
AND q.own_code = 5
AND q.agglvl_code = 54
AND q.year IN (2023, 2024)
AND q.industry_code IN ('23', '48-49', '51', '22', '11', '21', '62', '54')
ORDER BY industry_code,
YEAR
| year | industry_code | annual_avg_employment | suppressed |
|---|---|---|---|
| 2023 | 11 | 12761 | false |
| 2024 | 11 | 12781 | false |
| 2023 | 21 | 905 | false |
| 2024 | 21 | 967 | false |
| 2023 | 22 | 12291 | false |
| 2024 | 22 | 12433 | false |
| 2023 | 23 | 172544 | false |
| 2024 | 23 | 170524 | false |
| 2023 | 48-49 | 94112 | false |
| 2024 | 48-49 | 95368 | false |
| 2023 | 51 | 95538 | false |
| 2024 | 51 | 92346 | false |
| 2023 | 54 | 375556 | false |
| 2024 | 54 | 371502 | false |
| 2023 | 62 | 636290 | false |
| 2024 | 62 | 648228 | false |
Query 4 — Rank private sectors within each county for 2024, noting suppressed cells.
WITH s AS (
SELECT q.area_fips,
q.industry_code,
n.title,
q.annual_avg_employment emp,
q.suppressed AS supp,
row_number() OVER (
PARTITION BY q.area_fips
ORDER BY q.annual_avg_employment DESC NULLS LAST
) rk
FROM ma_qcew_annual q
LEFT JOIN us_naics_codes n ON n.code = q.industry_code
WHERE q.own_code = 5
AND q.agglvl_code = 74
AND q.year = 2024
)
SELECT s.area_fips,
c.name,
t.annual_avg_employment AS county_private,
max(
CASE
WHEN rk = 1 THEN title
END
) top1,
max(
CASE
WHEN rk = 1 THEN emp
END
) emp1,
max(
CASE
WHEN rk = 2 THEN title
END
) top2,
max(
CASE
WHEN rk = 2 THEN emp
END
) emp2,
count(*) FILTER (
WHERE supp
) n_supp,
string_agg(
CASE
WHEN supp THEN s.industry_code
END,
','
) supp_codes
FROM s
LEFT JOIN ma_census_counties c ON c.geoid = s.area_fips
LEFT JOIN ma_qcew_annual t ON t.area_fips = s.area_fips
AND t.own_code = 5
AND t.industry_code = '10'
AND t.year = 2024
GROUP BY s.area_fips,
c.name,
t.annual_avg_employment
ORDER BY s.area_fips
| area_fips | name | county_private | top1 | emp1 | top2 | emp2 | n_supp | supp_codes |
|---|---|---|---|---|---|---|---|---|
| 25001 | Barnstable County | 81648 | Accommodation and Food Services | 15677 | Health Care and Social Assistance | 15098 | 2 | 11,21 |
| 25003 | Berkshire County | 50068 | Health Care and Social Assistance | 12092 | Retail Trade | 7212 | 0 | |
| 25005 | Bristol County | 198190 | Health Care and Social Assistance | 42694 | Retail Trade | 31467 | 1 | 99 |
| 25007 | Dukes County | 7574 | Accommodation and Food Services | 1390 | Retail Trade | 1320 | 2 | 42,22 |
| 25009 | Essex County | 282057 | Health Care and Social Assistance | 64038 | Manufacturing | 39526 | 0 | |
| 25011 | Franklin County | 20257 | Health Care and Social Assistance | 4112 | Manufacturing | 3294 | 0 | |
| 25013 | Hampden County | 169461 | Health Care and Social Assistance | 52939 | Retail Trade | 19022 | 0 | |
| 25015 | Hampshire County | 48467 | Health Care and Social Assistance | 10341 | Retail Trade | 7387 | 0 | |
| 25017 | Middlesex County | 834053 | Professional, Scientific, and Technical Services | 159395 | Health Care and Social Assistance | 125576 | 0 | |
| 25019 | Nantucket County | 7675 | Accommodation and Food Services | 1727 | Construction | 1126 | 6 | 54,11,22,31-33,42,55 |
| 25021 | Norfolk County | 310196 | Health Care and Social Assistance | 55899 | Retail Trade | 38603 | 0 | |
| 25023 | Plymouth County | 164717 | Health Care and Social Assistance | 33292 | Retail Trade | 26229 | 0 | |
| 25025 | Suffolk County | 633657 | Health Care and Social Assistance | 153540 | Professional, Scientific, and Technical Services | 99564 | 2 | 21,11 |
| 25027 | Worcester County | 296765 | Health Care and Social Assistance | 72626 | Retail Trade | 37057 | 0 | |
| 25999 | 93840 | Finance and Insurance | 15228 | Administrative and Support and Waste Management and Remediation Services | 10768 | 6 | 55,54,21,22,31-33,42 |
Query 5 — Bound suppressed sectors in Nantucket, Dukes and Barnstable by residual jobs.
SELECT q.area_fips,
t.annual_avg_employment - sum(q.annual_avg_employment) AS residual_in_suppressed
FROM ma_qcew_annual q
JOIN ma_qcew_annual t ON t.area_fips = q.area_fips
AND t.own_code = 5
AND t.industry_code = '10'
AND t.year = 2024
WHERE q.own_code = 5
AND q.agglvl_code = 74
AND q.year = 2024
AND q.area_fips IN ('25019', '25007', '25001')
GROUP BY q.area_fips,
t.annual_avg_employment
| area_fips | residual_in_suppressed |
|---|---|
| 25001 | 394 |
| 25007 | 141 |
| 25019 | 617 |
Map Layer Queries
Largest private sector (QCEW 2024) — colored by "Largest sector": Health Care and Social Assistance (62) (#2b8cbe), Professional, Scientific, and Technical Services (54) (#8856a7), Accommodation and Food Services (72) (#f28e2b)
WITH s AS (
SELECT q.area_fips,
q.industry_code,
n.title,
q.annual_avg_employment emp,
row_number() OVER (
PARTITION BY q.area_fips
ORDER BY q.annual_avg_employment DESC NULLS LAST
) rk
FROM ma_qcew_annual q
JOIN us_naics_codes n ON n.code = q.industry_code
WHERE q.own_code = 5
AND q.agglvl_code = 74
AND q.year = 2024
),
t AS (
SELECT area_fips,
annual_avg_employment tot
FROM ma_qcew_annual
WHERE own_code = 5
AND industry_code = '10'
AND YEAR = 2024
)
SELECT c.geom,
c.name AS "County",
a.title AS "Largest sector",
a.emp AS "Jobs in largest sector",
round(100.0 * a.emp / t.tot, 1) AS "Share of county private jobs(%)",
b.title AS "Second sector",
b.emp AS "Jobs in second sector",
t.tot AS "County private jobs"
FROM ma_census_counties c
JOIN s a ON a.area_fips = c.geoid
AND a.rk = 1
JOIN s b ON b.area_fips = c.geoid
AND b.rk = 2
JOIN t ON t.area_fips = c.geoid
Picture: maps/turn-1-largest-sector-by-county.png
Used Data Sets
ma_census_counties— last synced 2026-09-27 · 14 rowsma_qcew_annual— last synced 2026-10-26 · 840,946 rowsus_naics_codes— last synced 2026-10-15 · 2,685 rows