Pharmacy Technician Certification Exam (PTCE) • Order Entry and Processing

NDC Verification — Interpret and verify National Drug Code (NDC) numbers

Master the 10-digit identification system that uniquely identifies every drug product dispensed in the United States.

A prescription bottle with barcode and certification badge for pharmacy technicians.
Inside this lesson 10 sections 5 questions 6 figures

SECTION 1

Historical Context & Motivation

Before standardized drug identification existed, pharmacies, hospitals, and wholesalers relied on inconsistent naming conventions and proprietary catalog numbers to track medications. This created dangerous opportunities for dispensing errors, counterfeit infiltration, and supply-chain confusion—particularly as the U.S. pharmaceutical market expanded rapidly in the mid-twentieth century. The need for a universal, machine-readable code became urgent as automated billing, inventory management, and drug-utilization review emerged as critical components of modern pharmacy practice.

The National Drug Code (NDC) system was created by the Food and Drug Administration (FDA) to serve as a universal product identifier for human drugs in the United States. Codified under the Drug Listing Act of 1972, the NDC assigns a unique numeric code to every commercially available drug product, enabling precise identification throughout the medication distribution chain—from manufacturer to patient. For pharmacy technicians, the ability to interpret, verify, and cross-reference NDC numbers is not merely a regulatory formality; it is a frontline safeguard against medication errors.

1969 • FDA Initiates Drug Listing

The FDA begins developing a national drug listing system to catalog every drug product marketed in the U.S., laying the groundwork for the NDC.

1972 • Drug Listing Act Enacted

Congress passes the Drug Listing Act, requiring all drug manufacturers and repackagers to register products with the FDA using a standardized NDC format.

1980s • Barcode Integration Begins

NDC numbers are increasingly embedded in barcodes on drug packaging, enabling automated point-of-sale scanning and inventory tracking in pharmacy settings.

2004 • FDA Barcode Rule

The FDA mandates linear barcodes containing NDC numbers on most prescription drug labels, strengthening bedside medication verification and reducing dispensing errors in hospitals.

2013–Present • DSCSA & Serialization Era

The Drug Supply Chain Security Act (DSCSA) builds upon the NDC framework, requiring serialized product identifiers to combat counterfeit drugs while maintaining NDC as the core product identification layer.

Understanding the NDC system therefore answers a critical question in pharmacy practice: How can a single numeric code reliably identify the exact manufacturer, product formulation, and package size of any drug? The sections that follow deconstruct each component of the NDC, illustrate its structure visually, and provide the verification skills required for the PTCE and daily pharmacy operations.

SECTION 2

Core Principles & Definitions

The NDC number is a 10-digit, 3-segment numeric identifier assigned to each drug product listed under the Drug Listing Act. Although frequently displayed in an 11-digit format with hyphens (due to zero-padding), the underlying code always contains exactly 10 digits distributed across three segments: the Labeler Code, the Product Code, and the Package Code. Each segment encodes a distinct piece of information, and together they specify the drug down to its precise commercial package.

1

Labeler Code (Segment 1)

Identifies the firm that manufactures, repacks, or distributes the drug. Assigned directly by the FDA. Typically 4 or 5 digits; 5-digit labeler codes were introduced as the number of registered firms grew.
2

Product Code (Segment 2)

Identifies the specific drug formulation—including active ingredient(s), strength, and dosage form (e.g., tablet, capsule, solution). Assigned by the labeler. Can be 3 or 4 digits.
3

Package Code (Segment 3)

Identifies the package size and type—for example, a bottle of 100 tablets versus a blister pack of 30. Also assigned by the labeler. Typically 1 or 2 digits.
4

Three Standard NDC Formats

The 10 digits distribute across three valid configurations: 4-4-2, 5-3-2, or 5-4-1. Hyphen placement indicates which format is being used. Recognizing the format is essential for proper zero-padding to an 11-digit standard.
5

11-Digit Standardization

HIPAA mandates the use of an 11-digit NDC on electronic claims. Because the native code is only 10 digits, a leading zero must be added to the appropriate segment—an operation pharmacy technicians must master to avoid billing rejections.
✦

KEY TAKEAWAY

