53033 FipsDecoder
33017 County FIPS Code

Strafford County

New Hampshire · County seat: Dover · Active county or equivalent

View on CensusDepth ↗

FIPS code 33017 is Strafford County, New Hampshire. With a population of 130,965 (2022 ACS estimate), it ranks #4 in New Hampshire and #491 nationally. Strafford County is part of the Boston-Cambridge-Newton, MA-NH. The state FIPS code for New Hampshire is 33. This code is used in Census Bureau, BLS, EPA, HUD, and USDA federal datasets to identify this county.

County FIPS

33017

State FIPS

33

NH

Population

130,965

2022 ACS · #491 nationally

Density

354.9/mi²

people per sq mile

Land Area

369

sq miles

Urban/Rural

Metro — 1M+ population

RUCC 1

How This FIPS Code Works

33 017
33 = State FIPS (New Hampshire)
017 = County FIPS

The 5-digit FIPS code 33017 is formed by combining the 2-digit state identifier 33 (New Hampshire) with the 3-digit county identifier 017. Together they uniquely identify Strafford County in every US federal dataset. No two counties share the same 5-digit FIPS code.

Census ACS Data for FIPS 33017

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

Median Household Income

$83,212

ACS B19013_001E

Poverty Rate

9.1%

ACS B17001 (below poverty level)

Median Age

37.7

ACS B01002_001E

Metropolitan Area

Adjacent Counties (5)

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

Federal Datasets Using Code 33017

FIPS code 33017 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 33017 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 33017
import requests

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

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

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

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

ZIP Codes in Strafford 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 Strafford County. Why FIPS ≠ ZIP →

ZIP Code % in county
03884 100.0%
03820 100.0%
03823 100.0%
03824 100.0%
03825 100.0%
03835 100.0%
03839 100.0%
03851 100.0%
03852 100.0%
03855 100.0%
03861 100.0%
03867 100.0%
03868 100.0%
03869 100.0%
03878 100.0%
03887 95.0%
03042 0.1%

Other Counties in New Hampshire