Request a demo

Public dataset · Geography, weather and climate

US Geographic Boundaries in BigQuery

Polygons (GEOGRAPHY) for US states, counties, ZIP code areas, metro areas, congressional districts, urban areas, coastline and railways, plus state and county adjacency lists. 16 tables, 2 GiB, almost all of it geometry: leave the geometry column out and most queries cost under 2 MiB.

bigquery-public-data.geo_us_boundaries · Google Cloud public datasets (boundaries coded with US Census Bureau identifiers) · US · Sizes measured November 23, 2026

16tables
2.0 GiBlogical size
184,174rows
$0.01to scan every column once, on-demand

Each table holds one kind of US boundary as a GEOGRAPHY column (state_geom, county_geom, zip_code_geom and so on) with an interior point for labels and the standard identifiers: FIPS codes (state_fips_code, county_fips_code), geo_id, LSAD and MTFCC feature class codes, and land and water area in square metres. The identifier columns use US Census Bureau coding, which makes it easy to join boundaries to the American Community Survey or any other FIPS-keyed data.

Tables: states, counties, zip_codes, cbsa (metro and micro areas), csa, metropolitan_divisions, cnecta, congress_district_115 and congress_district_116, urban_areas, nws_forecast_regions, coastline, railways, national_outline, and the non-spatial adjacent_states and adjacent_counties.

The dataset has no description in its metadata. Most tables are partitioned by ingestion time and clustered on identifier or geometry columns, as listed below.

Tables and sizes

TableRowsSizeFull scanLayout
zip_codes33,7911.2 GiBunder $0.01Partitioned: Ingestion time (_PARTITIONTIME), daily · Clustered: zip_code_geom, state_code, state_name, county
urban_areas3,601194 MiBunder $0.01Partitioned: Ingestion time (_PARTITIONTIME), daily · Clustered: lsad_name, type
counties3,233182 MiBunder $0.01Partitioned: Ingestion time (_PARTITIONTIME), daily · Clustered: state_fips_code, county_name, csa_fips_code, cbsa_fips_code
railways130,086106 MiBunder $0.01Partitioned: Ingestion time (_PARTITIONTIME), daily · Clustered: full_name, mtfcc_feature_class_code
congress_district_11544493.1 MiBunder $0.01Partitioned: Ingestion time (_PARTITIONTIME), daily · Clustered: state_fips_code, functional_status, lsad_name
congress_district_11644492.0 MiBunder $0.01Partitioned: Ingestion time (_PARTITIONTIME), daily · Clustered: state_fips_code, functional_status, lsad_name
cbsa93874.6 MiBunder $0.01Partitioned: Ingestion time (_PARTITIONTIME), daily · Clustered: csa_geo_id, msa_indicator
nws_forecast_regions3,85357.3 MiBunder $0.01None
coastline4,24835.8 MiBunder $0.01Partitioned: Ingestion time (_PARTITIONTIME), daily · Clustered: name
csa17526.4 MiBunder $0.01Partitioned: Ingestion time (_PARTITIONTIME), daily · Clustered: name, lsad_name
states5621.3 MiBunder $0.01Partitioned: Ingestion time (_PARTITIONTIME), daily · Clustered: state, state_name, region_code, division_code
metropolitan_divisions314.6 MiBunder $0.01Partitioned: Ingestion time (_PARTITIONTIME), daily · Clustered: name, csa_code, cbsa_code
cnecta71.0 MiBunder $0.01Partitioned: Ingestion time (_PARTITIONTIME), daily · Clustered: name_lsad, name, cnecta_fips_code, geo_id
national_outline1726 KiBunder $0.01None
adjacent_counties3,217588 KiBunder $0.01None
adjacent_states494.1 KiBunder $0.01None

Full scan = every column of the table at the on-demand list price of $6.25 per TiB, before your free TiB each month. Selecting fewer columns costs proportionally less. See BigQuery pricing.

Example queries

