AI Pill IDPill identifier appDownload

Using an NDC Number When the Imprint and Label Are Gone

Written by
AI Pill ID Team
Published
Reading time
9 min

The imprint on the pill is gone, worn smooth or never readable to begin with, and the bottle it came from has no legible label either. But you're not entirely empty-handed: somewhere, maybe on an old pharmacy receipt, an insurance statement, or a photo you took of the bottle months ago, there's a string of numbers that looks like 00054-0122-25. That's a National Drug Code, and it can still get you somewhere, just not in the way most people assume.

This is a narrower problem than a loose pill with zero leads. An NDC points at a real, specific product, so it's worth taking seriously. It's also easy to overtrust: knowing the number isn't the same as knowing what you're holding. Here's how to read it, what it confirms, and exactly where it stops being enough on its own. (If you're checking a pill against a bottle because it turned up in the wrong compartment of a pill organizer, the same NDC check works there too.)

What an NDC actually is, and isn't

A National Drug Code is a number the FDA assigns to identify one specific drug product sold in the United States: its labeler, its exact strength and dosage form, and the size of package it was sold in. It's a packaging-and-product code, not a code stamped into the pill itself. That's why it usually shows up on the bottle's label or the carton, often next to a barcode, rather than on the tablet or capsule.

It's also unrelated to the imprint code, the letters or numbers physically stamped or printed into most U.S. prescription tablets and capsules under federal regulation. The two systems exist for different reasons and can survive independently of each other. A pill can keep its imprint after the label has faded to nothing, and a label (or a record of what the label said) can survive after the imprint has worn away or was never legible. If you've still got one of these from the pill itself, our guide on identifying a pill with no imprint covers that side of the problem.

The three segments: labeler, product, package

An NDC is 10 digits, split into three segments. The split isn't always in the same place: FDA allows three layouts, 4-4-2, 5-3-2, and 5-4-1, all of which add up to 10 digits total. Billing and insurance systems instead use an 11-digit version in a 5-4-2 layout, built by padding whichever segment is a digit short with a leading zero. That's why the same drug can show up as a 10-digit code on a bottle and an 11-digit code on an insurance statement.

Each segment means something specific:

  • Labeler code (first segment). FDA assigns this to the company responsible for the product: the manufacturer, a repackager, or a private-label distributor. One company can hold several labeler codes.
  • Product code (second segment). The labeler assigns this one itself. It pins down the specific drug, strength, and dosage form, tablet versus capsule versus extended-release, for example.
  • Package code (third segment). Also set by the labeler, this one describes how it was packaged: a bottle of 30, a blister pack of 10, and so on.

None of that requires a database to check. It only requires knowing where the hyphens sit, and whether the digit count in each part is actually complete.

Check whether an NDC is a complete, well-formed code

Type it exactly as printed, hyphens included (for example 12345-6789-0). This only checks the shape of the code; it doesn't look up a drug name.

What a valid NDC confirms, and what it can't

If the code you have has the right shape, that tells you it's a real, correctly formed NDC rather than a transcription error. It does not, by itself, tell you the drug's name, and it doesn't confirm that the loose pill sitting in front of you is actually the product that code refers to. The NDC lives on paper or in a record; the pill is a physical object you're trying to match back to it. Those are two different checks.

It also doesn't narrow to a single pill or lot. An NDC identifies a product and a package size, not an individual manufacturing batch, so two bottles with the same NDC filled a year apart are still the same code. If what matters to you is whether this exact pill has since been recalled, the NDC is the right starting point, but you'll need to check it against the drug name and lot information separately; our guide on checking if a medication has a recall or FDA warning covers that next step.

If you're reaching for the NDC because the timeline of doses doesn't add up, you think you may have taken the same medication twice, confirming the product is a useful first step, but it isn't the urgent one. Call Poison Control or your pharmacist about the possible double dose first; our guide on what to do after accidentally taking a double dose covers which medications need an immediate call.

How to actually turn the code into a drug name

Checking the shape doesn't replace the lookup itself; it just tells you the code is worth looking up. Two routes work:

  • Ask a pharmacist to key it in. Any pharmacy's dispensing software can resolve an NDC to a drug name, strength, and manufacturer in seconds, even a pharmacy that never filled this particular prescription. This is the fastest route for most people, and it costs nothing.
  • Search the FDA's National Drug Code Directory. This is the government's own public record of every active NDC, updated daily. It's built for looking up a code you already have rather than browsing, so it works well once you've confirmed the shape checks out above.

Either way, what comes back is a product name, not a confirmation that the pill in your hand matches it. Treat the result the same as any other lead: a name to bring to a pharmacist in person, alongside the pill itself, before anyone takes it.

A photo match corroborates an NDC, it doesn't replace one

If you also have the physical pill, a photo-based identifier is worth running alongside the NDC lookup rather than instead of it. AI Pill ID reads a pill's color, shape, size, and any visible imprint from a single photo and returns the most likely matches with a confidence score. It's a narrowing tool, and an honest one will say plainly when it isn't sure rather than force a guess.

