Request a demo

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.

bigquery-public-data.epa_historical_air_quality · US Environmental Protection Agency (Air Quality System Data Mart) · US · Sizes measured November 23, 2026

32tables
516 GiBlogical size
2,474,544,727rows
$3.15to scan every column once, on-demand

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

TableRowsSizeFull scanLayout
o3_hourly_summary614,461,951110 GiB$0.67None
nonoxnoy_hourly_summary362,101,21973.5 GiB$0.45None
wind_hourly_summary265,438,14952.2 GiB$0.32None
voc_hourly_summary164,888,35736.9 GiB$0.23None
temperature_hourly_summary178,718,78436.6 GiB$0.22None
so2_hourly_summary148,505,57228.7 GiB$0.18None
no2_hourly_summary107,443,70321.6 GiB$0.13None
co_hourly_summary106,282,62221.1 GiB$0.13None
pm25_speciation_daily_summary55,255,91917.7 GiB$0.11None
rh_and_dp_hourly_summary84,457,10617.6 GiB$0.11None
voc_daily_summary46,680,88214.8 GiB$0.09None
pm25_nonfrm_hourly_summary59,245,34814.6 GiB$0.09None
pm10_hourly_summary56,494,38512.6 GiB$0.08None
pm25_frm_hourly_summary52,527,54912.5 GiB$0.08None
pressure_hourly_summary56,200,61710.5 GiB$0.06None
so2_daily_summary12,788,3933.7 GiB$0.02None
o3_daily_summary11,488,7073.3 GiB$0.02None
wind_daily_summary11,152,6673.2 GiB$0.02None
hap_daily_summary9,956,6593.2 GiB$0.02None
co_daily_summary9,136,9342.7 GiB$0.02None
nonoxnoy_daily_summary8,135,3712.4 GiB$0.01None
pm25_frm_daily_summary7,304,6252.4 GiB$0.01None
temperature_daily_summary7,485,0522.2 GiB$0.01None
air_quality_annual_summary4,086,6992.0 GiB$0.01None
pm25_nonfrm_daily_summary5,642,2041.8 GiB$0.01None
pm10_daily_summary5,029,5351.6 GiBunder $0.01None
pm25_speciation_hourly_summary6,830,2241.6 GiBunder $0.01None
no2_daily_summary4,670,9261.5 GiBunder $0.01None
hap_hourly_summary5,189,7641.1 GiBunder $0.01None
rh_and_dp_daily_summary3,686,5991.1 GiBunder $0.01None
pressure_daily_summary2,352,031679 MiBunder $0.01None
lead_daily_summary906,174298 MiBunder $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

Average PM2.5 by state in 2023

Scans 290 MiB · under $0.01 on-demand

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)

Scans 20.8 GiB · $0.13 on-demand

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)

Scans 397 MiB · under $0.01 on-demand

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

Scans 253 MiB · under $0.01 on-demand

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

Scans 139 MiB · under $0.01 on-demand

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_summary is 110 GiB, nonoxnoy_hourly_summary 73.5 GiB, wind_hourly_summary 52.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_local and clustered by state_code and county_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.

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.