Home › Guides

NDC number format

A National Drug Code is 10 digits in three segments (labeler, product, package), written 4-4-2, 5-3-2 or 5-4-1. Billing systems use 11 digits, made by adding one leading zero. FDA's 12-digit format takes effect March 7, 2033.

Updated November 27, 2026 · by PharmacyTechMock

Direct answer: an NDC is a unique 10-digit number in three segments: the labeler code (assigned by FDA), the product code, and the package code. FDA's background page lists the 10-digit layouts as 4-4-2, 5-3-2 and 5-4-1 (FDA, NDC database background); the segment definitions are in 21 CFR 207.33. Billing systems use an 11-digit form made by adding a leading zero. FDA's final rule moves to a uniform 12-digit NDC effective March 7, 2033 (FDA, NDC format). Checked November 27, 2026.

PharmacyTechMock is an independent practice service, not affiliated with PTCB or NHA. All NDC numbers on this page are made-up examples, not real products. This is exam study material, not legal or medical advice.

Free calculation practice

A free full-length practice test for each exam, no sign-up. PTCE: 90 questions in 1 hour 50 minutes. ExCPT: 120 questions in 2 hours 10 minutes. Each is scored by its own domains.

Free PTCE testFree ExCPT test

The three segments

SegmentWhat it identifiesSource, checked November 27, 2026
1. LabelerThe firm that makes, repacks, relabels or distributes the drug. FDA assigns the code.21 CFR 207.33(b)(1)(i)
2. ProductThe specific drug product from that labeler.21 CFR 207.33(b)(1)(ii)
3. PackageThe package size and type.21 CFR 207.33(b)(1)(iii)

Practical meaning: two bottles of the same drug from the same labeler can have the same first two segments and different package segments (for example, 30-count and 90-count). A different labeler gives a different first segment. That is why the NDC on the bottle must match the product you pick for the prescription.

The 10-digit layouts, with made-up examples

LayoutDigitsExample (not a real product)
4-4-24 + 4 + 2 = 101234-5678-90
5-3-25 + 3 + 2 = 1012345-678-90
5-4-15 + 4 + 1 = 1012345-6789-0

Source: FDA, National Drug Code Database Background Information, checked November 27, 2026. A labeler uses only one product-package layout for all its NDCs (21 CFR 207.33(b)(3)). Note: the eCFR text of 21 CFR 207.33(b) now speaks of "10 or 11 digits" and allows some 6-digit labeler codes (it carries a link to the March 5, 2026 amendment), so for exam purposes learn the three 10-digit layouts above and the 11-digit billing form.

Converting 10 digits to 11 for billing

FDA says that, because of a conflict with the HIPAA standard of an 11-digit NDC, programs often add a leading zero to one segment, and the right segment depends on the labeler's layout. Billing programs write this 11-digit form as 5-4-2 with no hyphens. The rule is simple: pad the short segment up to 5-4-2.

10-digit layoutWhere the zero goesExample (made up)11-digit result
4-4-2Front of the labeler segment1234-5678-9001234-5678-90 (01234567890)
5-3-2Front of the product segment12345-678-9012345-0678-90 (12345067890)
5-4-1Front of the package segment12345-6789-012345-6789-00 (12345678900)

FDA's own example shows why you cannot go backwards without the hyphens: 12345-0678-09 could be 12345-678-09 or 12345-0678-9, depending on the firm's layout (FDA). Always keep the hyphens from the package label. The 5-4-2 name and the zero positions for 4-4-2 are our arithmetic from the layouts above; FDA's page does not spell them out. Every example in the table is checked by a small script before we publish.

The 12-digit NDC is coming

FDA's final rule, "Revising the National Drug Code Format and Drug Label Barcode Requirements," adopts a uniform 12-digit format. Key dates from FDA's page:

Source: FDA, National Drug Code Format, checked November 27, 2026. The rule was published March 5, 2026 (91 FR 10770, as cited in 21 CFR 207.33). Until 2033 your exam and your pharmacy still use the 10-digit and 11-digit forms above. We left out details of the new segment lengths because we could not confirm them on an FDA page.

Where to look up an NDC

The FDA National Drug Code Directory has a search tool, downloadable files and an API. It covers active and certified finished and unfinished drugs. FDA states it does not contain all listed drugs, so absence from the directory is not proof of anything. Checked November 27, 2026.

NDC on drug labels and barcodes

Under 21 CFR 201.25, the bar code on covered human drug labels must contain, at a minimum, the NDC, and it must be a linear bar code meeting listed standards (21 CFR 201.25). It applies mainly to human prescription drugs, with exceptions such as samples and medical gases. Checked November 27, 2026. Scanning the barcode at the shelf is a common way to confirm the NDC matches the one on your label.

Where this appears in the exam outlines

PTCE knowledge area 4.3, in Domain 4 (Order Entry and Processing), reads "Lot numbers, expiration dates and National Drug Code (NDC) numbers" and carries the calculation-based asterisk. Source: PTCB PTCE Content Outline, effective January 6, 2026. In the NHA 2023 ExCPT Test Plan, "Components of an NDC number" and selecting a product by NDC, expiration date and lot number are in Domain 4, Dispensing Process (task 4B), and the Drug Listing Act of 1972, including elements of the NDC, is in Domain 2, Laws. Source: NHA 2023 ExCPT Test Plan. Checked November 27, 2026. See the PTCE outline guide.

Practice, then take the timed test

Try converting a few NDCs by hand: spot the layout, find the short segment, add the zero. Then take a full timed practice test with explanations and sources.

Try one on the clock. Both free tests end with your right answers in each domain of that exam.

Free PTCE testFree ExCPT test

Common questions

How many digits are in an NDC?

A National Drug Code has 10 digits in three segments: labeler, product and package. The three allowed 10-digit layouts are 4-4-2, 5-3-2 and 5-4-1. Source: FDA, National Drug Code Database Background Information, checked November 27, 2026.

What do the three NDC segments mean?

The first segment is the labeler code, assigned by FDA. The second is the product code. The third is the package code, which identifies the package size and type. Source: 21 CFR 207.33, checked November 27, 2026.

Why is an NDC sometimes 11 digits?

FDA notes a conflict with the HIPAA standard of an 11-digit NDC, so billing programs add a leading zero to one segment. Where the zero goes depends on the layout. Source: FDA, National Drug Code Database Background Information, checked November 27, 2026.

Is the NDC changing to 12 digits?

Yes. FDA's final rule adopts a uniform 12-digit NDC format. It takes effect March 7, 2033, with a transition through March 6, 2036. Until then FDA keeps assigning 10-digit NDCs. Source: FDA, National Drug Code Format, checked November 27, 2026.

Where can I look up an NDC?

Use the FDA National Drug Code Directory search. FDA says it does not contain all listed drugs, so a missing NDC does not prove a product is not real. Source: FDA, National Drug Code Directory, checked November 27, 2026.

Related guides