Think of an NDC number like a mailing address. The labeler code is the state (who made it), the product code is the street name (what the drug is), and the package code is the house number (what size box it comes in). Miss one part and the package goes to the wrong door—just as a wrong segment in an NDC can route the wrong drug to a patient.

SECTION 3

Visual Explanation of NDC Structure

The following diagram illustrates how the three segments of an NDC number map onto a real drug product. The example uses a widely recognized generic medication to demonstrate the relationship between each code segment and the information it encodes.

NDC Number AnatomyExample: Lisinopril 10 mg Tablets, 100-count bottle65862−0176−05LABELER CODE5 digitsIdentifies: AurobindoPharma (manufacturer)PRODUCT CODE4 digitsIdentifies: Lisinopril10 mg tabletPACKAGE CODE2 digitsIdentifies: 100-countbottleThree Valid 10-Digit Formats4 − 4 − 2e.g., 0002-4462-02Pad labeler → 5-4-25 − 3 − 2e.g., 65862-176-05Pad product → 5-4-25 − 4 − 1e.g., 65862-0176-5Pad package → 5-4-211-DIGIT HIPAA FORMAT: 5 − 4 − 2Always zero-pad the segment that is "short" to reach 5-4-2
The top section shows a real NDC (65862-0176-05) decomposed into its three color-coded segments. The bottom section illustrates the three valid 10-digit formats and how each is zero-padded into the universal 11-digit (5-4-2) HIPAA format for electronic claims.

As the diagram illustrates, the critical skill is recognizing which of the three formats you are looking at based on the hyphen placement. A 4-digit first segment (format 4-4-2) means the labeler code needs a leading zero; a 3-digit middle segment (format 5-3-2) means the product code needs a leading zero; and a 1-digit final segment (format 5-4-1) means the package code needs a leading zero. In every case, the resulting 11-digit code follows the standardized 5-4-2 configuration required by HIPAA for electronic billing.

SECTION 4

How NDC Verification Works in Practice

NDC verification is not a single calculation; it is a systematic process that pharmacy technicians perform every time they pull a medication from the shelf, enter an order into the pharmacy management system, or reconcile inventory. The process involves three core operations: identification (reading the NDC from the stock bottle or barcode), comparison (matching the scanned or read NDC against the prescription order), and validation (confirming that the NDC corresponds to the correct drug name, strength, form, and package size in the pharmacy database or FDA NDC Directory).

Zero-Padding Algorithm

Converting a 10-digit NDC displayed on a drug label to the 11-digit HIPAA-standard NDC requires a deterministic algorithm. The total digit count across segments always equals 10, and the three valid distributions are 4-4-2, 5-3-2, and 5-4-1. The conversion rule is simple: identify the segment that contains fewer digits than the 5-4-2 standard calls for, and prepend a zero to that segment.

ZERO-PADDING RULE

Ifformatis4−4−2→0XXXX−XXXX−XX(add0tosegment1)Ifformatis5−3−2→XXXXX−0XXX−XX(add0tosegment2)Ifformatis5−4−1→XXXXX−XXXX−0X(add0tosegment3)If format is 4-4-2 → 0XXXX-XXXX-XX (add 0 to segment 1) If format is 5-3-2 → XXXXX-0XXX-XX (add 0 to segment 2) If format is 5-4-1 → XXXXX-XXXX-0X (add 0 to segment 3)

X represents any digit 0–9. The leading zero is always prepended (placed at the left of the short segment), never appended.

Points of Verification in the Dispensing Workflow

  1. Prescription Entry: When entering a new prescription into the pharmacy management system, the technician selects the drug by NDC. The system cross-references the NDC against the prescriber's order (drug name, strength, quantity) to flag mismatches.
  2. Stock Selection: The technician scans or visually matches the NDC on the stock bottle to the NDC printed on the prescription label generated by the system. Any discrepancy triggers a verification pause.
  3. Final Pharmacist Verification: The pharmacist checks that the NDC on the dispensed product matches the prescription record, closing the verification loop before the medication reaches the patient.
  4. Insurance Claims Adjudication: The 11-digit NDC is transmitted electronically to the payer. An incorrect NDC results in a rejected claim, delayed patient service, or incorrect reimbursement.
⚠

Common Pitfall

