53033 FipsDecoder
40047 County FIPS Code

Garfield County

Oklahoma · County seat: Enid · Active county or equivalent

View on CensusDepth ↗

FIPS code 40047 is Garfield County, Oklahoma. With a population of 62,456 (2022 ACS estimate), it ranks #12 in Oklahoma and #856 nationally. Garfield County is part of the Enid, OK. The state FIPS code for Oklahoma is 40. This code is used in Census Bureau, BLS, EPA, HUD, and USDA federal datasets to identify this county.

County FIPS

40047

State FIPS

40

OK

Population

62,456

2022 ACS · #856 nationally

Density

59.0/mi²

people per sq mile

Land Area

1,058

sq miles

Urban/Rural

Metro — under 250K population

RUCC 3

How This FIPS Code Works

40 047
40 = State FIPS (Oklahoma)
047 = County FIPS

The 5-digit FIPS code 40047 is formed by combining the 2-digit state identifier 40 (Oklahoma) with the 3-digit county identifier 047. Together they uniquely identify Garfield County in every US federal dataset. No two counties share the same 5-digit FIPS code.

Census ACS Data for FIPS 40047

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

Median Household Income

$64,165

ACS B19013_001E

Poverty Rate

14.0%

ACS B17001 (below poverty level)

Median Age

35.7

ACS B01002_001E

Metropolitan Area

Adjacent Counties (7)

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

Federal Datasets Using Code 40047

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

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

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

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

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

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

ZIP Code % in county
73738 100.0%
73773 100.0%
73701 100.0%
73736 100.0%
73743 100.0%
73705 100.0%
73753 100.0%
73720 100.0%
73727 100.0%
73730 100.0%
73733 100.0%
73703 96.5%
73735 96.3%
74640 74.2%
73754 62.0%
73056 52.5%
73757 26.7%
74630 26.7%
73739 23.1%
73073 17.9%
73761 10.0%
73718 7.0%

Other Counties in Oklahoma

Adair County 40001 Alfalfa County 40003 Atoka County 40005 Beaver County 40007 Beckham County 40009 Blaine County 40011 Bryan County 40013 Caddo County 40015 Canadian County 40017 Carter County 40019 Cherokee County 40021 Choctaw County 40023 Cimarron County 40025 Cleveland County 40027 Coal County 40029 Comanche County 40031 Cotton County 40033 Craig County 40035 Creek County 40037 Custer County 40039 Delaware County 40041 Dewey County 40043 Ellis County 40045 Garvin County 40049 Grady County 40051 Grant County 40053 Greer County 40055 Harmon County 40057 Harper County 40059 Haskell County 40061 Hughes County 40063 Jackson County 40065 Jefferson County 40067 Johnston County 40069 Kay County 40071 Kingfisher County 40073 Kiowa County 40075 Latimer County 40077 Le Flore County 40079 Lincoln County 40081 Logan County 40083 Love County 40085 Major County 40093 Marshall County 40095 Mayes County 40097 McClain County 40087 McCurtain County 40089 McIntosh County 40091 Murray County 40099 Muskogee County 40101 Noble County 40103 Nowata County 40105 Okfuskee County 40107 Oklahoma County 40109 Okmulgee County 40111 Osage County 40113 Ottawa County 40115 Pawnee County 40117 Payne County 40119 Pittsburg County 40121 Pontotoc County 40123 Pottawatomie County 40125 Pushmataha County 40127 Roger Mills County 40129 Rogers County 40131 Seminole County 40133 Sequoyah County 40135 Stephens County 40137 Texas County 40139 Tillman County 40141 Tulsa County 40143 Wagoner County 40145 Washington County 40147 Washita County 40149 Woods County 40151 Woodward County 40153