Public dataset · Government, society and transport
Chicago Taxi Trips in BigQuery
The chicago_taxi_trips dataset is one 77.5 GiB table of 212 million taxi trips reported to the City of Chicago, with times, miles, fares, tips, company and community areas. It is not partitioned, so a filter for one year still reads the whole column; select few columns to keep scans to a few GiB.
bigquery-public-data.chicago_taxi_trips holds taxi trip records published by the City of Chicago. The dataset and its table have no description in the metadata; the table was last modified on 2026-11-19, a few days before these sizes were measured.
taxi_trips has one row per trip. trip_start_timestamp and trip_end_timestamp, trip_seconds and trip_miles describe the ride; fare, tips, tolls, extras and trip_total the money, with payment_type; company and taxi_id the operator. Places are given as census tracts, community areas and pickup and dropoff coordinates. unique_key identifies a trip.
Tables and sizes
| Table | Rows | Size | Full scan | Layout |
|---|---|---|---|---|
taxi_tripsOne row per taxi trip. | 212,162,744 | 77.5 GiB | $0.47 | None |
Example queries
Trips per year
Reads one timestamp column, about 2% of the table.
SELECT
EXTRACT(YEAR FROM trip_start_timestamp) AS year,
COUNT(*) AS trips
FROM `bigquery-public-data.chicago_taxi_trips.taxi_trips`
GROUP BY year
ORDER BY year;All trips from 2023 with SELECT * (expensive)
The date filter returns one year, but the table is not partitioned, so every column of every year is read.
SELECT *
FROM `bigquery-public-data.chicago_taxi_trips.taxi_trips`
WHERE trip_start_timestamp >= '2023-01-01'
AND trip_start_timestamp < '2024-01-01';Trips, average fare and distance by company in 2023
The same year, reading five columns. About a tenth of the SELECT * bytes.
SELECT
company,
COUNT(*) AS trips,
ROUND(AVG(fare), 2) AS avg_fare,
ROUND(AVG(trip_miles), 2) AS avg_miles
FROM `bigquery-public-data.chicago_taxi_trips.taxi_trips`
WHERE trip_start_timestamp >= '2023-01-01'
AND trip_start_timestamp < '2024-01-01'
GROUP BY company
ORDER BY trips DESC
LIMIT 20;Tip share by payment type
SAFE_DIVIDE returns NULL instead of failing when a group has no fares.
SELECT
payment_type,
COUNT(*) AS trips,
ROUND(SAFE_DIVIDE(SUM(tips), SUM(fare)), 3) AS tip_share
FROM `bigquery-public-data.chicago_taxi_trips.taxi_trips`
WHERE fare > 0
GROUP BY payment_type
ORDER BY trips DESC;Querying it cheaply
- The table is not partitioned or clustered. Date filters reduce rows, not bytes, so the column list decides the cost.
- Text columns such as
company,pickup_locationanddropoff_locationare heavier than numbers. Leave them out unless you group by them. - If you analyze recent years repeatedly, copy them once into your own table partitioned by
DATE(trip_start_timestamp)(see PARTITION BY) and query that. - Set a maximum bytes billed when exploring, so a stray
SELECT *fails instead of reading 77.5 GiB.
FAQ
How much does it cost to query Chicago taxi trips in BigQuery?
Typical aggregate queries read 2 to 9 GiB. A full SELECT * reads 77.5 GiB, about $0.47 at the $6.25 per TiB on-demand list price before the free TiB, so even careless queries fit in the free 1 TiB a month a few times over.
Is the Chicago taxi trips dataset free?
Yes for storage: the data sits in the bigquery-public-data project and Google pays to store it. You pay for the queries you run from your own project. On-demand, the first 1 TiB scanned each month is free, then you pay per TiB scanned (see BigQuery pricing).
Why does filtering by date not reduce the bytes processed?
taxi_trips has no partitioning, so BigQuery reads the referenced columns for every row and filters afterwards. Only selecting fewer columns, or querying your own partitioned copy, lowers the bytes.
Related datasets
All public datasets · BigQuery cost queries · Pricing calculator
