County FIPS Codes: How 5-Digit Codes Work
County FIPS codes are the workhorses of US geographic data. Understanding their structure unlocks every major federal dataset.
County FIPS codes are 5-digit numbers that uniquely identify every county and county-equivalent in the United States. There are 3,144 of them, covering counties, parishes (Louisiana), boroughs and census areas (Alaska), independent cities (Virginia), and the District of Columbia. Our county FIPS codes guide explains the full taxonomy.
The structure is straightforward: the first two digits are the state FIPS code, and the last three digits are the county's number within that state. King County, WA is 53-033. Los Angeles County, CA is 06-037. Harris County, TX (Houston) is 48-201. The county portion is always odd-numbered for historical reasons dating back to how codes were assigned — this leaves room to insert new counties without renumbering existing ones.
County FIPS codes are the most-used level of FIPS geography in federal data. The Census Bureau's American Community Survey, the BLS Quarterly Census of Employment and Wages, EPA air quality monitoring data, HUD Fair Market Rents, and USDA rural classifications all publish at the county level using 5-digit FIPS codes. Joining any two of these datasets requires nothing more than matching on this single field.
One common confusion: some datasets (especially older ones) store the state and county codes separately in two columns rather than as a single 5-digit code. To reconstruct the full FIPS, concatenate the state code (zero-padded to 2 digits) with the county code (zero-padded to 3 digits). In Python: fips = str(state).zfill(2) + str(county).zfill(3). Explore any county's full data profile using the FIPS search or by browsing from a state page.
More Articles
Cook County, IL (FIPS 17031): Chicago in the Data
Cook County is the second most populous county in the US and encompasses Chicago and its inner suburbs. Here's the data profile for FIPS code 17031.
Jul 30, 2026
The History of FIPS Standards in US Government Data
FIPS geographic codes have been used by the US government for over 50 years. Here's the history of how these standards developed and why they still matter today.
Aug 31, 2026
Seattle-Tacoma-Bellevue MSA (42660): Regional Economic Data
The Seattle-Tacoma-Bellevue MSA is home to Amazon, Microsoft, and Boeing. Here's a data-driven profile of MSA 42660 using BLS, Census, and BEA sources.
Aug 15, 2026