53033 FipsDecoder
Independent city — not a county. St. John 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.
78020 County FIPS Code

St. John Island

United States Virgin Islands · Independent city (not a county)

View on CensusDepth ↗

FIPS code 78020 is St. John Island, United States Virgin Islands. The state FIPS code for United States Virgin Islands is 78. This code is used in Census Bureau, BLS, EPA, HUD, and USDA federal datasets to identify this county.

County FIPS

78020

State FIPS

78

VI

Urban/Rural

Nonmetro — completely rural

RUCC 9

How This FIPS Code Works

78 020
78 = State FIPS (United States Virgin Islands)
020 = County FIPS

The 5-digit FIPS code 78020 is formed by combining the 2-digit state identifier 78 (United States Virgin Islands) with the 3-digit county identifier 020. Together they uniquely identify St. John Island in every US federal dataset. No two counties share the same 5-digit FIPS code.

Adjacent Counties (1)

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

Federal Datasets Using Code 78020

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

url = "https://api.census.gov/data/2022/acs/acs5"
params = {
    "get":  "NAME,B19013_001E,B01003_001E",
    "for":  "county:020",
    "in":   "state:78",
    "key":  "YOUR_CENSUS_API_KEY",
}
r = requests.get(url, params=params)
data = r.json()  # [[header...], [St. John Island, United States Virgin Islands, income, pop, ...]
SQL — filtering by county FIPS 78020
-- 5-digit combined FIPS (state + county)
SELECT * FROM your_table WHERE county_fips = '78020';

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

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

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

ZIP Codes in St. John 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 St. John Island. Why FIPS ≠ ZIP →

ZIP Code % in county
00830 100.0%

Other Counties in United States Virgin Islands