9.1 NDC 10-Digit to 11-Digit Conversion (5-4-2 Standardization)
Key Takeaways
- The National Drug Code (NDC) is a universal 3-segment product identifier comprising the Labeler Code (manufacturer/distributor), Product Code (drug, strength, dosage form, formulation), and Package Code (package size and type).
- Commercial drug packaging displays 10-digit NDCs in one of exactly three configurations — 4-4-2, 5-3-2, or 5-4-1 — each totaling 10 digits with exactly one short segment; a code that counts to 9 digits has been misread, not shortened.
- HIPAA and electronic billing standards (NCPDP) mandate a standardized 11-digit 5-4-2 format achieved by inserting a single leading zero into whichever segment is short (4-4-2 adds leading 0 to labeler, 5-3-2 adds leading 0 to product, 5-4-1 adds leading 0 to package).
- During technical verification, matching the first two segments (Labeler and Product codes) is life-critical because a product code mismatch indicates the wrong drug, strength, or dosage form.
- Package code differences (the third segment) signify package size variations (e.g., dispensing from a 500-count stock bottle instead of a 100-count bottle) which require billing alignment but do not represent a chemical or clinical entity mismatch.
NDC 10-Digit to 11-Digit Conversion (5-4-2 Standardization)
Core Verification Standard: The National Drug Code (NDC) is the ultimate chemical and packaging identifier in pharmacy practice. Verifying technicians must confirm that the 11-digit standardized NDC on the dispensing label matches the physical stock bottle barcode and electronic pharmacy record character-by-character. A mismatch in the product code segment represents an immediate, life-threatening medication error.
Every commercial pharmaceutical product manufactured, repackaged, or distributed in the United States carries a unique identifier known as the National Drug Code (NDC). Established under the Drug Listing Act of 1972 and overseen by the Food and Drug Administration (FDA), the NDC provides a universal alphanumeric bridge connecting clinical order entry, robotic dispensing, inventory management, and third-party electronic billing.
1. The Three-Segment NDC Architecture
A complete National Drug Code consists of three distinct segments separated by hyphens. Each segment conveys specific regulatory and manufacturing information:
┌─────────────────┬──────────────────┬─────────────────┐
│ Segment 1 │ Segment 2 │ Segment 3 │
│ LABELER CODE │ PRODUCT CODE │ PACKAGE CODE │
│ (Manufacturer) │ (Drug/Strength) │ (Package Size) │
└─────────────────┴──────────────────┴─────────────────┘
Segment Breakdown
| Segment | Name | Assigned By | Description & Verification Significance |
|---|---|---|---|
| Segment 1 | Labeler Code | FDA | Identifies the manufacturer, repackager, relabeler, or private-label distributor. Consists of 4 or 5 digits. Confirms the specific manufacturer selected for multi-source generic products. |
| Segment 2 | Product Code | Labeler (Manufacturer) | Identifies the specific active ingredient, dosage strength, dosage form, and formulation. Consists of 3 or 4 digits. Life-Critical Check: A mismatch here means the wrong drug, wrong strength, or wrong salt form has been picked! |
| Segment 3 | Package Code | Labeler (Manufacturer) | Identifies the trade package size and packaging type (e.g., bottle of 30, bottle of 100, unit-dose blister pack of 100, 10 mL vial). Consists of 1 or 2 digits. Identifies container quantity variations. |
2. 10-Digit Configurations vs. Standardized 11-Digit (5-4-2) Format
When printed on commercial stock bottles, cartons, and unit-dose foils, FDA regulations permit manufacturers to display NDCs in 10-digit formats. Because the three segments have variable lengths, a 10-digit NDC can appear in one of three possible configurations:
- 4-4-2 Configuration: 4-digit Labeler — 4-digit Product — 2-digit Package (
XXXX-XXXX-XX) - 5-3-2 Configuration: 5-digit Labeler — 3-digit Product — 2-digit Package (
XXXXX-XXX-XX) - 5-4-1 Configuration: 5-digit Labeler — 4-digit Product — 1-digit Package (
XXXXX-XXXX-X)
[!IMPORTANT] Sanity-check the digit count first. All three configurations total exactly 10 digits. There is no 5-3-1 configuration, and exactly one segment is ever short. If you count 9 digits, you have misread a segment boundary — go back and re-read the printed code before padding anything, because padding two segments manufactures an NDC that belongs to a different product.
The HIPAA & NCPDP 11-Digit Mandate
While physical drug packaging displays 10 digits, modern pharmacy computer systems, electronic health records (EHR), automated dispensing cabinets (ADCs), and third-party insurance adjudication systems (governed by the National Council for Prescription Drug Programs [NCPDP] and the Health Insurance Portability and Accountability Act [HIPAA]) require an 11-digit standardized format in a strict 5-4-2 pattern (XXXXX-XXXX-XX).
When processed electronically or scanned via barcode, the hyphens are removed, resulting in a continuous 11-digit string (XXXXXXXXXXX).
3. The Zero-Padding Rules (The 5-4-2 Conversion Method)
To convert any 10-digit NDC into the standardized 11-digit (5-4-2) format, pharmacy technicians must apply the Zero-Padding Rule:
[!IMPORTANT] The Zero-Padding Rule: Identify which segment is short of the 5-4-2 standard (Segment 1 needs 5 digits, Segment 2 needs 4 digits, Segment 3 needs 2 digits) and insert a single leading zero ('0') at the very beginning of that short segment. Never place a zero at the end (trailing zero), and never move digits across hyphens.
┌───────────────┬──────────────────────┬────────────────────────┬─────────────────────┐
│ 10-Digit Form │ Short Segment │ Padding Action │ 11-Digit Form (5-4-2)│
├───────────────┼──────────────────────┼────────────────────────┼─────────────────────┤
│ 4-4-2 │ Labeler (4 digits) │ Add leading 0 to Seg 1 │ 0XXXX-XXXX-XX │
│ 5-3-2 │ Product (3 digits) │ Add leading 0 to Seg 2 │ XXXXX-0XXX-XX │
│ 5-4-1 │ Package (1 digit) │ Add leading 0 to Seg 3 │ XXXXX-XXXX-0X │
└───────────────┴──────────────────────┴────────────────────────┴─────────────────────┘
Detailed Conversion Examples
Case A: 4-4-2 Configuration (Short Labeler Segment)
- Stock Bottle NDC:
0777-3105-02(Dista / Prozac 20 mg capsule, 100s) - Segment Analysis: Labeler =
0777(4 digits, needs 5); Product =3105(4 digits, complete); Package =02(2 digits, complete). - Action: Insert a leading
0into the first segment (00777). - 11-Digit Standardized NDC:
00777-3105-02(Electronic:00777310502) - Another Example:
1234-5678-90$\rightarrow$01234-5678-90(01234567890)
Case B: 5-3-2 Configuration (Short Product Segment)
- Stock Bottle NDC:
50090-123-01(A-S Medication / Lisinopril 10 mg tablet, 30s) - Segment Analysis: Labeler =
50090(5 digits, complete); Product =123(3 digits, needs 4); Package =01(2 digits, complete). - Action: Insert a leading
0into the second segment (0123). - 11-Digit Standardized NDC:
50090-0123-01(Electronic:50090012301) - Another Example:
12345-678-90$\rightarrow$12345-0678-90(12345067890)
Case C: 5-4-1 Configuration (Short Package Segment)
- Stock Bottle NDC:
65862-0201-1(Aurobindo / Ciprofloxacin 500 mg tablet, 100s) - Segment Analysis: Labeler =
65862(5 digits, complete); Product =0201(4 digits, complete); Package =1(1 digit, needs 2). - Action: Insert a leading
0into the third segment (01). - 11-Digit Standardized NDC:
65862-0201-01(Electronic:65862020101) - Another Example:
12345-6789-0$\rightarrow$12345-6789-00(12345678900)
4. Master NDC Conversion Reference Matrix
| Commercial Product | Stock Bottle 10-Digit NDC | Configuration | Segment Padded | 11-Digit Standardized NDC | Electronic Billing String |
|---|---|---|---|---|---|
| Lipitor 20 mg (Pfizer) | 0071-0156-23 | 4-4-2 | Labeler (Seg 1) | 00071-0156-23 | 00071015623 |
| Amoxicillin 500 mg (Teva) | 0093-3109-01 | 4-4-2 | Labeler (Seg 1) | 00093-3109-01 | 00093310901 |
| Synthroid 50 mcg (AbbVie) | 0074-6578-11 | 4-4-2 | Labeler (Seg 1) | 00074-6578-11 | 00074657811 |
| Metoprolol Tartrate 25 mg (Caraco) | 57664-123-88 | 5-3-2 | Product (Seg 2) | 57664-0123-88 | 57664012388 |
| Hydrochlorothiazide 25 mg (Accord) | 16729-182-01 | 5-3-2 | Product (Seg 2) | 16729-0182-01 | 16729018201 |
| Gabapentin 300 mg (Ascend) | 67877-223-05 | 5-3-2 | Product (Seg 2) | 67877-0223-05 | 67877022305 |
| Omeprazole 20 mg (Dr. Reddy's) | 55111-0123-5 | 5-4-1 | Package (Seg 3) | 55111-0123-05 | 55111012305 |
| Atorvastatin 40 mg (Lupin) | 68180-0156-1 | 5-4-1 | Package (Seg 3) | 68180-0156-01 | 68180015601 |
[!CAUTION] Common Trap — Trailing Zeros: Never add a trailing zero to the end of a segment. For example, in the 5-4-1 NDC
65862-0201-1, padding the package segment to10instead of01turns a 100-count bottle code into a 1000-count unit-dose code! Leading zero padding preserves the numerical integrity of the code.
5. Verification Role: Segment Matching & Error Interception
In Technician Product Verification (TPV), checking the NDC is a mandatory verification safeguard. Technicians must understand the clinical and legal ramifications of discrepancies across each segment:
┌────────────────────────────────────────────────────────────────────────┐
│ NDC Verification Decision Matrix │
├────────────────────────────────────────────────────────────────────────┤
│ Segment 1 Mismatch (Labeler Code): │
│ • Indicates a DIFFERENT MANUFACTURER was pulled. │
│ • Check Orange Book AB rating and state generic substitution laws. │
│ • If DAW 1, DAW 2, or Narrow Therapeutic Index (NTI): STOP & REJECT! │
│ │
│ Segment 2 Mismatch (Product Code): │
│ • Indicates WRONG DRUG, WRONG STRENGTH, or WRONG DOSAGE FORM. │
│ • CRITICAL PATIENT SAFETY ERROR! Immediate STOP & QUARANTINE! │
│ │
│ Segment 3 Mismatch (Package Code): │
│ • Indicates DIFFERENT PACKAGE SIZE (e.g., 100-count vs 500-count). │
│ • Drug and strength are identical. Confirm package size substitution │
│ policy and adjust inventory / billing claim if required. │
└────────────────────────────────────────────────────────────────────────┘
Clinical Example: Segment 2 Error Interception
A prescription order calls for Amlodipine 5 mg Tablets (NDC: 00093-0315-01). The filling technician accidentally selects a bottle of Amlodipine 10 mg Tablets (NDC: 00093-0316-01).
- Segment 1 matches:
00093(Teva Pharmaceuticals). - Segment 2 differs:
0315(5 mg) vs0316(10 mg). - Segment 3 matches:
01(Bottle of 100). - Verification Action: The verifying technician catches the discrepancy in Segment 2, intercepting a 100% medication overdose before the vial is labeled and dispensed.
6. Barcode Scanning and Manual Fallback Protocols
Modern pharmacy dispensing systems utilize optical barcode scanners to verify NDCs automatically by scanning the stock bottle's Linear UPC-A, GS1 DataBar, or 2D Data Matrix barcode.
The GS1 Global Trade Item Number (GTIN)
Commercial 2D barcodes often encode a 14-digit Global Trade Item Number (GTIN), which incorporates the standardized 11-digit NDC preceded by packaging indicator and country indicator digits:
GTIN-14 (14 digits total):
[ Indicator ] [ 3 ] [ 0 0 0 9 3 3 1 0 9 0 1 ] [ Check ]
1 digit 1 digit 11-digit NDC 1 digit
└────────┬────────┘
Standard 11-Digit NDC (5-4-2)
The leading indicator digit encodes the packaging level (0 for the base saleable unit, 1-8 for higher-level cases), the 3 identifies the code as a US National Drug Code, and the final digit is a computed check digit. Reading the middle 11 digits back out of a scanned GTIN gives you the standardized NDC to compare against the label.
Protocol for Barcode Read Failures
If a barcode is damaged, smudged, or unreadable by the scanner, pharmacy software may allow a manual override.
[!WARNING] Manual Verification Protocol: When performing a manual barcode override, the verifying technician must NEVER copy and paste the NDC from the computer screen. The technician must physically read all 11 digits printed on the stock bottle label character-by-character and manually type or compare each segment against the prescription billing record.
A pharmacy technician is verifying a stock bottle of Lisinopril 20 mg tablets displaying the 10-digit NDC 50090-246-01 on its commercial label. What is the correct standardized 11-digit (5-4-2) NDC string required for electronic billing and barcode verification?
A stock bottle of Prozac 20 mg capsules displays the 10-digit NDC 0777-3105-02. When converting this code into the HIPAA-mandated 11-digit format, which segment must be zero-padded and what is the resulting 11-digit string?
During final product verification of an order for Atorvastatin 20 mg, the verifying technician compares the billed 11-digit NDC (00093-0154-01) on the prescription label against the stock bottle (00093-0155-01). What does this specific segment mismatch indicate, and what is the appropriate verification action?
A manufacturer prints the 10-digit NDC 65862-0201-1 on a commercial bottle of Ciprofloxacin 500 mg tablets. Which rule must be applied to convert this 5-4-1 configuration into the 11-digit 5-4-2 format?