Research

What an NDC is, and why a compounded vial may not have one

The national drug code is an inventory identifier that FDA says is not an approval, not a verification and not proof a product is even a drug. Its absence on a compounded preparation is expected.

By Nora Castellan, Standards Editor

What the number is

The national drug code is a numeric identifier. The regulation defining it says every finished drug product or unfinished drug subject to the listing requirements must have a unique code identifying its labeler, its product and its package size and type.

It comes in three segments. A labeler code of four, five or six digits, assigned by the agency. A product code of three or four digits. A package code of one or two digits, which distinguishes package sizes and types.

Today the whole thing runs to ten or eleven digits. A final rule adopts a uniform twelve-digit format, and the agency says that rule takes effect in March of 2033.

Read the three segments again and notice what they describe. A labeler, a product and a package. Not a quality, not a review, not a decision by anyone about whether the thing works.

The agency says, in its own words, that the code is not an approval

The page that hosts the directory carries a set of disclaimers unusual for their bluntness, and they are worth reading rather than summarizing.

Inclusion in the directory does not indicate that the agency has verified the information provided or that the products are approved. Assignment of a code does not in any way denote approval of the product.

The next sentence goes further than a disclaimer. Any representation that creates an impression of approval because a product has one of these codes is misleading and violates federal law.

Two more lines close off the remaining escapes. Inclusion or assignment does not mean a product is a drug as defined by federal law. And it does not mean a product is covered or eligible for reimbursement by any payer.

The directory also states who is responsible for what it says. The content of each entry is the responsibility of the labeler submitting the file, and the directory holds both approved and unapproved drugs.

Where the number comes from, in three steps

The reason a compounded preparation often has no code is not mysterious once you follow the chain, and each link is a published rule.

First, the code attaches to a drug subject to the listing requirements. That is the phrase the defining regulation uses.

Second, listing is an obligation of registrants. The listing rule says each registrant must list each drug it manufactures, repacks, relabels or salvages for commercial distribution.

Third, pharmacies are exempt from registration and from drug listing. The exemption is stated in the regulations and in the statute behind them, and it carries three conditions. The pharmacy operates in conformance with local pharmacy and medicine law. It regularly dispenses on valid prescriptions from licensed practitioners. And it does not manufacture, repack, relabel or salvage other than in the regular course of dispensing or selling at retail.

So the chain breaks at the first step. A business that is not a registrant does not list, and a drug that is not listed does not get a code.

That is a description of how the rules connect. It is not a finding that any particular business qualifies for the exemption, which depends on three conditions this site does not adjudicate.

Outsourcing facilities are the interesting middle case

Outsourcing facilities do register with the agency, and they do report the drugs they compound twice a year.

Their reports include the active ingredient, the source of that ingredient, the strength, the dosage form and route, the package description and the number of units produced. They also include the code for the final product, and the statute adds two words: if assigned.

The label requirement for those facilities uses a matching hedge. It asks for the code if available.

The directory page explains why both hedges are there. It says outsourcing facilities that have elected to assign codes to their products provide the agency with a list of what they compounded in the previous six months.

Elected is the operative word. For that category the code is something a facility can choose to take on, which is a very different thing from a code that follows automatically from approval.

What the presence of a code does and does not tell you

A code on a package tells you that some labeler submitted a listing file describing that package, and that the segments identify a labeler, a product and a package size.

It does not tell you the contents were tested. It does not tell you anyone at the agency looked at the entry. It does not tell you the product was approved, and the agency says representing otherwise is unlawful.

It is still useful. A code is a stable handle for a specific package from a specific labeler. That makes it a better search term than a marketing name when you are trying to find out who stands behind a product.

That is the honest description of its value. It is an identifier that helps you look things up, not a verdict that saves you from looking.

What the absence of a code tells you

Less than people assume, and in a direction opposite to the usual worry.

For a preparation compounded by a pharmacy against a prescription for an individual patient, no code is the expected state of affairs. The chain that produces codes does not run through that kind of business.