Two different manufacturers may produce the same generic drug at the same strength and dosage form—but their NDC numbers will differ because the labeler code is unique to each firm. Swapping one manufacturer's product for another without updating the NDC in the system will cause a claim rejection and may lead to an incorrect dispensing record.

SECTION 5

Detailed NDC Format Breakdown & Classification

The ability to recognize NDC formats at a glance and convert between the 10-digit label format and the 11-digit billing format is a high-yield skill on the PTCE. The table below provides a systematic reference for the three valid configurations, along with worked conversion examples.

10-Digit Label FormatSegment LengthsShort SegmentZero-Pad Location11-Digit HIPAA Result
0002-4462-024-4-2Labeler (4 digits)Prepend 0 to segment 100002-4462-02
65862-176-055-3-2Product (3 digits)Prepend 0 to segment 265862-0176-05
60505-0149-15-4-1Package (1 digit)Prepend 0 to segment 360505-0149-01

NDC format conversion reference

NDC Verification FlowchartStep-by-step process for verifying and converting an NDC numberSTART: Read NDC from labelCount digits in each segmentWhich format?4-4-2Pad Labeler (+0)5-3-2Pad Product (+0)5-4-1Pad Package (+0)11-Digit NDC (5-4-2)Compare to Rx order & submit claim
Flowchart showing the NDC verification process: read the label, identify the format by counting segment digits, apply the correct zero-padding, arrive at the standardized 11-digit code, and compare against the prescription order before claim submission.

The flowchart above emphasizes a key principle: the conversion step is deterministic and based entirely on counting the digits in each segment. No ambiguity exists once the hyphen positions are identified. In automated systems, barcode scanners read the NDC and the pharmacy software performs this conversion internally, but pharmacy technicians must be able to perform and verify the process manually—particularly when labels are damaged, barcodes are unreadable, or system overrides are necessary.

SECTION 6

Worked Example — Verifying an NDC

The following example walks through a complete NDC verification scenario that a pharmacy technician might encounter during a shift.

Scenario: A prescription for Metformin HCl 500 mg tablets, quantity 60

  1. 1

    Step 1 — Read the NDC from the stock bottle

    You pull a bottle from the shelf. The label reads: NDC 0378-0712-01. The drug name on the bottle is "Metformin Hydrochloride Tablets, USP, 500 mg" manufactured by Mylan Pharmaceuticals. The package size is listed as 100 tablets.
  2. 2

    Step 2 — Identify the NDC format

    Count the digits in each segment: 0378 has 4 digits, 0712 has 4 digits, and 01 has 2 digits. The configuration is 4-4-2.
    Format identified: 4-4-2
  3. 3

    Step 3 — Convert to the 11-digit HIPAA format

    In the 4-4-2 format, the labeler code (segment 1) is one digit short of the required 5 digits. Prepend a zero to segment 1: 0378 → 00378. Segments 2 and 3 remain unchanged.
    11-digit NDC: 00378-0712-01
  4. 4

    Step 4 — Compare NDC to the prescription record

    Open the prescription in the pharmacy management system. The system shows the prescribed drug as Metformin HCl 500 mg tablets with NDC 00378-0712-01. The 11-digit NDC on the stock bottle matches the system record exactly. Additionally, verify the drug name, strength (500 mg), and dosage form (tablet) match the prescription order.
    Match confirmed: ✓ Drug name, ✓ Strength, ✓ Dosage form, ✓ NDC
  5. 5

    Step 5 — Check package size against dispensing needs

    The prescription calls for 60 tablets. The stock bottle contains 100 tablets (as indicated by the package code 01). This is acceptable because you will count out 60 tablets from the 100-count bottle. If the prescription called for a unit-of-use package, you would need to verify that the NDC's package code corresponds to the exact count required.
    Verification complete — proceed with dispensing

SECTION 7

Strengths & Limitations of the NDC System

The NDC system is the backbone of drug identification in the United States, but like any classification scheme, it has both powerful advantages and notable limitations. Understanding these helps pharmacy technicians anticipate situations where additional verification steps may be required.

