53033 FipsDecoder
County equivalent — Fayette County is not technically a "county" but functions as one in federal datasets. Learn about county equivalents →
21067 County FIPS Code

Fayette County

Kentucky · County seat: Lexington · County equivalent (e.g. borough in AK, parish in LA)

View on CensusDepth ↗

FIPS code 21067 is Fayette County, Kentucky. With a population of 321,276 (2022 ACS estimate), it ranks #2 in Kentucky and #222 nationally. Fayette County is part of the Lexington-Fayette, KY. The state FIPS code for Kentucky is 21. This code is used in Census Bureau, BLS, EPA, HUD, and USDA federal datasets to identify this county.

County FIPS

21067

State FIPS

21

KY

Population

321,276

2022 ACS · #222 nationally

Density

1,132.7/mi²

people per sq mile

Land Area

284

sq miles

Urban/Rural

Metro — 250K–1M population

RUCC 2

How This FIPS Code Works

21 067
21 = State FIPS (Kentucky)
067 = County FIPS

The 5-digit FIPS code 21067 is formed by combining the 2-digit state identifier 21 (Kentucky) with the 3-digit county identifier 067. Together they uniquely identify Fayette County in every US federal dataset. No two counties share the same 5-digit FIPS code.

Census ACS Data for FIPS 21067

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

Median Household Income

$66,087

ACS B19013_001E

Poverty Rate

14.9%

ACS B17001 (below poverty level)

Median Age

35.2

ACS B01002_001E

Metropolitan Area

Adjacent Counties (6)

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

Federal Datasets Using Code 21067

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

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

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

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

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

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

ZIP Code % in county
40513 100.0%
40536 100.0%
40526 100.0%
40502 100.0%
40503 100.0%
40504 100.0%
40505 100.0%
40507 100.0%
40508 100.0%
40517 100.0%
40510 100.0%
40514 100.0%
40509 91.5%
40511 91.0%
40516 86.3%
40515 85.5%
40324 1.8%
40361 0.8%
40391 0.7%

Other Counties in Kentucky

Adair County 21001 Allen County 21003 Anderson County 21005 Ballard County 21007 Barren County 21009 Bath County 21011 Bell County 21013 Boone County 21015 Bourbon County 21017 Boyd County 21019 Boyle County 21021 Bracken County 21023 Breathitt County 21025 Breckinridge County 21027 Bullitt County 21029 Butler County 21031 Caldwell County 21033 Calloway County 21035 Campbell County 21037 Carlisle County 21039 Carroll County 21041 Carter County 21043 Casey County 21045 Christian County 21047 Clark County 21049 Clay County 21051 Clinton County 21053 Crittenden County 21055 Cumberland County 21057 Daviess County 21059 Edmonson County 21061 Elliott County 21063 Estill County 21065 Fleming County 21069 Floyd County 21071 Franklin County 21073 Fulton County 21075 Gallatin County 21077 Garrard County 21079 Grant County 21081 Graves County 21083 Grayson County 21085 Green County 21087 Greenup County 21089 Hancock County 21091 Hardin County 21093 Harlan County 21095 Harrison County 21097 Hart County 21099 Henderson County 21101 Henry County 21103 Hickman County 21105 Hopkins County 21107 Jackson County 21109 Jefferson County 21111 Jessamine County 21113 Johnson County 21115 Kenton County 21117 Knott County 21119 Knox County 21121 Larue County 21123 Laurel County 21125 Lawrence County 21127 Lee County 21129 Leslie County 21131 Letcher County 21133 Lewis County 21135 Lincoln County 21137 Livingston County 21139 Logan County 21141 Lyon County 21143 Madison County 21151 Magoffin County 21153 Marion County 21155 Marshall County 21157 Martin County 21159 Mason County 21161 McCracken County 21145 McCreary County 21147 McLean County 21149 Meade County 21163 Menifee County 21165 Mercer County 21167 Metcalfe County 21169 Monroe County 21171 Montgomery County 21173 Morgan County 21175 Muhlenberg County 21177 Nelson County 21179 Nicholas County 21181 Ohio County 21183 Oldham County 21185 Owen County 21187 Owsley County 21189 Pendleton County 21191 Perry County 21193 Pike County 21195 Powell County 21197 Pulaski County 21199 Robertson County 21201 Rockcastle County 21203 Rowan County 21205 Russell County 21207 Scott County 21209 Shelby County 21211 Simpson County 21213 Spencer County 21215 Taylor County 21217 Todd County 21219 Trigg County 21221 Trimble County 21223 Union County 21225 Warren County 21227 Washington County 21229 Wayne County 21231 Webster County 21233 Whitley County 21235 Wolfe County 21237 Woodford County 21239