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.
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.
| Table | Rows | Size | Full scan | Layout |
|---|---|---|---|---|
rxnsat_11_26 | 7,769,848 | 559 MiB | under $0.01 | None |
rxnrel_11_26 | 7,509,763 | 505 MiB | under $0.01 | None |
rxn_all_pathways_12_22 | 1,655,903 | 178 MiB | under $0.01 | None |
rxnconso_11_26 | 1,214,380 | 125 MiB | under $0.01 | None |
rxnatomarchive_11_26 | 373,584 | 81.6 MiB | under $0.01 | None |
rxnconso_current | 637,977 | 72.7 MiB | under $0.01 | None |
rxnsty_11_26 | 492,418 | 20.2 MiB | under $0.01 | None |
rxncui_11_26 | 30,269 | 1.8 MiB | under $0.01 | None |
rxndoc_11_26 | 3,445 | 224 KiB | under $0.01 | None |
rxnsab_11_26 | 13 | 10.1 KiB | under $0.01 | None |
rxncuichange_11_26 | 30 | 3.0 KiB | under $0.01 | None |
Example queries
Look up a drug's RxNorm concepts by name
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
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)
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)
_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
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
_currenttables for current data: they stopped at the December 2022 release. - Wildcards like
rxnconso_*also matchrxnconso_current. The suffix format isMM_YY, so filter years withLIKE '%26'rather thanBETWEEN, which would compare months first. str(the drug name) is the heaviest column inrxnconso. Filter onrxcui,sabandttywhere 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.
Related datasets
All public datasets · BigQuery cost queries · Pricing calculator
