Request a demo

Public dataset · Health and life sciences

NLM RxNorm Drug Vocabulary in BigQuery

RxNorm, the US National Library of Medicine's normalized names and codes for clinical drugs, with one set of tables per monthly release from April 2017 to November 2026. 988 tables, 125 GiB; a single release is about 1.3 GiB. The _current tables stopped at December 2022.

bigquery-public-data.nlm_rxnorm · US National Library of Medicine (RxNorm) · US · Sizes measured November 23, 2026

988tables
1.5 GiBin the tables below
19,687,630rows
under $0.01to scan every column once, on-demand

RxNorm links drug names from many vocabularies to normalized concepts (rxcui). The BigQuery dataset loads each monthly release as a set of tables named <file>_<MM>_<YY>, mirroring the RxNorm RRF files: rxnconso (concept names and sources), rxnrel (relationships such as ingredient to brand name), rxnsat (attributes), rxnsty (semantic types), rxncui and rxncuichange (concept history), rxnatomarchive (retired atoms), rxnsab (source vocabularies), rxndoc (documentation of codes), and rxn_all_pathways (precomputed paths between concept types, only through December 2022).

The newest release when we measured was _11_26 (November 2026). There is also a set of _current tables, but they were last modified on 2022-12-05 and have the same row counts as the _12_22 tables: they are not the current release. Query the latest dated suffix instead.

In rxnconso, sab = 'RXNORM' restricts to RxNorm's own normalized names, and tty is the term type: IN ingredient, BN brand name, SCD semantic clinical drug, SBD semantic branded drug, and others.

Tables and sizes

The dataset has 988 tables; the main ones are listed.

TableRowsSizeFull scanLayout
rxnsat_11_267,769,848559 MiBunder $0.01None
rxnrel_11_267,509,763505 MiBunder $0.01None
rxn_all_pathways_12_221,655,903178 MiBunder $0.01None
rxnconso_11_261,214,380125 MiBunder $0.01None
rxnatomarchive_11_26373,58481.6 MiBunder $0.01None
rxnconso_current637,97772.7 MiBunder $0.01None
rxnsty_11_26492,41820.2 MiBunder $0.01None
rxncui_11_2630,2691.8 MiBunder $0.01None
rxndoc_11_263,445224 KiBunder $0.01None
rxnsab_11_261310.1 KiBunder $0.01None
rxncuichange_11_26303.0 KiBunder $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

Look up a drug's RxNorm concepts by name

Scans 85.7 MiB · under $0.01 on-demand

Ingredient, clinical drug and branded drug names for atorvastatin in the November 2026 release.

SELECT
  rxcui,
  tty,
  str
FROM `bigquery-public-data.nlm_rxnorm.rxnconso_11_26`
WHERE sab = 'RXNORM'
  AND LOWER(str) LIKE 'atorvastatin%'
  AND tty IN ('IN', 'SCD', 'SBD')
ORDER BY tty, str;

Brand names for an ingredient

Scans 246 MiB · under $0.01 on-demand

Follows has_tradename and tradename_of relationships in rxnrel from the metformin ingredient to brand name (BN) concepts. Both directions are listed so the query does not depend on which side of the pair holds the ingredient.

WITH ingredient AS (
  SELECT rxcui
  FROM `bigquery-public-data.nlm_rxnorm.rxnconso_11_26`
  WHERE sab = 'RXNORM'
    AND tty = 'IN'
    AND LOWER(str) = 'metformin'
)
SELECT DISTINCT
  brand.rxcui,
  brand.str AS brand_name
FROM `bigquery-public-data.nlm_rxnorm.rxnrel_11_26` AS r
JOIN ingredient
  ON r.rxcui1 = ingredient.rxcui
JOIN `bigquery-public-data.nlm_rxnorm.rxnconso_11_26` AS brand
  ON brand.rxcui = r.rxcui2
WHERE r.rela IN ('has_tradename', 'tradename_of')
  AND brand.sab = 'RXNORM'
  AND brand.tty = 'BN'
ORDER BY brand_name;

Concept count in every release (expensive)

Scans 1.4 GiB · under $0.01 on-demand

The wildcard rxnconso_* without a suffix filter reads all 104 rxnconso tables (every release plus _current): 1.36 GiB.

SELECT
  _TABLE_SUFFIX AS release,
  COUNT(DISTINCT rxcui) AS concepts
FROM `bigquery-public-data.nlm_rxnorm.rxnconso_*`
WHERE sab = 'RXNORM'
GROUP BY release
ORDER BY release;

Concept count in the 2026 releases (cheap)

Scans 203 MiB · under $0.01 on-demand

_TABLE_SUFFIX LIKE '%26' keeps only the 2026 tables: 203 MiB.

SELECT
  _TABLE_SUFFIX AS release,
  COUNT(DISTINCT rxcui) AS concepts
FROM `bigquery-public-data.nlm_rxnorm.rxnconso_*`
WHERE _TABLE_SUFFIX LIKE '%26'
  AND sab = 'RXNORM'
GROUP BY release
ORDER BY release;

Atoms per term type in the latest release

Scans 14.1 MiB · under $0.01 on-demand

Reads two short columns of rxnconso_11_26: 14.1 MiB.

SELECT
  tty,
  COUNT(*) AS atoms
FROM `bigquery-public-data.nlm_rxnorm.rxnconso_11_26`
WHERE sab = 'RXNORM'
GROUP BY tty
ORDER BY atoms DESC;

Querying it cheaply

  • Query one dated release, such as rxnconso_11_26 (125 MiB), not a wildcard. A single release across all nine files is about 1.3 GiB.
  • Do not use the _current tables for current data: they stopped at the December 2022 release.
  • Wildcards like rxnconso_* also match rxnconso_current. The suffix format is MM_YY, so filter years with LIKE '%26' rather than BETWEEN, which would compare months first.
  • str (the drug name) is the heaviest column in rxnconso. Filter on rxcui, sab and tty where you can, and read names only for the final result.

FAQ

How much does it cost to query RxNorm in BigQuery?

A lookup on one release scans tens to a few hundred MiB. Relationship joins on rxnrel and rxnconso scan about 250 MiB. Scanning every release of rxnconso is 1.36 GiB for three columns. All of this fits easily in the monthly free TiB.

Is the nlm_rxnorm 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 RxNorm tables are the latest?

The tables with the newest MM_YY suffix, _11_26 (November 2026) when we measured. The _current tables were last modified in December 2022 and match the _12_22 release, despite their name.

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.