Public dataset · Government, society and transport
US Census Bureau American Community Survey (ACS) in BigQuery
American Community Survey estimates (population, income, poverty, rent, education, commuting, housing) for US states, counties, metro areas, places, ZIP code areas, tracts and block groups, 2007 to 2021. 278 small, wide tables totalling 6.2 GiB: most queries bill the 10 MB minimum.
The American Community Survey is the Census Bureau's ongoing survey of US households. This dataset has one table per geography, release year and estimate period, named <geography>_<year>_<1yr|3yr|5yr>: for example county_2020_5yr or state_2021_1yr. 1-year estimates exist only for larger areas; 5-year estimates cover every geography down to census tracts (censustract_*) and block groups (blockgroup_*). The dataset description reads "Data Updated On: 2022-10-06", and the newest tables are the 2021 1-year and 2020 5-year releases.
Geographies: state, county, cbsa (metro and micro areas), place, puma, congressionaldistrict, schooldistrictelementary, schooldistrictsecondary, schooldistrictunified, zcta5/zcta/zip_codes (ZIP code tabulation areas), censustract and blockgroup. Every table is keyed by geo_id and has 155 to 252 columns, almost all FLOAT, such as total_pop, median_income, income_per_capita, poverty, median_rent, unemployed_pop and commute time buckets. Column sets differ slightly between years, so check the schema before comparing releases.
Tables and sizes
The dataset has 278 tables; the main ones are listed.
| Table | Rows | Size | Full scan | Layout |
|---|---|---|---|---|
blockgroup_2018_5yr | 220,333 | 259 MiB | under $0.01 | None |
censustract_2020_5yr | 85,395 | 149 MiB | under $0.01 | None |
zcta_2020_5yr | 33,120 | 59.2 MiB | under $0.01 | None |
zip_codes_2018_5yr | 33,120 | 57.7 MiB | under $0.01 | None |
place_2020_5yr | 31,908 | 56.9 MiB | under $0.01 | None |
county_2020_5yr | 3,221 | 5.9 MiB | under $0.01 | None |
cbsa_2020_5yr | 939 | 1.7 MiB | under $0.01 | None |
county_2021_1yr | 841 | 1.4 MiB | under $0.01 | None |
congressionaldistrict_2020_5yr | 440 | 834 KiB | under $0.01 | None |
state_2020_5yr | 52 | 99.3 KiB | under $0.01 | None |
state_2021_1yr | 52 | 98.5 KiB | under $0.01 | None |
Example queries
Median household income by state
From the 2021 1-year estimates. Three columns of a 52-row table: about 1 KiB, billed as 10 MB.
SELECT
geo_id,
median_income,
total_pop
FROM `bigquery-public-data.census_bureau_acs.state_2021_1yr`
ORDER BY median_income DESC;Counties with the highest poverty rate
poverty divided by the population for whom poverty status is determined, for counties of 100,000 people or more, from the 2020 5-year release.
SELECT
geo_id,
total_pop,
ROUND(poverty / NULLIF(pop_determined_poverty_status, 0) * 100, 1) AS poverty_rate_pct
FROM `bigquery-public-data.census_bureau_acs.county_2020_5yr`
WHERE total_pop >= 100000
ORDER BY poverty_rate_pct DESC
LIMIT 10;Block groups in one county with SELECT * (expensive)
All 155 columns of the 2018 block group table, filtered to Manhattan (36061): 259 MiB, the full table.
SELECT *
FROM `bigquery-public-data.census_bureau_acs.blockgroup_2018_5yr`
WHERE geo_id LIKE '36061%';Block groups in one county, three columns (cheap)
Same rows with only geo_id, total_pop and median_income: 6.2 MiB, 40 times less.
SELECT
geo_id,
total_pop,
median_income
FROM `bigquery-public-data.census_bureau_acs.blockgroup_2018_5yr`
WHERE geo_id LIKE '36061%';Compare one county across releases
A wildcard over county_* with _TABLE_SUFFIX IN (...) reads only the three releases named (San Francisco County, 06075).
SELECT
_TABLE_SUFFIX AS release,
median_income,
median_rent
FROM `bigquery-public-data.census_bureau_acs.county_*`
WHERE _TABLE_SUFFIX IN ('2010_5yr', '2015_5yr', '2020_5yr')
AND geo_id = '06075'
ORDER BY release;Querying it cheaply
- The whole dataset is 6.2 GiB, and most tables are under 10 MiB, so many queries bill the 10 MB minimum per query. The largest tables are the block group releases (about 245 to 280 MiB each) and the census tract releases (about 130 to 150 MiB each).
- Tables are wide (155 to 252 columns) and not partitioned or clustered.
SELECT *on a tract or block group table reads all of it; naming three or four columns cuts the scan by 95% or more. - The wildcard
county_*matches 1-year, 3-year and 5-year tables. Restrict_TABLE_SUFFIX, for exampleLIKE '%_5yr', or you mix estimate periods and pay for tables you did not mean to read. - To map results, join on
geo_idto US Geographic Boundaries and select the geometry column only in the final step.
FAQ
How much does it cost to query the Census ACS dataset in BigQuery?
Very little. The largest single table is under 300 MiB and the whole dataset is 6.2 GiB, so even careless queries stay far inside the 1 TiB free tier. Small state and county queries bill the 10 MB minimum.
Is the census_bureau_acs 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.
What is the difference between the 1yr and 5yr tables?
1-year tables are estimates from one year of survey data and exist only for larger geographies, such as counties with enough population. 5-year tables pool five years of responses, so they are less current but cover every county, tract and block group.
Does the dataset have the latest ACS release?
No. The dataset description says it was updated on 2022-10-06, and the newest tables are *_2021_1yr and *_2020_5yr. For later releases use the Census Bureau's own data portal.
Related datasets
All public datasets · BigQuery cost queries · Pricing calculator