Used together, the two checks catch different problems. If the NDC points to one drug and the photo match agrees, that's a reasonable amount of confidence to bring to a pharmacist for final confirmation. If they disagree, that mismatch matters more than either result alone: it could mean the wrong pill ended up in that bottle, or that the pill in your hand isn't actually from the container the NDC came from. Counterfeit pills pressed to look correct are also a real risk, and DEA lab testing has found that a large share of the fake pills it analyzes contain a potentially lethal dose of fentanyl, which is exactly why appearance, even a confident-looking match, is never the final word. Neither an app nor a photo can tell you what's actually inside a pill; only a pharmacist or lab testing can.

If the NDC doesn't check out

This comes up a lot for caregivers working through an aging parent's medicine cabinet, where years-old bottles have labels that are partly sun-faded or rubbed off. Our guide on identifying pills for an elderly parent on multiple medications covers the rest of that situation, including what to record from each bottle while the label is still readable.

Sometimes the number you have simply isn't a complete NDC: a digit was misread off a faded receipt, a barcode number got copied instead of the printed code next to it, or part of it is just missing. A few things to rule out before assuming the code itself is wrong:

  • Wrong number entirely. Insurance documents and pharmacy receipts sometimes print a claim number, Rx number, or UPC near the NDC. If the digit count is off, double-check you copied the right line.
  • Missing leading zero. A segment that should start with a zero sometimes gets dropped when a number is retyped, which shortens it by one digit and throws off the shape.
  • Genuinely incomplete source. If the document itself only printed part of the code, there's no way to reconstruct the rest. Go back to the pharmacy that filled it; their own records will have the full code attached to your fill history.

Don't fill in a guessed digit to make the shape work. An NDC with one digit changed can point to an entirely different product, strength, or package size, which defeats the point of checking it at all.

When neither the imprint, the label, nor an NDC survived

If you've genuinely got nothing: no imprint, no label, and no NDC from any document, you're working from the pill's appearance alone. That's a different, more limited version of this problem, and our general guide on what to do with an unknown pill walks through it step by step, including when it's time to stop trying to identify it and dispose of it safely instead.

The quick version

An NDC is a 10-digit (or 11-digit billing) code split into labeler, product, and package segments, and you can check whether one is complete and well-formed without any database at all. A valid code confirms a specific product; it doesn't confirm that the pill in front of you is actually it. Get the name from a pharmacist or the FDA's NDC Directory, cross-check it against the pill's own appearance with a tool like AI Pill ID if you have the physical pill, and let a pharmacist make the final call before anyone takes anything.

Frequently asked questions

Can I identify a pill from its NDC number alone?

An NDC confirms a specific product: one drug, strength, dosage form, and package size tied to one labeler. It doesn't confirm that a particular loose pill in your hand is actually that product, since the code itself can't be read off the pill. Treat a valid NDC as a strong lead to bring to a pharmacist, not a finished identification.

Where can I actually look up what an NDC means?

The FDA's National Drug Code Directory is the authoritative public source, though it's built for looking up a code you already have rather than browsing by appearance. A pharmacist can also key the digits straight into their dispensing software and get an answer in seconds, even at a pharmacy that never filled the prescription for you.

What if the NDC I have doesn't look like a complete code?

A real NDC is always 10 digits split into three parts, in one of three patterns (4-4-2, 5-3-2, or 5-4-1), or 11 digits in the 5-4-2 billing format with a padding zero added. If what you have doesn't fit one of those shapes, a digit was likely misread or dropped. Don't guess the missing piece; read the source again or treat the pill as unidentified.

Is the NDC the same as the imprint code on the pill itself?

No, they're different systems entirely. The imprint is physically stamped or printed into the pill and is required by federal regulation on almost every U.S. prescription tablet and capsule. The NDC is a packaging-level code assigned to the product, usually printed on the label or carton, not on the pill. Either one can survive when the other is gone.

Where do people actually find an NDC without the original label?

Common sources besides the bottle's own label: a pharmacy printout or receipt, an insurance explanation of benefits, a photo taken of the bottle before the label faded, or the pharmacy's own records pulled up by your name and date of birth. Any of these can hand you a usable NDC even after the physical label is unreadable.

Does a photo-based pill identifier replace checking the NDC?

No, they answer different questions and work best together. A photo identifier like AI Pill ID works from the pill's color, shape, size, and any visible imprint and returns likely matches with a confidence score. An NDC, when you have one, points at a specific product already. If the two agree, that's reassuring; if they don't, that disagreement is itself worth bringing to a pharmacist before anyone takes the pill.

Sources

  1. National Drug Code Directory (FDA)
  2. National Drug Code Format (FDA eDRLS)
  3. 21 CFR 206.10 — Code Imprint Required (eCFR)
  4. One Pill Can Kill — DEA Laboratory Testing Results (DEA)
  5. Poison Control (National Capital Poison Center)

Back to the blog