Converting between 10– and 11– digit NDCs

Posted on Feb 24, 2017

Background

National Drug Code, or NDC, numbers are 10-digit unique identifiers for human drug products marketed in the United States. Each NDC number comprises three sequential sections that describe different aspects of a drug product:

ComponentLengthAssigned byDescribes
Labeler code4–5 digitsFDAmanufacturer, repackager, or relabeler of the product
Product code3–4 digitslabelerdosage characteristics of the drug (including strength and formulation)
Package code1–2 digitslabelerpackage type and size of the product

You may have noticed that each of the different components of an NDC number is variable in length. NDCs did not always have this property, but as more labelers released products onto the market, the numbering space of the labeler code was deemed inadequately small and was expanded at the expense of the other two NDC components (in order to maintain a total of 10 digits). There are three length profiles for NDC numbers that result in a valid, 10-digit code: 4–4–2, 5–3–2, and 5–4–1. The history of NDCs is described in greater depth on the RxTrace blog.

Normally, the three components of the NDC are delimited with dashes. For example, in the NDC 0781–1506–10, it’s clear that 0781 is the labeler code, 1506 is the product code, and 10 is the package code. Often times, though, the dashes are lost, leaving an unseparated, 10-digit code. This is common during barcoding, in which an NDC number is encoded “bare” onto the outside of the product. As you can imagine, the fact that the three NDC components are variable in length often leads to ambiguity in situations where dashes are omitted or otherwise unavailable. For this reason, the 11-digit NDC in the 5–4–2 format is sometimes used as a standard to make it obvious which digits of the NDC correspond to which of the three NDC component sections.

Converting From 10–digit to 11–digit NDC Numbers

If the full NDC number with dashes is known, the conversion from 10 to 11 digits is trivial. Simply add a leading zero to achieve a 5–4–2 format.

If the location of the dashes in the 10-digit NDC is not known, the conversion becomes much more difficult. Because there is no way to determine which section has been shortened, you must first convert the 10-digit NDC into each of the three possible formats (4–4–2, 5–3–2, and 5–4–1). Each of those 10-digit NDCs must then be compared to an NDC database like the FDA’s National Drug Code Directory to determine which is the valid format. That format must then be expanded by the addition of a leading zero to produce a 5–4–2 format. In practice, this looks like this:

Figure 1. Conversion of an ambiguous 10-digit NDC to an 11-digit NDC

Figure 1. Conversion of an ambiguous 10-digit NDC to an 11-digit NDC

Converting From 11–digit to 10–digit NDC Numbers

Occasionally, it may be necessary to convert from the 11-digit NDC back to a 10-digit NDC. The process for doing this is very similar to the one above, but in reverse. You need to first find the correct 10-digit format by removing a leading zero (if present) from each of the three NDC sections and comparing the resulting 10-digit numbers to an NDC database. Once you determine the correct format, you just need to add the dashes back to their original positions.

NDC Conversion Tool

To make life a little easier, you can type a 10– or 11–digit NDC number into the box below and it will automatically convert it to the opposite type for you.

Mode selector10→11
11→10
10-digit NDC
11-digit NDC 

Conclusion

The 10-digit NDC format can lead to ambiguity if dashes are not present, like in the case of scanned barcode data. The 11-digit NDC format removes that ambiguity, but the conversion between formats can be difficult and requires a database of known NDCs numbers.