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
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
State FIPS Codes: The Complete Reference List
Every US state and territory has a unique 2-digit FIPS code. Here's the complete list and how to use it in your data work.
Nov 11, 2025
How to Look Up Any FIPS Code in Seconds
Whether you have a county name, a state abbreviation, or a raw 5-digit number, here's the fastest way to find and decode any FIPS code.
Dec 6, 2025