Understand drug prices
How to read an NDC number
Every prescription medicine sold in the United States carries a National Drug Code, or NDC. It looks like a string of numbers on the box or bottle, but it carries useful information: who made or distributed the product, which exact product it is, and what size of package it came in. Knowing how to read it helps you check recalls, compare manufacturers and make sense of pricing data.
Key takeaways
- An NDC has three segments: labeler, product and package.
- On packages, NDCs are 10 digits long, in one of three formats: 4-4-2, 5-3-2 or 5-4-1.
- Pharmacy billing systems and many databases use an 11-digit 5-4-2 format, made by adding a leading zero to one segment.
- The same drug from different manufacturers has different NDCs.
- Recalls often list specific NDCs and lot numbers, so the NDC helps you check whether your product is affected.
- Having an NDC does not by itself mean a product is FDA-approved.
The three segments
An NDC is made of three parts, usually separated by hyphens on the label:
- Labeler code. Assigned by the FDA, it identifies the company that manufactures, repackages, relabels or distributes the product.
- Product code. Assigned by the labeler, it identifies the specific drug, strength and dosage form.
- Package code. Also assigned by the labeler, it identifies the package size and type - for example, a bottle of 30 or a bottle of 90.
So a bottle of 30 tablets and a bottle of 90 tablets of the same product from the same company will share the first two segments but have different package codes. The same drug made by a different company will have a different labeler code and usually a different product code.
The 10-digit formats
On packaging, NDCs are 10 digits long. Because labeler codes can be 4 or 5 digits, the split between the segments varies. There are three valid formats:
| Format | Labeler | Product | Package | Illustrative example |
|---|---|---|---|---|
| 4-4-2 | 4 digits | 4 digits | 2 digits | 1234-5678-90 |
| 5-3-2 | 5 digits | 3 digits | 2 digits | 12345-678-90 |
| 5-4-1 | 5 digits | 4 digits | 1 digit | 12345-6789-0 |
The example numbers above are made up to show the format. They are not real products.
The hyphens matter. Without them, you cannot always tell which format a 10-digit number uses, and therefore which part is the labeler and which is the product.
The 11-digit billing format
Insurance claims, pharmacy systems and many government data files, including the CMS NADAC file, use an 11-digit NDC in a fixed 5-4-2 format. To convert a 10-digit NDC, you add a leading zero to whichever segment is short:
5-3-2: 12345-678-90 becomes 12345-0678-90
5-4-1: 12345-6789-0 becomes 12345-6789-00
The result is always 5 digits, then 4, then 2. Written without hyphens, it is an 11-digit number such as 01234567890.
This is why the same product can appear with slightly different numbers in different places. The NDC on your box may be 10 digits, while a recall notice, a database or a pharmacy receipt shows the 11-digit version. They are the same code once you account for the padding zero.
How to convert an NDC yourself
- Find the NDC on your package, including the hyphens.
- Count the digits in each segment.
- If the first segment has 4 digits, add a zero to the start of it.
- If the middle segment has 3 digits, add a zero to the start of it.
- If the last segment has 1 digit, add a zero to the start of it.
- Check the result reads 5-4-2. That is the 11-digit NDC.
Only one segment ever needs padding. If your 10-digit code has no hyphens, check the package or ask your pharmacist which format it uses before converting, because adding the zero in the wrong place produces a different code.
Where to find the NDC
- Manufacturer packaging. The NDC is printed on the bottle, carton, vial, pen or blister pack, often near the drug name and usually with "NDC" in front of it.
- Barcode. The barcode on most medicine packages encodes the NDC, which is how pharmacies scan products.
- Pharmacy label. Many pharmacy labels show the NDC of the product dispensed, sometimes in the 11-digit format. If yours does not, the pharmacy can tell you.
- Receipts and statements. Insurance statements and some receipts list the 11-digit NDC.
Why the NDC matters
Recalls
FDA recall notices usually list the affected NDCs and lot numbers. Matching the NDC tells you whether the recall covers your manufacturer and package; matching the lot tells you whether it covers your batch. See what to do if your medication is recalled and check our recalls page.
Manufacturers and shortages
Because each maker has its own NDCs, the code tells you who made your medicine. That is useful during a shortage, when one manufacturer's product may be unavailable while another's is in stock. Our manufacturers page lists every labeler, and each drug page shows all its NDCs.
Pricing
NADAC data is published by NDC. For generics, many NDCs from different makers often share the same group rate; for brands, the rate is tied to the product. Read what is NADAC to understand how that works.
What an NDC does not tell you
An NDC is an identifier, not a seal of approval. Listing a product with the FDA and receiving an NDC does not mean the FDA has approved it. Some unapproved products have NDCs. The NDC also does not tell you the lot or expiration date, which are printed separately.
The FDA has also proposed moving in the future to a single, uniform NDC format, partly because labeler codes are running out. If that happens, the change is expected to be phased in over several years.
Check your price
Once you know exactly which product you have, you can check whether your price is fair for that drug and strength.
Free toolIs my drug price fair? Check any quoteIf you have paid cash recently, you can share what you paid to help others. For more on how prices are built, read how to tell if your drug price is fair.
This guide is general information, not medical or financial advice. Talk to your pharmacist or prescriber about your own medicines.
Questions about this guide
No comments yet. Questions, tips, what worked for you - start the conversation.