DrugDashboards

How to read an NDC

Every drug package in the US carries a National Drug Code — the number that shows up on every page of this site. It looks like a barcode of digits, but each part means something. Once you can read it, a lot of pharmacy data stops being mysterious.

What it is

An NDC (National Drug Code) is a unique ID the FDA assigns to a specific drug product package. Not a molecule, not a brand — a specific package of a specific product from a specific company. Change the bottle size and you get a different NDC. Repackage someone else's pills and you get your own NDC.

The three segments

An NDC is written in three hyphenated parts, e.g. 0002-1433-80:

  • Labeler code (first segment): the company — the manufacturer, repackager, or distributor that puts its name on the package. The FDA assigns it.
  • Product code (middle segment): the specific strength, dosage form, and formulation. 10 mg tablet vs 20 mg tablet = two product codes.
  • Package code (last segment): the package size and type. A bottle of 30 vs a bottle of 90 = two package codes.

Why one drug has dozens of NDCs

Take a single generic like gabapentin 300 mg capsules: every manufacturer has its own labeler code, and each sells it in several bottle sizes — so one strength from one maker is already several NDCs, and the whole drug is hundreds. That's exactly what the tree viewon a drug's market page untangles.

The 10-vs-11-digit mess (the part that trips everyone)

Here's the catch that causes real billing errors. The FDA publishes NDCs as 10 digits, in three different segment layouts depending on the drug — 4-4-2, 5-3-2, or 5-4-1. But insurance billing requires a single 11-digit format: 5-4-2.

To convert, you pad the short segment with a leading zero:

  • 4-4-2 → add a zero to the front: 0002-1433-80 becomes 00002-1433-80
  • 5-3-2 → add a zero to the middle: 50242-040-62 becomes 50242-0040-62
  • 5-4-1 → add a zero to the end: 60575-4112-1 becomes 60575-4112-01

Get this wrong and a claim rejects, or worse, points at the wrong product. It's a genuine, everyday source of pharmacy errors — and it's invisible unless someone tells you the same NDC can be written two ways.

How this site handles it

DrugDashboards normalizes every NDC to the 11-digit billing format on the way in, so the same product always matches itself across pricing, shortages, recalls, and Medicaid data — no matter which format the source used. It's the quiet plumbing that makes everything else line up.

Next: how a drug actually gets to market →