StrengthsLimitations
Universal identification: every commercially available drug in the U.S. has a unique NDC, eliminating ambiguity in ordering, dispensing, and billing.Not internationally recognized: the NDC is a U.S.-specific system and is not used outside the country. International products require separate identification (e.g., GTIN).
Barcode integration: NDCs embedded in barcodes enable automated scanning, reducing manual transcription errors and speeding up point-of-sale workflows.NDCs are not permanent: when a product is discontinued, its NDC may be reassigned to a different product after 5 years, potentially causing confusion in legacy records.
Granularity: the three-segment structure captures manufacturer, formulation, and packaging in a single concise code, supporting inventory management at multiple levels.Format inconsistency: the existence of three valid 10-digit formats (4-4-2, 5-3-2, 5-4-1) and the need for zero-padding introduce conversion errors, especially during manual data entry.
HIPAA compliance: the standardized 11-digit format facilitates electronic claims, ensuring interoperability across pharmacy systems, PBMs, and insurers.Does not capture lot or expiration data: the NDC identifies the product but not a specific batch, requiring separate lot-tracking systems for recall management.

Strengths and limitations of the NDC system

✦

KEY TAKEAWAY

The NDC functions like a Social Security Number for drug products—it uniquely identifies each one within the U.S. market. However, just as an SSN doesn't tell you where someone currently lives or works, an NDC doesn't tell you the lot number, expiration date, or whether the specific bottle in your hand has been recalled. For full traceability, the NDC must be paired with serialization data under the Drug Supply Chain Security Act (DSCSA).

SECTION 8

NDC in the Broader Regulatory Landscape

While the NDC remains the primary drug product identifier in U.S. pharmacy practice, it operates within an evolving regulatory ecosystem. Pharmacy technicians preparing for the PTCE should appreciate how the NDC interfaces with newer identification and tracking systems, as exam questions increasingly test awareness of these connections.

FeatureNDC SystemDSCSA Serialization
ScopeIdentifies the product type (manufacturer + drug + package)Identifies each individual unit (unique serial number per package)
Code structure10-digit numeric (3 segments)Includes NDC + serial number + lot + expiration in a 2D barcode (GS1 GTIN format)
Primary purposeDrug identification, billing, and inventory managementSupply-chain tracking, anti-counterfeiting, and recall management
Lot/expiration trackingNot includedEmbedded in the serialized identifier
Implementation statusFully implemented since 1972; universal in pharmacyPhased implementation; full enforcement by November 2024 (with extensions)

NDC vs. DSCSA serialization comparison

The relationship between these systems is complementary rather than competitive. The NDC provides the foundational product identifier upon which the DSCSA's serialized identifiers are built. In practice, a 2D Data Matrix barcode on a modern drug package encodes the NDC (converted to a GTIN-14 format), a unique serial number, the lot number, and the expiration date. Pharmacy technicians will increasingly encounter these 2D barcodes alongside traditional NDC-bearing linear barcodes, and understanding how the NDC feeds into this expanded system will become an essential competency.

💡

PTCE Exam Tip

The PTCE may test your ability to distinguish between identifiers. Remember: the NDC identifies what the product is (drug, strength, package), while serialization under DSCSA identifies which specific unit it is. Both begin with the NDC as the core product code.

SECTION 9

Practice Problems

Question 1: CONCEPTUAL

A pharmacy technician reads the NDC 0069-3150-66 on a stock bottle. Which segment of this NDC identifies the drug's specific strength and dosage form, and how do you know?
Show answer
The product code (segment 2) identifies the specific drug formulation, including active ingredient, strength, and dosage form. In this NDC (0069-3150-66), segment 2 is "3150." You identify it as the middle segment because NDC numbers are always structured as labeler-product-package from left to right. The labeler code (0069) tells you the manufacturer (Pfizer), the product code (3150) specifies the exact formulation, and the package code (66) indicates the container size and type.

Question 2: BASIC CALCULATION

Convert the following 10-digit NDC to the 11-digit HIPAA format: 0591-0405-01. Show your reasoning.
Show answer
First, count the digits in each segment: 0591 = 4 digits, 0405 = 4 digits, 01 = 2 digits. This is the 4-4-2 format. The labeler code has only 4 digits but the 11-digit standard requires 5, so prepend a zero to segment 1: 0591 → 00591. Segments 2 and 3 already meet the 4-digit and 2-digit requirements respectively. The final 11-digit NDC is 00591-0405-01. This format (5-4-2) is what would be transmitted on an electronic pharmacy claim.

