53033 FipsDecoder
06041 County FIPS Code

Marin County

California · County seat: San Rafael · Active county or equivalent

View on CensusDepth ↗

FIPS code 06041 is Marin County, California. With a population of 260,485 (2022 ACS estimate), it ranks #26 in California and #269 nationally. Marin County is part of the San Francisco-Oakland-Fremont, CA. The state FIPS code for California is 06. This code is used in Census Bureau, BLS, EPA, HUD, and USDA federal datasets to identify this county.

County FIPS

06041

State FIPS

06

CA

Population

260,485

2022 ACS · #269 nationally

Density

500.6/mi²

people per sq mile

Land Area

520

sq miles

Urban/Rural

Metro — 1M+ population

RUCC 1

How This FIPS Code Works

06 041
06 = State FIPS (California)
041 = County FIPS

The 5-digit FIPS code 06041 is formed by combining the 2-digit state identifier 06 (California) with the 3-digit county identifier 041. Together they uniquely identify Marin County in every US federal dataset. No two counties share the same 5-digit FIPS code.

Census ACS Data for FIPS 06041

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

Median Household Income

$142,019

ACS B19013_001E

Poverty Rate

7.0%

ACS B17001 (below poverty level)

Median Age

47.4

ACS B01002_001E

Metropolitan Area

Adjacent Counties (4)

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

Federal Datasets Using Code 06041

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

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

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

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

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

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

ZIP Code % in county
94973 100.0%
94903 100.0%
94904 100.0%
94971 100.0%
94901 100.0%
94924 100.0%
94925 100.0%
94929 100.0%
94930 100.0%
94933 100.0%
94937 100.0%
94938 100.0%
94939 100.0%
94940 100.0%
94941 100.0%
94945 100.0%
94946 100.0%
94947 100.0%
94949 100.0%
94950 100.0%
94956 100.0%
94957 100.0%
94960 100.0%
94963 100.0%
94964 100.0%
94965 100.0%
94970 100.0%
94920 99.9%
94952 51.5%

Other Counties in California