Which state and county contain a point

Scans 203 MiB · under $0.01 on-demand

Reverse geocoding with ST_CONTAINS against state and county polygons (the point is downtown Chicago). The dry run is an upper bound because both tables are clustered.

SELECT
  s.state_name,
  c.county_name
FROM `bigquery-public-data.geo_us_boundaries.states` AS s
JOIN `bigquery-public-data.geo_us_boundaries.counties` AS c
  ON s.state_fips_code = c.state_fips_code
WHERE ST_CONTAINS(s.state_geom, ST_GEOGPOINT(-87.6298, 41.8781))
  AND ST_CONTAINS(c.county_geom, ST_GEOGPOINT(-87.6298, 41.8781));

ZIP code areas in one state with SELECT * (expensive)

Scans 1.2 GiB · under $0.01 on-demand

Pulls zip_code_geom for every ZIP: 1.15 GiB, the full table.

SELECT *
FROM `bigquery-public-data.geo_us_boundaries.zip_codes`
WHERE state_code = 'NY';

ZIP code areas in one state without geometry (cheap)

Scans 1.6 MiB · under $0.01 on-demand

Same rows, no geometry columns: 1.6 MiB, about 700 times less.

SELECT
  zip_code,
  city,
  county,
  ROUND(area_land_meters / 1e6, 1) AS land_km2
FROM `bigquery-public-data.geo_us_boundaries.zip_codes`
WHERE state_code = 'NY'
ORDER BY land_km2 DESC;

Neighbouring states

Scans 3.0 KiB · under $0.01 on-demand

adjacent_states is a plain lookup table; no spatial functions needed.

SELECT
  state_name,
  neighbors_state
FROM `bigquery-public-data.geo_us_boundaries.adjacent_states`
WHERE state = 'TN';

Largest states by land area

Scans 1.5 KiB · under $0.01 on-demand

Uses the precomputed area_land_meters instead of ST_AREA on the polygons.

SELECT
  state_name,
  ROUND(area_land_meters / 1e6) AS land_km2,
  ROUND(area_water_meters / 1e6) AS water_km2
FROM `bigquery-public-data.geo_us_boundaries.states`
ORDER BY land_km2 DESC
LIMIT 10;

Querying it cheaply

  • Geometry is almost the whole size: zip_codes is 1.15 GiB, but its non-geometry columns for one state are 1.6 MiB. Select geometry only when you run a spatial function on it.
  • Use the stored area_land_meters and interior point columns (int_point_lat, internal_point_geom) instead of computing ST_AREA or ST_CENTROID on large polygons.
  • Most tables are clustered. Dry runs on clustered tables return an upper bound; the bytes actually billed can be lower when filters match the clustering columns. See clustered tables.
  • Spatial joins against zip_codes or urban_areas are slot-heavy even when the bytes are small. Filter by state_fips_code first so fewer polygons are compared.

FAQ

How much does it cost to query US boundaries in BigQuery?

The whole dataset is 2 GiB, so no query can scan more. Queries that skip geometry columns usually bill the 10 MB minimum. Polygon queries on zip_codes or counties scan up to 1.15 GiB and 182 MiB.

Is the geo_us_boundaries dataset free?

Google pays for storing public datasets, so you never pay storage for them. You pay only for the bytes your queries scan, billed to your own project at the on-demand rate, and the first 1 TiB scanned each month is free. See BigQuery pricing.

How do I find which county a latitude and longitude is in?

Use ST_CONTAINS(county_geom, ST_GEOGPOINT(longitude, latitude)) on the counties table. Note that ST_GEOGPOINT takes longitude first.

All public datasets · BigQuery cost queries · Pricing calculator

Cut BigQuery spend without guessing

Masthead attributes compute and storage cost to every project, user, pipeline and table, finds unused and dead-end tables, and shows where editions or on-demand pricing is cheaper. Mnemonic cut its BigQuery compute cost by 20% within 24 hours of onboarding.