In May 2015 and again in February 2016, FDA classed a barcode error as a Class I recall, its most serious category. Both times the product was a bag of magnesium sulfate for intravenous use, and both times the bag's barcode could scan as heparin, a blood thinner, according to FDA's enforcement records1. The error sat in the machine-readable code that hospital scanners read.
Those barcodes exist because of a 2004 federal rule written for exactly that moment at a hospital bedside. A second, newer code, a small square of dots, sits on most prescription drug cartons and bottles because of a 2013 law aimed at counterfeits and theft. The two carry different information, serve different users and, for now, must both appear.
This explainer covers what each code holds, the dates each requirement took hold, why a package cannot simply drop the older one, and what FDA's recall data show when the codes go wrong. It also covers two dates still ahead, in 2027 and 2033.
The 2004 bar code rule
FDA published its bar code rule on Feb. 26, 2004, as 69 FR 91202, effective April 26, 2004. Drugs approved after that date had 60 days from approval to comply, and products already on the market had two years. The rule is codified at 21 CFR 201.253.
It covers manufacturers, repackers, relabelers and private label distributors of prescription drugs, biological products, and over-the-counter drugs that are dispensed under an order and commonly used in hospitals. The barcode must contain, "at a minimum, the appropriate National Drug Code (NDC) number in a linear bar code," and it must appear on the drug's label. The regulation exempts prescription drug samples, allergenic extracts, intrauterine contraceptives regulated as drugs, medical gases, radiopharmaceuticals, and certain plastic form-fill-seal containers without an overwrap.
One exemption is easy to miss. Prescription drugs sold by a manufacturer or repacker directly to patients do not need the barcode, but "versions of the same drug product that are sold to or used in hospitals" do, the regulation says. The point was bedside scanning. FDA estimated the rule would deliver net benefits of $3.4 billion to $3.6 billion a year and credited it with "avoiding over 500,000" adverse drug events and transfusion reactions over its 20-year evaluation period, according to the final rule's economic analysis2. The agency declined to require lot numbers and expiration dates in the code.
The DSCSA product identifier
The Drug Supply Chain Security Act, enacted in 2013 according to FDA's DSCSA law and policies page6, took a different aim. It sets out steps toward "an interoperable and electronic way to identify and trace certain prescription drugs at the package level," FDA's DSCSA page7 says, so that harmful drugs can be kept out of the supply chain, detected and removed. GxRadar's piece on counterfeit drugs covers the threat the law targets.
Its tool is the product identifier. The law defines it as a standardized graphic, in both human-readable and machine-readable form, holding the product's standardized numerical identifier, lot number and expiration date, according to FDA's 2021 questions-and-answers guidance4. The standardized numerical identifier is the NDC "combined with a unique alphanumeric serial number of up to 20 characters." On a package, the machine-readable part must be a two-dimensional data matrix barcode; a sealed case of one product can use a linear or 2D code.
Manufacturers were required to start on Nov. 27, 2017, and repackagers on Nov. 27, 2018. FDA's 2018 compliance policy5 said it would not take action against manufacturers for packages lacking an identifier if they were packaged before Nov. 27, 2018, effectively a one-year delay. For the printed version, FDA's guidance recommends four labeled lines: NDC, SERIAL, LOT and EXP, though space limits can change their order.
| Feature | 2004 bar code rule | DSCSA product identifier |
|---|---|---|
| Legal basis | 21 CFR 201.25 (FDA regulation) | FD&C Act section 582 (2013 statute) |
| Symbol on a package | Linear (one-dimensional) barcode | 2D data matrix barcode plus human-readable text |
| Data encoded | NDC, at minimum | NDC, serial number (up to 20 characters), lot number, expiration date |
| Identifies | The product and package size | One individual package |
| Main users | Hospital bedside and pharmacy scanning | Trading partners tracing and verifying product |
| Compliance dates | April 2004 rule; existing products by April 2006 | Manufacturers Nov. 27, 2017; repackagers Nov. 27, 2018 |
Why packages carry both codes
A 2D data matrix already contains the NDC, so it might seem able to replace the older stripe. FDA's 2021 guidance4 rules that out. "At this time, a 2D data matrix barcode may not be used as a substitution for a linear barcode when one is required under § 201.25," it says. A package that is a manufacturer's smallest saleable unit would "generally require" both, the guidance says.
That will change, slowly. On March 5, 2026, FDA published a final rule, 91 FR 1074912, that standardizes every FDA-assigned NDC at 12 digits in a 6-4-2 pattern and revises the barcode requirement to allow "either linear or nonlinear barcodes," so long as the format meets a widely recognized international standard and is recognized by FDA. The rule takes effect March 7, 2033, a seven-year delay FDA said would give everyone who uses NDCs time to build systems that can handle the longer code. GxRadar's explainer on the NDC number covers the digit change.
Where the serial number stops
Serial numbers matter most between companies. The law's enhanced security requirements call for interoperable, electronic tracing at the package level among manufacturers, wholesalers, repackagers and dispensers. A stabilization period ended Nov. 27, 2024, and FDA then granted exemptions for certain trading partners10 that pushed some deadlines into 2025. On Aug. 6, 2026, FDA extended an exemption for small dispensers to Nov. 27, 2027, according to the agency's exemption notice9. A pharmacy counts as small, FDA's exemptions page8 says, if as of Nov. 27, 2026 its owner has 25 or fewer full-time employees licensed as pharmacists or qualified as pharmacy technicians. GxRadar covers the timeline in its piece on the enhanced security deadline and the wider law in its DSCSA explainer.
Tracing ends at the counter. FDA's guidance page for pharmacists11 says tracing documentation is not required "when you dispense a prescription drug to a patient." A pharmacy vial filled from a stock bottle usually carries neither the stock bottle's serial number nor its NDC; FDA's instructions for its MedWatch form13 note that the NDC "is usually not found on dispensed pharmacy prescriptions." Readers who keep the original carton, or a manufacturer's unit-dose pack, will find the lot and expiration printed near the codes, as described in GxRadar's guide to lot numbers and expiration dates.
When the codes are wrong
GxRadar searched openFDA's drug enforcement records1, which begin in 2012, for recalls whose stated reason mentions a barcode. Through Oct. 28, 2026, there were 23 such records: 2 Class I, 10 Class II and 11 Class III. Several records can stem from one recall event.
| Year | Class | What the record describes |
|---|---|---|
| 2015, 2016 | I | IV magnesium sulfate bags whose barcode could scan as heparin |
| 2019 | II | Four IV admixture products whose 2D barcode encoded an expiration date that did not match the printed one |
| 2021 | III | Unit-dose anticonvulsant tablets whose barcode could read as a 500 mg pain reliever |
| 2022 | III | Concentrated sodium chloride vials whose barcode identified them as a paralytic used in anesthesia |
| 2023 | III | Levothyroxine unit-dose blisters, 1 in 40 of which scanned as 200 mcg instead of 125 mcg |
| 2026 | III | Lidocaine injection whose label wrap covered the barcode, making it hard to scan |
Twenty-three records is a small number. It partly reflects codes that usually work and partly a limit of the search, since a recall reason may describe a wrong label without using the word barcode. Unit-dose packages, where a single tablet carries its own code, are covered in GxRadar's piece on unit-dose and blister packaging, and all recall records are on the recalls page.
Two dates come next. Nov. 27, 2027 is when the small-dispenser exemption is set to end, and March 7, 2033 is when the 12-digit NDC and the broader barcode rule take effect.
Sources and notes
- openFDA (2026). Drug recall enforcement reports API
open.fda.gov/apis/drug/enforcement/ - Federal Register (2004). Bar Code Label Requirement for Human Drug Products and Biological Products, final rule, 69 FR 9120
www.govinfo.gov/content/pkg/FR-2004-02-26/pdf/04-4249.pdf - GPO (2025). 21 CFR 201.25, Bar code label requirements
www.govinfo.gov/content/pkg/CFR-2025-title21-vol4/pdf/CFR-2025-title21-vol4-sec201-25.pdf - FDA (2021). Product Identifiers Under the Drug Supply Chain Security Act: Questions and Answers, guidance for industry
www.fda.gov/media/116304/download - FDA (2018). Product Identifier Requirements Under the Drug Supply Chain Security Act, compliance policy guidance
www.fda.gov/media/106198/download - FDA (2026). Drug Supply Chain Security Act Law and Policies
www.fda.gov/drugs/drug-supply-chain-security-act-dscsa/drug-supply-chain-security-act-law- - FDA (2025). Drug Supply Chain Security Act (DSCSA)
www.fda.gov/drugs/drug-supply-chain-integrity/drug-supply-chain-security-act-dscsa - FDA (2026). Exemptions under the Drug Supply Chain Security Act
www.fda.gov/drugs/drug-supply-chain-security-act-dscsa/exemptions-under-drug-supply-chain- - FDA (2026). DSCSA Exemptions from Certain Requirements Under Section 582 of the FD&C Act for Small Business Dispensers Until November 27, 2027
www.fda.gov/media/194424/download?attachment - FDA (2024). DSCSA Exemptions from Section 582(g)(1) and Other Requirements of the FD&C Act for Certain Trading Partners
www.fda.gov/media/182584/download?attachment - FDA (2024). Pharmacists: Utilize DSCSA Requirements to Protect Your Patients
www.fda.gov/drugs/drug-supply-chain-security-act-dscsa/pharmacists-utilize-dscsa-requireme - Federal Register (2026). Revising the National Drug Code Format and Drug Label Barcode Requirements, final rule, 91 FR 10749
www.govinfo.gov/content/pkg/FR-2026-03-05/html/2026-04368.htm - FDA (2026). Instructions for Completing Form FDA 3500
www.fda.gov/safety/medwatch-forms-fda-safety-reporting/instructions-completing-form-fda-35
Superscript numbers in the text link to these sources. GxRadar data (NADAC histories, recall and shortage counts) come from CMS and FDA files described on the sources page. Researched and drafted with AI tools from the sources above and checked with automated and AI-assisted review; not individually reviewed by a pharmacist or physician. Information current as of Nov 3, 2026 and may change. Spot an error? Report it and it will be corrected once confirmed.
Drug data in this article
Levothyroxine 50 mcg tabletCited by
MedWatch, and how problems with medicines get reported to FDAThe Drug Quality and Security Act of 2013Recall depth, public warnings and effectiveness checks, the three parts of a recall strategyThe DSCSA enhanced security deadline of November 2023, and the exemptions that followedWholesale distributor licensing under the DSCSANot health advice. GxRadar is for general information only. Nothing here is medical, pharmacy, legal or financial advice. Do not start, stop or change any medicine based on this site. Talk to your pharmacist or prescriber about your own situation. Laws, prices and program rules described here can change; confirm current details with the official source.