53033 FipsDecoder
34023 County FIPS Code

Middlesex County

New Jersey · County seat: New Brunswick · Active county or equivalent

View on CensusDepth ↗

FIPS code 34023 is Middlesex County, New Jersey. With a population of 860,147 (2022 ACS estimate), it ranks #2 in New Jersey and #66 nationally. Middlesex County is part of the New York-Newark-Jersey City, NY-NJ. The state FIPS code for New Jersey is 34. This code is used in Census Bureau, BLS, EPA, HUD, and USDA federal datasets to identify this county.

County FIPS

34023

State FIPS

34

NJ

Population

860,147

2022 ACS · #66 nationally

Density

2,784.5/mi²

people per sq mile

Land Area

309

sq miles

Urban/Rural

Metro — 1M+ population

RUCC 1

How This FIPS Code Works

34 023
34 = State FIPS (New Jersey)
023 = County FIPS

The 5-digit FIPS code 34023 is formed by combining the 2-digit state identifier 34 (New Jersey) with the 3-digit county identifier 023. Together they uniquely identify Middlesex County in every US federal dataset. No two counties share the same 5-digit FIPS code.

Census ACS Data for FIPS 34023

From the 2022 ACS 5-year estimates — the same values you'd retrieve by querying the Census API with county FIPS 34023.

Median Household Income

$105,206

ACS B19013_001E

Poverty Rate

8.4%

ACS B17001 (below poverty level)

Median Age

39.1

ACS B01002_001E

Metropolitan Area

Adjacent Counties (5)

Counties that share a border with Middlesex County. Useful for regional analysis — these are the geographies you'd typically include when studying labor markets, commuting zones, or environmental spillovers around FIPS 34023.

Federal Datasets Using Code 34023

FIPS code 34023 appears as the county identifier in the following federal datasets. Analysts joining data across these sources use this code as the common geographic key.

Using FIPS Code 34023 in Code

Common patterns for querying federal datasets by this county's FIPS code. The leading zeros are significant — always treat FIPS codes as strings, not integers.

Census ACS API — Python 34023
import requests

url = "https://api.census.gov/data/2022/acs/acs5"
params = {
    "get":  "NAME,B19013_001E,B01003_001E",
    "for":  "county:023",
    "in":   "state:34",
    "key":  "YOUR_CENSUS_API_KEY",
}
r = requests.get(url, params=params)
data = r.json()  # [[header...], [Middlesex County, New Jersey, income, pop, ...]
SQL — filtering by county FIPS 34023
-- 5-digit combined FIPS (state + county)
SELECT * FROM your_table WHERE county_fips = '34023';

-- Some datasets store state and county separately
SELECT * FROM your_table
WHERE state_fips = '34'
  AND county_fips = '023';

-- ⚠ Never cast to integer — leading zeros are lost:
-- county_fips = 34023 is WRONG for this county
R — tidycensus 34023
library(tidycensus)

get_acs(
  geography = "county",
  variables = c(income = "B19013_001E", pop = "B01003_001E"),
  state     = "34",
  county    = "023",
  year      = 2022
)
Zero-padding reminder: FIPS codes must always be stored and compared as zero-padded strings. 34 (not 34) and 023 (not 23) — losing the leading zeros is one of the most common data-join bugs in federal datasets. Full guide →

ZIP Codes in Middlesex County

ZIP codes do not align perfectly with county boundaries — a single ZIP code can span multiple counties, and a county can contain parts of many ZIP codes. The ratios below (from the Census 2020 ZCTA relationship file) show the land area share of each ZCTA that falls within Middlesex County. Why FIPS ≠ ZIP →

ZIP Code % in county
08904 100.0%
07008 100.0%
08859 100.0%
08861 100.0%
08863 100.0%
08872 100.0%
08879 100.0%
08882 100.0%
08884 100.0%
08901 100.0%
08902 100.0%
07001 100.0%
07064 100.0%
07067 100.0%
07077 100.0%
07080 100.0%
07095 100.0%
08536 100.0%
08810 100.0%
08816 100.0%
08817 100.0%
08820 100.0%
08824 100.0%
08828 100.0%
08830 100.0%
08831 100.0%
08832 100.0%
08837 100.0%
08840 100.0%
08846 100.0%

Showing top 30 of 44 ZIP codes by residential address share.

Other Counties in New Jersey