53033 FipsDecoder
Independent city — not a county. Swains Island has its own 5-digit FIPS code and appears as a county equivalent in federal datasets. It is administratively separate from any surrounding county.
60040 County FIPS Code

Swains Island

American Samoa · Independent city (not a county)

View on CensusDepth ↗

FIPS code 60040 is Swains Island, American Samoa. The state FIPS code for American Samoa is 60. This code is used in Census Bureau, BLS, EPA, HUD, and USDA federal datasets to identify this county.

County FIPS

60040

State FIPS

60

AS

How This FIPS Code Works

60 040
60 = State FIPS (American Samoa)
040 = County FIPS

The 5-digit FIPS code 60040 is formed by combining the 2-digit state identifier 60 (American Samoa) with the 3-digit county identifier 040. Together they uniquely identify Swains Island in every US federal dataset. No two counties share the same 5-digit FIPS code.

Federal Datasets Using Code 60040

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

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

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

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

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

ZIP Codes in Swains Island

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 Swains Island. Why FIPS ≠ ZIP →

ZIP Code % in county
96799 1.2%

Other Counties in American Samoa