53033 FipsDecoder
19165 County FIPS Code

Shelby County

Iowa · County seat: Harlan · Active county or equivalent

View on CensusDepth ↗

FIPS code 19165 is Shelby County, Iowa. With a population of 11,737 (2022 ACS estimate), it ranks #65 in Iowa and #2363 nationally. The state FIPS code for Iowa is 19. This code is used in Census Bureau, BLS, EPA, HUD, and USDA federal datasets to identify this county.

County FIPS

19165

State FIPS

19

IA

Population

11,737

2022 ACS · #2363 nationally

Density

19.9/mi²

people per sq mile

Land Area

591

sq miles

Urban/Rural

Nonmetro — rural, adjacent to metro

RUCC 8

How This FIPS Code Works

19 165
19 = State FIPS (Iowa)
165 = County FIPS

The 5-digit FIPS code 19165 is formed by combining the 2-digit state identifier 19 (Iowa) with the 3-digit county identifier 165. Together they uniquely identify Shelby County in every US federal dataset. No two counties share the same 5-digit FIPS code.

Census ACS Data for FIPS 19165

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

Median Household Income

$70,295

ACS B19013_001E

Poverty Rate

8.8%

ACS B17001 (below poverty level)

Median Age

45.5

ACS B01002_001E

Adjacent Counties (6)

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

Federal Datasets Using Code 19165

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

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

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

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

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

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

ZIP Code % in county
51530 100.0%
51446 100.0%
51447 100.0%
51578 100.0%
51562 100.0%
51537 100.0%
51527 83.3%
51531 78.5%
51565 74.0%
51570 53.5%
51454 42.5%
51552 36.9%
51577 31.2%
51521 31.0%
51543 30.1%
51529 15.4%
50022 4.1%
51455 2.5%
51563 0.3%

Other Counties in Iowa

Adair County 19001 Adams County 19003 Allamakee County 19005 Appanoose County 19007 Audubon County 19009 Benton County 19011 Black Hawk County 19013 Boone County 19015 Bremer County 19017 Buchanan County 19019 Buena Vista County 19021 Butler County 19023 Calhoun County 19025 Carroll County 19027 Cass County 19029 Cedar County 19031 Cerro Gordo County 19033 Cherokee County 19035 Chickasaw County 19037 Clarke County 19039 Clay County 19041 Clayton County 19043 Clinton County 19045 Crawford County 19047 Dallas County 19049 Davis County 19051 Decatur County 19053 Delaware County 19055 Des Moines County 19057 Dickinson County 19059 Dubuque County 19061 Emmet County 19063 Fayette County 19065 Floyd County 19067 Franklin County 19069 Fremont County 19071 Greene County 19073 Grundy County 19075 Guthrie County 19077 Hamilton County 19079 Hancock County 19081 Hardin County 19083 Harrison County 19085 Henry County 19087 Howard County 19089 Humboldt County 19091 Ida County 19093 Iowa County 19095 Jackson County 19097 Jasper County 19099 Jefferson County 19101 Johnson County 19103 Jones County 19105 Keokuk County 19107 Kossuth County 19109 Lee County 19111 Linn County 19113 Louisa County 19115 Lucas County 19117 Lyon County 19119 Madison County 19121 Mahaska County 19123 Marion County 19125 Marshall County 19127 Mills County 19129 Mitchell County 19131 Monona County 19133 Monroe County 19135 Montgomery County 19137 Muscatine County 19139 O'Brien County 19141 Osceola County 19143 Page County 19145 Palo Alto County 19147 Plymouth County 19149 Pocahontas County 19151 Polk County 19153 Pottawattamie County 19155 Poweshiek County 19157 Ringgold County 19159 Sac County 19161 Scott County 19163 Sioux County 19167 Story County 19169 Tama County 19171 Taylor County 19173 Union County 19175 Van Buren County 19177 Wapello County 19179 Warren County 19181 Washington County 19183 Wayne County 19185 Webster County 19187 Winnebago County 19189 Winneshiek County 19191 Woodbury County 19193 Worth County 19195 Wright County 19197