Request a demo

Public dataset · Government, society and transport

USA Names in BigQuery

The usa_names dataset counts US baby names by state, sex and year of birth from 1910 on, built from Social Security card applications. The main table, usa_1910_current, is 186 MiB, so any query costs a fraction of a cent and fits in the free tier.

bigquery-public-data.usa_names · US Social Security Administration · US · Sizes measured November 23, 2026

2tables
349 MiBlogical size
11,863,956rows
under $0.01to scan every column once, on-demand

bigquery-public-data.usa_names was created by the US Social Security Administration from Social Security card applications for births in the United States, according to its description. Each row is a name, a sex, a state and a year of birth, with number, the count of applicants.

The table descriptions limit the counts to births where year, sex and state of birth (the 50 states and the District of Columbia) are known and the name is at least 2 characters long. To protect privacy, the SSA only includes names with at least 5 occurrences. The dataset description also notes that many people born before 1937 never applied for a card, so older years are incomplete.

There are two tables. usa_1910_2013 is a fixed copy from 2016 covering 1910 to 2013. usa_1910_current was last modified in May 2025 and includes later years; use it unless you need to reproduce an old analysis.

Tables and sizes

TableRowsSizeFull scanLayout
usa_1910_current
Name counts by state, sex and year, 1910 onward.
6,311,504186 MiBunder $0.01None
usa_1910_2013
Name counts by state, sex and year, 1910 to 2013 (fixed copy).
5,552,452163 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

Most popular names in 2020

Scans 162 MiB · under $0.01 on-demand

Sums the per-state rows to national totals. Names below 5 per state are missing, so totals slightly undercount rare names.

SELECT name, gender, SUM(number) AS babies
FROM `bigquery-public-data.usa_names.usa_1910_current`
WHERE year = 2020
GROUP BY name, gender
ORDER BY babies DESC
LIMIT 20;

Popularity of one name over time

Scans 162 MiB · under $0.01 on-demand

SELECT year, SUM(number) AS babies
FROM `bigquery-public-data.usa_names.usa_1910_current`
WHERE name = 'Olivia'
  AND gender = 'F'
GROUP BY year
ORDER BY year;

Names given to many girls and many boys since 2000

Scans 162 MiB · under $0.01 on-demand

SELECT
  name,
  SUM(IF(gender = 'F', number, 0)) AS girls,
  SUM(IF(gender = 'M', number, 0)) AS boys
FROM `bigquery-public-data.usa_names.usa_1910_current`
WHERE year >= 2000
GROUP BY name
HAVING girls > 5000 AND boys > 5000
ORDER BY LEAST(girls, boys) DESC
LIMIT 20;

Most popular boys' name in each state in 2020

Scans 186 MiB · under $0.01 on-demand

ROW_NUMBER ranks names inside each state; the outer query keeps the top one.

SELECT state, name, babies
FROM (
  SELECT state, name, SUM(number) AS babies,
    ROW_NUMBER() OVER (PARTITION BY state ORDER BY SUM(number) DESC) AS rn
  FROM `bigquery-public-data.usa_names.usa_1910_current`
  WHERE year = 2020 AND gender = 'M'
  GROUP BY state, name
)
WHERE rn = 1
ORDER BY state;

Querying it cheaply

  • The whole table is 186 MiB, and queries that skip the state column read about 162 MiB. Cost is not a concern here.
  • Prefer usa_1910_current; usa_1910_2013 is a frozen copy and stops at 2013.
  • Because the data rarely changes, repeated identical queries are served from the cache at no charge.

FAQ

How much does it cost to query usa_names?

Each query reads at most 186 MiB, about $0.001 at the $6.25 per TiB on-demand list price, and well inside the free 1 TiB a month.

Is the USA names 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 is a name missing from usa_names for some states or years?

The SSA excludes a name from a state and year when it occurs fewer than 5 times, to protect privacy. Rare names therefore appear in some years and states but not others.

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.