53033 FipsDecoder
26151 County FIPS Code

Sanilac County

Michigan · County seat: Sandusky · Active county or equivalent

View on CensusDepth ↗

FIPS code 26151 is Sanilac County, Michigan. With a population of 40,759 (2022 ACS estimate), it ranks #40 in Michigan and #1178 nationally. The state FIPS code for Michigan is 26. This code is used in Census Bureau, BLS, EPA, HUD, and USDA federal datasets to identify this county.

County FIPS

26151

State FIPS

26

MI

Population

40,759

2022 ACS · #1178 nationally

Density

42.3/mi²

people per sq mile

Land Area

963

sq miles

Urban/Rural

Nonmetro — rural, adjacent to metro

RUCC 8

How This FIPS Code Works

26 151
26 = State FIPS (Michigan)
151 = County FIPS

The 5-digit FIPS code 26151 is formed by combining the 2-digit state identifier 26 (Michigan) with the 3-digit county identifier 151. Together they uniquely identify Sanilac County in every US federal dataset. No two counties share the same 5-digit FIPS code.

Census ACS Data for FIPS 26151

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

Median Household Income

$55,740

ACS B19013_001E

Poverty Rate

15.0%

ACS B17001 (below poverty level)

Median Age

45.2

ACS B01002_001E

Adjacent Counties (4)

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

Federal Datasets Using Code 26151

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

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

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

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

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

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

ZIP Code % in county
48469 100.0%
48454 100.0%
48465 100.0%
48466 100.0%
48471 100.0%
48401 100.0%
48410 100.0%
48419 100.0%
48422 100.0%
48426 100.0%
48427 100.0%
48434 100.0%
48472 100.0%
48450 100.0%
48453 82.9%
48456 79.8%
48416 54.0%
48475 54.0%
48726 26.4%
48097 22.4%
48032 19.5%
48441 1.8%
48470 0.5%

Other Counties in Michigan

Alcona County 26001 Alger County 26003 Allegan County 26005 Alpena County 26007 Antrim County 26009 Arenac County 26011 Baraga County 26013 Barry County 26015 Bay County 26017 Benzie County 26019 Berrien County 26021 Branch County 26023 Calhoun County 26025 Cass County 26027 Charlevoix County 26029 Cheboygan County 26031 Chippewa County 26033 Clare County 26035 Clinton County 26037 Crawford County 26039 Delta County 26041 Dickinson County 26043 Eaton County 26045 Emmet County 26047 Genesee County 26049 Gladwin County 26051 Gogebic County 26053 Grand Traverse County 26055 Gratiot County 26057 Hillsdale County 26059 Houghton County 26061 Huron County 26063 Ingham County 26065 Ionia County 26067 Iosco County 26069 Iron County 26071 Isabella County 26073 Jackson County 26075 Kalamazoo County 26077 Kalkaska County 26079 Kent County 26081 Keweenaw County 26083 Lake County 26085 Lapeer County 26087 Leelanau County 26089 Lenawee County 26091 Livingston County 26093 Luce County 26095 Mackinac County 26097 Macomb County 26099 Manistee County 26101 Marquette County 26103 Mason County 26105 Mecosta County 26107 Menominee County 26109 Midland County 26111 Missaukee County 26113 Monroe County 26115 Montcalm County 26117 Montmorency County 26119 Muskegon County 26121 Newaygo County 26123 Oakland County 26125 Oceana County 26127 Ogemaw County 26129 Ontonagon County 26131 Osceola County 26133 Oscoda County 26135 Otsego County 26137 Ottawa County 26139 Presque Isle County 26141 Roscommon County 26143 Saginaw County 26145 Schoolcraft County 26153 Shiawassee County 26155 St. Clair County 26147 St. Joseph County 26149 Tuscola County 26157 Van Buren County 26159 Washtenaw County 26161 Wayne County 26163 Wexford County 26165