For a preparation from an outsourcing facility, an absent code means the facility did not elect to assign one, which its own statute anticipates in two separate places.

The place where an absence should make you curious is different. If a product is being presented as an approved, commercially manufactured drug, then the paperwork of an approved commercial drug should be present. A missing code would be one of several things that do not fit that story.

The question is never really whether a code is printed. It is whether the story the seller is telling about the product matches the paperwork the product actually carries.

How this shows up in marketing

Two claims recur, and they fail in opposite directions.

The first presents a code as a seal. That is the exact representation the agency describes as misleading, and it is worth recognizing on sight.

The second treats every product without a code as suspect. That reasoning would condemn essentially the whole category of preparations compounded for individual patients, which the rules place outside the listing system by design.

The useful move is to stop reading the code as a grade at all. Ask instead which kind of business made the thing, whether that business is named, and what its own category of rules requires it to print.

Key takeaways

Frequently asked questions

What is a national drug code?

It is a numeric identifier in three segments: a labeler code assigned by the agency, a product code and a package code. It currently runs to ten or eleven digits, and a final rule moves it to a uniform twelve digits in 2033. The defining regulation says each finished or unfinished drug subject to the listing requirements must have a unique one identifying its labeler, product and package size and type.

Does having one mean a product is FDA-approved?

No, and the agency states this in unusually direct terms. Inclusion in the directory does not indicate the agency verified the information or that products are approved. Assignment of a code does not in any way denote approval. The page goes on to say that any representation creating an impression of approval because a product has a code is misleading and violates federal law.

Why would a compounded peptide have no national drug code?

Because of how the codes are generated. A code attaches to a drug subject to the listing requirements, listing is an obligation of registrants, and pharmacies meeting three stated conditions are exempt from registration and drug listing. A business that is not a registrant does not list, and an unlisted drug gets no code. The chain simply does not reach a preparation compounded by a pharmacy for an individual patient.

Do outsourcing facilities have codes?

Sometimes, and by choice. Those facilities register and report the drugs they compound twice a year, and the statute asks for the code of the final product "if assigned". The label requirement uses the phrase "if available". The agency describes the arrangement plainly, saying outsourcing facilities that have elected to assign codes to their products provide it with a list of what they compounded.

Is a missing code a red flag?

Not by itself, and treating it as one would condemn the entire category of preparations compounded for individual patients. The absence becomes interesting only when it contradicts the story being told. If a product is presented as an approved, commercially manufactured drug, the paperwork of one should be present, and a missing code would be one of several things that do not fit.

Can I look a product up by its code?

The agency publishes a directory of listed codes, updated daily, containing entries submitted by labelers. It holds prescription and over-the-counter products, approved and unapproved ones, and repackaged and relabeled ones. It also says the content of each entry is the responsibility of the labeler that submitted it, so the directory tells you what someone claimed rather than what anyone checked.

Sources

Each document below is named as it names itself, with the date printed on that document rather than the day it was read.

  1. Title 21 Code of Federal Regulations section 207.33, What is the National Drug Code (NDC), how is it assigned, and what are its requirements?Electronic Code of Federal Regulations, Office of the Federal Register, August 2016
  2. Title 21 Code of Federal Regulations section 207.13, Who is exempt from the registration and listing requirements?Electronic Code of Federal Regulations, Office of the Federal Register, April 2021
  3. Title 21 Code of Federal Regulations section 207.41, Who must list drugs and what drugs must they list?Electronic Code of Federal Regulations, Office of the Federal Register, August 2016
  4. National Drug Code DirectoryU.S. Food and Drug Administration, March 2026
  5. United States Code Title 21, Section 353b(a)(10) and (b)(2), Outsourcing facilities, 2024 Main EditionOffice of the Law Revision Counsel, U.S. House of Representatives, January 2025
  6. United States Code Title 21, Section 360(g), Registration of producers of drugs or devices, exclusions from application of section, 2024 Main EditionOffice of the Law Revision Counsel, U.S. House of Representatives, January 2025