Question 3: INTERMEDIATE

A technician has two bottles on the counter. Bottle A has NDC 68382-132-01 and Bottle B has NDC 68382-132-05. Both contain Lisinopril 20 mg tablets. Can these bottles be used interchangeably to fill a prescription? Explain your reasoning, including the significance of the differing segment.
Show answer
The two NDCs share the same labeler code (68382, indicating the same manufacturer) and the same product code (132, indicating the same drug—Lisinopril 20 mg tablets). They differ only in segment 3 (the package code): 01 vs. 05. This means the bottles contain the same medication from the same manufacturer but in different package sizes (e.g., 100-count bottle vs. 1000-count bottle). Either bottle can be used to fill the prescription because the drug product is identical, but the correct NDC corresponding to the bottle actually used must be entered into the pharmacy system for accurate inventory tracking and billing. Using the wrong NDC could result in a claim rejection or inventory discrepancy.

Question 4: APPLIED

An insurance claim for a prescription is rejected with the message "Invalid NDC." The technician entered 5123-0456-02 as a 10-digit NDC. The stock bottle label shows 51230-456-02. Identify the format discrepancy, determine the correct 11-digit NDC, and explain why the original entry was rejected.
Show answer
The technician misread the hyphen placement on the stock bottle. The label shows 51230-456-02, which is a 5-3-2 format (labeler = 51230, product = 456, package = 02). The technician incorrectly entered it as 5123-0456-02, interpreting it as a 4-4-2 format. This would produce the 11-digit NDC 05123-0456-02, which points to a different labeler entirely (labeler 05123 instead of 51230). The correct conversion uses the 5-3-2 rule: prepend a zero to the 3-digit product code, yielding 51230-0456-02. This example illustrates why accurate identification of hyphen positions is critical—a single misplaced hyphen changes the labeler identity and renders the entire NDC invalid.

Question 5: CRITICAL THINKING

A hospital pharmacy is transitioning from a legacy system that stored NDCs in a 10-digit format without hyphens (e.g., "0378071201") to a modern system requiring 11-digit hyphenated NDCs. The IT team asks whether they can simply add a leading zero to every stored NDC to create an 11-digit code. Evaluate this approach and explain whether it would produce accurate results for all three NDC formats.
Show answer
This blanket approach would only work correctly for NDCs originally in the 4-4-2 format, where the leading zero belongs in segment 1. For NDCs in the 5-3-2 format, the zero belongs in segment 2 (the product code), and for 5-4-1, it belongs in segment 3 (the package code). Without the hyphens preserved in the legacy data, there is no way to determine which of the three formats a given 10-digit string represents. For example, the string "6586217605" could be 65862-176-05 (5-3-2, correct 11-digit: 65862-0176-05) or theoretically parsed differently. The IT team must first recover the original hyphenated format—possibly by cross-referencing each stored NDC against the FDA NDC Directory—before applying the segment-specific zero-padding rule. Applying a uniform leading zero would corrupt approximately one-third to one-half of the database, depending on the distribution of NDC formats among the hospital's formulary.

SUMMARY

Lesson Summary

Summary

The National Drug Code (NDC) is a 10-digit, 3-segment identifier assigned to every drug product marketed in the United States under the Drug Listing Act of 1972. Its three segments encode the labeler (manufacturer/distributor), the product (drug name, strength, and dosage form), and the package (container size and type). The 10 digits distribute across three valid formats—4-4-2, 5-3-2, or 5-4-1—and must be zero-padded to an 11-digit 5-4-2 format for electronic claims under HIPAA.

Pharmacy technicians verify NDCs at every critical touchpoint in the dispensing workflow: prescription entry, stock selection, pharmacist check, and insurance claim submission. Accurate NDC verification prevents dispensing errors, avoids claim rejections, and maintains inventory integrity. The NDC system, while powerful, does not encode lot numbers or expiration dates—capabilities that are addressed by the Drug Supply Chain Security Act (DSCSA) serialization framework, which builds upon the NDC as its foundational product identifier.

Varsity Tutors • Pharmacy Technician Certification Exam (PTCE) • NDC Verification — Interpret and verify National Drug Code (NDC) numbers