Public dataset · Geography, weather and climate
EPA Historical Air Quality in BigQuery
US EPA air quality measurements from the Air Quality System: daily and hourly summaries per monitor for ozone, PM2.5, PM10, NO2, SO2, CO, lead, VOCs and weather. 32 tables, 516 GiB; the hourly tables are the expensive ones (ozone hourly alone is 110 GiB), so start from the daily summaries.
The data comes from the EPA Air Quality System (AQS) Data Mart, available at epa.gov/airdata, as the dataset description says. Tables come in pairs per measurement: <pollutant>_daily_summary with one row per monitor per day (mean, first max value and hour, AQI for criteria pollutants) and <pollutant>_hourly_summary with one row per monitor per hour. air_quality_annual_summary has one row per monitor, parameter and year with percentiles and exceedance counts.
Measurements cover the criteria pollutants (o3, pm25_frm, pm25_nonfrm, pm10, no2, so2, co, lead), PM2.5 speciation, hazardous air pollutants (hap), voc, nonoxnoy, and weather (temperature, pressure, wind, rh_and_dp). A monitor is identified by state_code, county_code, site_num, parameter_code and poc; names (state_name, county_name, cbsa_name) are included so you rarely need a join.
The table metadata showed modifications between July and November 2026, so the tables are still being refreshed.
Tables and sizes
| Table | Rows | Size | Full scan | Layout |
|---|---|---|---|---|
o3_hourly_summary | 614,461,951 | 110 GiB | $0.67 | None |
nonoxnoy_hourly_summary | 362,101,219 | 73.5 GiB | $0.45 | None |
wind_hourly_summary | 265,438,149 | 52.2 GiB | $0.32 | None |
voc_hourly_summary | 164,888,357 | 36.9 GiB | $0.23 | None |
temperature_hourly_summary | 178,718,784 | 36.6 GiB | $0.22 | None |
so2_hourly_summary | 148,505,572 | 28.7 GiB | $0.18 | None |
no2_hourly_summary | 107,443,703 | 21.6 GiB | $0.13 | None |
co_hourly_summary | 106,282,622 | 21.1 GiB | $0.13 | None |
pm25_speciation_daily_summary | 55,255,919 | 17.7 GiB | $0.11 | None |
rh_and_dp_hourly_summary | 84,457,106 | 17.6 GiB | $0.11 | None |
voc_daily_summary | 46,680,882 | 14.8 GiB | $0.09 | None |
pm25_nonfrm_hourly_summary | 59,245,348 | 14.6 GiB | $0.09 | None |
pm10_hourly_summary | 56,494,385 | 12.6 GiB | $0.08 | None |
pm25_frm_hourly_summary | 52,527,549 | 12.5 GiB | $0.08 | None |
pressure_hourly_summary | 56,200,617 | 10.5 GiB | $0.06 | None |
so2_daily_summary | 12,788,393 | 3.7 GiB | $0.02 | None |
o3_daily_summary | 11,488,707 | 3.3 GiB | $0.02 | None |
wind_daily_summary | 11,152,667 | 3.2 GiB | $0.02 | None |
hap_daily_summary | 9,956,659 | 3.2 GiB | $0.02 | None |
co_daily_summary | 9,136,934 | 2.7 GiB | $0.02 | None |
nonoxnoy_daily_summary | 8,135,371 | 2.4 GiB | $0.01 | None |
pm25_frm_daily_summary | 7,304,625 | 2.4 GiB | $0.01 | None |
temperature_daily_summary | 7,485,052 | 2.2 GiB | $0.01 | None |
air_quality_annual_summary | 4,086,699 | 2.0 GiB | $0.01 | None |
pm25_nonfrm_daily_summary | 5,642,204 | 1.8 GiB | $0.01 | None |
pm10_daily_summary | 5,029,535 | 1.6 GiB | under $0.01 | None |
pm25_speciation_hourly_summary | 6,830,224 | 1.6 GiB | under $0.01 | None |
no2_daily_summary | 4,670,926 | 1.5 GiB | under $0.01 | None |
hap_hourly_summary | 5,189,764 | 1.1 GiB | under $0.01 | None |
rh_and_dp_daily_summary | 3,686,599 | 1.1 GiB | under $0.01 | None |
pressure_daily_summary | 2,352,031 | 679 MiB | under $0.01 | None |
lead_daily_summary | 906,174 | 298 MiB | under $0.01 | None |
Example queries
Average PM2.5 by state in 2023
From the FRM daily summary (2.4 GiB table). Reads four columns: 290 MiB.
SELECT
state_name,
ROUND(AVG(arithmetic_mean), 2) AS avg_pm25_ugm3,
COUNT(DISTINCT CONCAT(state_code, county_code, site_num)) AS sites
FROM `bigquery-public-data.epa_historical_air_quality.pm25_frm_daily_summary`
WHERE EXTRACT(YEAR FROM date_local) = 2023
GROUP BY state_name
ORDER BY avg_pm25_ugm3 DESC
LIMIT 10;Daily peak ozone in Los Angeles County from hourly data (expensive)
Summer 2023 from o3_hourly_summary. The date filter does not prune anything because the table is not partitioned: 20.76 GiB.
SELECT
date_local,
MAX(sample_measurement) AS max_hourly_o3_ppm
FROM `bigquery-public-data.epa_historical_air_quality.o3_hourly_summary`
WHERE state_name = 'California'
AND county_name = 'Los Angeles'
AND date_local BETWEEN '2023-06-01' AND '2023-08-31'
GROUP BY date_local
ORDER BY date_local;The same daily peak from the daily summary (cheap)
first_max_value in o3_daily_summary is the highest value of the day per monitor, so the daily table answers the same question for 397 MiB, about 50 times less.
SELECT
date_local,
MAX(first_max_value) AS max_hourly_o3_ppm
FROM `bigquery-public-data.epa_historical_air_quality.o3_daily_summary`
WHERE state_name = 'California'
AND county_name = 'Los Angeles'
AND date_local BETWEEN '2023-06-01' AND '2023-08-31'
GROUP BY date_local
ORDER BY date_local;Metro areas with the most days of PM2.5 AQI over 100 in 2023
Counts distinct days per CBSA where any FRM monitor reported an AQI above 100.
SELECT
cbsa_name,
COUNT(DISTINCT date_local) AS days_aqi_over_100
FROM `bigquery-public-data.epa_historical_air_quality.pm25_frm_daily_summary`
WHERE date_local BETWEEN '2023-01-01' AND '2023-12-31'
AND aqi > 100
GROUP BY cbsa_name
ORDER BY days_aqi_over_100 DESC
LIMIT 10;National NO2 trend from the annual summary
The annual summary (2 GiB) is the cheapest way to look at long trends across all monitors.
SELECT
year,
ROUND(AVG(arithmetic_mean), 4) AS avg_no2_ppb
FROM `bigquery-public-data.epa_historical_air_quality.air_quality_annual_summary`
WHERE parameter_name = 'Nitrogen dioxide (NO2)'
GROUP BY year
ORDER BY year;Querying it cheaply
- No table in this dataset is partitioned or clustered. A
WHERE date_local BETWEEN ...filter does not reduce bytes; you pay for every row of each column you reference. - The hourly tables are the cost trap:
o3_hourly_summaryis 110 GiB,nonoxnoy_hourly_summary73.5 GiB,wind_hourly_summary52.2 GiB. Use the matching daily summary whenever a daily max or mean answers the question. - For multi-year trends,
air_quality_annual_summary(2 GiB) already has yearly means and percentiles per monitor. - If you need hourly data for one region repeatedly, extract it once into your own table partitioned by
date_localand clustered bystate_codeandcounty_code. - Selecting all 32 tables with
SELECT *would scan 516 GiB, about half of the monthly free tier.
FAQ
How much does it cost to query EPA air quality data in BigQuery?
Daily summary queries usually scan 100 to 400 MiB. Hourly tables scan 1 to 110 GiB because they are not partitioned, so a single careless hourly query can use a tenth of the monthly free TiB.
Is the EPA historical air quality 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.
Which table should I use for PM2.5?
pm25_frm_daily_summary holds measurements from Federal Reference Method monitors, the ones used for regulatory comparisons. pm25_nonfrm_daily_summary holds other continuous monitors, and pm25_speciation_* breaks PM2.5 into its chemical components.
Why is my date filter not making the query cheaper?
The tables are not partitioned, so BigQuery must read the full column to evaluate the filter. Only selecting fewer columns, or switching to a smaller daily or annual table, reduces bytes. See partitioned tables.
Related datasets
All public datasets · BigQuery cost queries · Pricing calculator
