NDC Number Format: How to Read an NDC
Updated
A National Drug Code (NDC) is FDA's three-segment identifier for a drug product: a labeler code, a product code and a package code. Every NDC that FDA assigns today is 10 digits long, in one of three layouts: 4-4-2, 5-3-2 or 5-4-1. Billing uses an 11-digit 5-4-2 version, made by adding a zero to the front of the short segment.
NDC numbers are knowledge area 4.3 of the PTCE content outline (lot numbers, expiration dates and NDC numbers). It sits in the Order Entry & Processing domain, which is 22.5% of the exam. PTCB marks 4.3 as a statement where some or all of the knowledge is calculation-based, and the format conversions below are the calculation side of the topic.
The three segments of an NDC
Read an NDC from left to right. Take the made-up example 12345-678-90:
- 12345 is the labeler code. FDA assigns it to the firm. A labeler is any firm that manufactures (including repackers and relabelers) or distributes the drug under its own name.
- 678 is the product code. It identifies a specific strength, dosage form and formulation from that labeler.
- 90 is the package code. It identifies the package size and type.
Under 21 CFR 207.33, every listed drug must have a unique NDC that identifies its labeler, product, and package size and type. The NDC is a numeric code. Lot number and expiration date are separate items on the label. In the DSCSA product identifier they are listed as their own data elements next to the NDC.
What changes the product code and what changes the package code
A firm must get a new NDC when certain details of a listed drug change (21 CFR 207.35). Which segment changes tells you what kind of change it was.
- New product code: a change in the established or proprietary name, an active ingredient or its strength, the dosage form, prescription or nonprescription status, or distinguishing characteristics such as size, shape, color, imprint, flavor or scoring.
- New package code only: a change only in package size or type. The product code stays the same unless every available package code has already been used with it.
- New labeler code:a repacker or relabeler uses an NDC with its own labeler code for each package it repacks or relabels. A store-brand product sold under a private label distributor's name gets an NDC with that distributor's labeler code.
So a 100-count bottle and a 1,000-count bottle of the same tablet from the same firm share the labeler and product codes and differ only in the package code. A 10 mg and a 20 mg tablet from that firm differ in the product code.
NDC number format: 4-4-2, 5-3-2 and 5-4-1
Today's NDCs have 10 digits. The labeler code is 4 or 5 digits, and the remaining digits are split between the product code and the package code. FDA lists three configurations:
| Configuration | Labeler | Product | Package | Example | 11-digit form |
|---|---|---|---|---|---|
| 4-4-2 | 4 digits | 4 digits | 2 digits | 1234-5678-90 | 01234-5678-90 |
| 5-3-2 | 5 digits | 3 digits | 2 digits | 12345-678-90 | 12345-0678-90 |
| 5-4-1 | 5 digits | 4 digits | 1 digit | 12345-6789-0 | 12345-6789-00 |
Example NDCs on this page are made up to show the pattern. They do not identify real products.
Two rules in 21 CFR 207.33 explain the layouts. A 4-digit labeler code can only be followed by a 4-digit product code and a 2-digit package code, giving 4-4-2. A firm with a 5-digit labeler code uses either 5-3-2 or 5-4-1, and it must use the same one in all of its NDCs.
The regulation also allows 6-digit labeler codes, which would create 11-digit NDCs in 6-3-2 or 6-4-1 layouts once FDA runs out of 5-digit codes. FDA currently assigns only 5-digit labeler codes, and it describes the NDC currently assigned to each listed drug as a unique 10-digit number. The 2033 rule covered below replaces those planned layouts with a single 12-digit format.
Keep the hyphens when you read an NDC. They show where each segment ends, and you need that to know which segment is short.
How to convert a 10-digit NDC to 11 digits
The HIPAA standard 11-digit format is the one used for reimbursement. It always has a 5-digit labeler code, a 4-digit product code and a 2-digit package code (5-4-2). FDA's rule for getting there is to add a leading zero to the applicable short segment. Four steps:
- Read the NDC with its hyphens and count the digits in each of the three segments.
- Compare the count with 5-4-2 and find the one segment that is a digit short.
- Add a zero to the front of that segment. Leave the other two segments as they are.
- Check that the result is 5-4-2, 11 digits in total.
Which segment gets the zero depends only on the configuration:
- 4-4-2: the zero goes in front of the labeler code.
- 5-3-2: the zero goes in front of the product code.
- 5-4-1: the zero goes in front of the package code.
Claims take the 11 digits without hyphens. When a CMS-1500 claim form needs NDC information for Medicaid rebates, CMS instructs billers to enter the qualifier N4 followed immediately by the 11-digit NDC, for example N499999999999.
Worked examples (made-up NDCs)
- 2468-1357-02 is 4-4-2. The labeler code is short, so 2468 becomes 02468. Result: 02468-1357-02, entered on a claim as 02468135702.
- 35791-246-10 is 5-3-2. The product code is short, so 246 becomes 0246. Result: 35791-0246-10, entered as 35791024610.
- 86420-1357-5 is 5-4-1. The package code is short, so 5 becomes 05. Result: 86420-1357-05, entered as 86420135705.
Common conversion mistakes
- Adding the zero to the end of a segment. Writing 35791-246-10 as 35791-2460-10 turns product code 246 into 2460, which is a different code.
- Adding the zero to the front of the whole number. That only works for 4-4-2. For 35791-246-10 it gives 035791-246-10, which is not 5-4-2.
- Dropping a leading zero.FDA's position is that leading zeros are part of the NDC and should not be truncated. 02468-1357-02 entered as 2468135702 has only 10 digits.
- Removing the hyphens before converting. Without hyphens you cannot see where each segment ends, so you cannot tell where the zero goes.
Going from 11 digits back to 10
The reverse is not always possible from the 11 digits alone, because a zero can be a real digit in an NDC. FDA's example: 12345-0678-09 could be 12345-678-09 or 12345-0678-9, depending on the firm's configuration. You need the labeler's configuration, for example from the NDC printed on the package or from the FDA NDC Directory.
Practice now: the Order Entry quiz draws 25 timed questions from the full Order Entry question bank, which includes NDC segment and conversion questions. The Order Entry & Processing domain guide shows what else the domain covers.
How the NDC relates to the barcode
Under 21 CFR 201.25, prescription drugs, biological products, and OTC drugs that are dispensed under an order and commonly used in hospitals must have a barcode on the label that contains, at a minimum, the product's NDC. The current rule calls for a linear barcode that meets EAN/UCC or HIBCC standards, or another format an FDA center director has approved.
Some products are exempt, including prescription drug samples, allergenic extracts, medical gases and radiopharmaceuticals. Prescription drugs that a manufacturer sells directly to patients are also exempt, but versions of the same product sold to or used in hospitals still need the barcode.
Printing the NDC as text is a request. 21 CFR 201.2 says the NDC is requested but not required to appear on drug labels and labeling, including the label of a prescription container furnished to a consumer.
The NDC inside the DSCSA product identifier
Under the Drug Supply Chain Security Act, manufacturers and repackagers put a product identifier on each package of certain prescription drugs. FDA describes it as a standardized graphic that includes the product's NDC and serial number (together called the standardized numerical identifier), the lot number and the expiration date. FDA notes that the DSCSA requires a 2D data matrix barcode on certain prescription drug packages, so some labels carry two barcodes today: the linear NDC barcode and the 2D data matrix.
What an NDC does not tell you
An NDC identifies a product and its package. FDA's NDC Directory page lists what it does not mean:
- FDA approval. Assignment of an NDC does not in any way denote FDA approval. Presenting a product as FDA approved because it has an NDC is misleading and violates federal law.
- FDA verification. Inclusion in the NDC Directory does not mean FDA has verified the information. The labeler that submits the listing is responsible for it.
- That the product is a drug. An NDC does not mean a product is a drug as defined by federal law. Assigning an NDC to a non-drug product is prohibited.
- Insurance coverage. Inclusion in the Directory does not mean Medicare, Medicaid or other payers cover or reimburse the product.
The Directory holds listings for prescription and OTC drugs, approved and unapproved, including repackaged and relabeled drugs, and FDA updates it daily. It does not contain every listed drug. Animal drugs, blood products, drugs manufactured under contract and drugs marketed only as part of a kit are among the products it leaves out.
The 12-digit NDC: 6-4-2 format from March 7, 2033
FDA published a final rule on March 5, 2026 that makes every FDA-assigned NDC 12 digits in one format: a 6-digit labeler code, a 4-digit product code and a 2-digit package code (6-4-2). The rule takes effect on March 7, 2033. At current assignment rates FDA expects to run out of 5-digit labeler codes in about 10 to 15 years. FDA's stated aim is a single NDC format that the whole healthcare industry can use without converting.
- Until March 6, 2033: FDA keeps assigning 10-digit NDCs in the current formats.
- March 7, 2033: FDA assigns new NDCs in 12 digits and converts every existing 10-digit NDC by adding leading zeros to the labeler, product and package codes as needed. FDA treats the converted number as the same NDC in a different format.
- March 7, 2033 through March 6, 2036: a three-year transition period. FDA does not intend to object to 10-digit NDCs on drug labels, and pharmacies and other affected parties should have systems that handle both 10-digit and 12-digit NDCs.
- After March 7, 2036: drugs labeled with a 10-digit NDC may be subject to regulatory action.
| 10-digit NDC (label today) | 11-digit billing (5-4-2) | 12-digit FDA format (6-4-2, from 2033) |
|---|---|---|
| 1234-5678-90 | 01234-5678-90 | 001234-5678-90 |
| 12345-678-90 | 12345-0678-90 | 012345-0678-90 |
| 12345-6789-0 | 12345-6789-00 | 012345-6789-00 |
The rule changes only FDA-assigned NDCs. FDA states that it makes no change to the HIPAA standard 11-digit format used for reimbursement, so the billing format stays 5-4-2 unless that standard is changed separately. FDA intends to publish a database that maps each 10-digit NDC in the NDC Directory to its 12-digit NDC, at least until the end of the transition period.
The rule also changes the barcode requirement. From March 7, 2033, the NDC barcode can be linear or nonlinear, as long as it meets a recognized standard. Based on comments from GS1 US, FDA explains that a 12-digit NDC is too long to be embedded in the GS1 Global Trade Item Number (GTIN) used by current UPC-A and 2D data matrix barcodes. GS1 created an additional data element for the NDC, application identifier 715, and according to GS1 US barcodes that use AI (715) can be read only by camera-based scanners. From March 7, 2033, a single 2D data matrix barcode carrying the 12-digit NDC with the serial number, lot number and expiration date may satisfy both the NDC barcode rule and the DSCSA product identifier requirement.
Common exam traps
- Calling 5-4-2 an FDA configuration.FDA's 10-digit layouts are 4-4-2, 5-3-2 and 5-4-1. 5-4-2 is the 11-digit billing layout.
- Putting the zero at the end of a segment. The zero goes in front of the short segment. A trailing zero changes the code.
- Padding the wrong segment. Count each segment first. Only the short one gets the zero.
- Mixing up product and package changes. A new strength or dosage form means a new product code. A new bottle size alone means a new package code.
- Reading an NDC as FDA approval. FDA says an NDC does not in any way denote approval.
- Getting the 12-digit dates wrong. The rule was published March 5, 2026 and takes effect March 7, 2033. FDA does not intend to object to 10-digit NDCs on labels through March 6, 2036.
Frequently asked questions
What is an NDC number?
An NDC, or National Drug Code, is FDA's identifier for a drug product. It has three segments: a labeler code assigned by FDA, a product code for the strength, dosage form and formulation, and a package code for the package size and type. Today FDA assigns NDCs as 10-digit numbers.
How do you read an NDC number?
Read it left to right as labeler, product, package. In the made-up example 12345-678-90, 12345 is the labeler code, 678 is the product code and 90 is the package code. Count the digits in each segment to find the configuration, which here is 5-3-2.
How do you convert a 10-digit NDC to 11 digits?
Add a zero to the front of the segment that is short of the 5-4-2 layout. For 4-4-2, pad the labeler code. For 5-3-2, pad the product code. For 5-4-1, pad the package code. For example, 12345-678-90 becomes 12345-0678-90. Adding the zero to the end of a segment changes the code.
What is an NDC in medical billing?
Billing uses the HIPAA standard 11-digit NDC, which always has a 5-digit labeler code, a 4-digit product code and a 2-digit package code. The NDC that FDA assigns is 10 digits, so it is converted by adding a leading zero to the short segment before it goes on a claim. When a CMS-1500 claim needs NDC information for Medicaid rebates, CMS instructs billers to enter the qualifier N4 followed immediately by the 11-digit NDC.
Does an NDC mean a drug is FDA approved?
No. FDA states that assigning an NDC does not in any way denote FDA approval, and that implying approval because a product has an NDC is misleading and violates federal law. An NDC also does not mean FDA has verified the listing information, that the product is a drug under federal law, or that Medicare, Medicaid or other payers cover it.
What is the 12-digit NDC and when does it start?
FDA's final rule, published March 5, 2026, makes every FDA-assigned NDC 12 digits in a 6-4-2 format. It takes effect March 7, 2033. Existing NDCs are converted by adding leading zeros, and FDA does not intend to object to 10-digit NDCs on drug labels through March 6, 2036. The rule does not change the HIPAA 11-digit billing format.
Is the lot number part of the NDC?
No. The NDC identifies the labeler, the product, and the package size and type. The lot number and expiration date are separate items. In the DSCSA product identifier, the NDC, serial number, lot number and expiration date are listed as separate data elements.
Where do you find the NDC number?
Look on the manufacturer's label of the stock bottle or carton. Under 21 CFR 201.2 the NDC is requested but not required on drug labels, including the label of a prescription container given to a patient. Products covered by FDA's barcode rule carry the NDC inside the barcode on the label, and FDA publishes listed NDCs in its NDC Directory, which is updated daily.
Keep studying
NDC questions sit in the Order Entry domain next to lot numbers, expiration dates and days supply. Drill them with the Order Entry quiz and use the Order Entry & Processing domain guide to see the rest of the domain. Sig codes are tested in the same domain, so keep the pharmacy abbreviations reference open while you practice. For the supply chain side of the NDC, read the guide to the Drug Supply Chain Security Act.
PTCB Quiz Prep is an independent study resource, not affiliated with the Pharmacy Technician Certification Board or the U.S. Food and Drug Administration. This page is exam reference framing, not legal or billing advice.
