Batch Numbers and Traceability: How a Product Is Tracked from Raw Material to Shelf

Warehouse operator checking coded cartons of finished consumer products against a records sheet

A batch number is the single thread that connects a finished pack on a shelf back to the raw materials, people, equipment and test results that produced it. Traceability is the ability to follow that thread in both directions — forward from an ingredient lot to every customer who received it, and backward from one complaint to everything that batch touched. It is a documentation discipline, not a technology, and it is the reason a competent factory can answer "which units are affected?" in hours rather than guessing and withdrawing everything. For a brand owner, the practical test is simple: pick any code printed on a pack and ask the manufacturer to reconstruct that batch's full history from records.

Key takeaways

  • The batch number is a legal identifier, not a decoration. In most regulated markets a finished cosmetic or supplement pack cannot be sold without one.
  • Traceability is only as strong as its weakest link — usually incoming raw material lot recording, or the point where a bulk batch is split across several packing runs.
  • Forward and backward traceability are separate exercises. A factory can be good at one and weak at the other; both should be tested.
  • Retention samples are part of the record. Without a retained unit of the batch in question, a complaint investigation becomes an argument rather than an analysis.
  • Brand owners usually hold the last mile. The factory can trace to dispatch; if the brand does not record which batch went to which distributor or marketplace shipment, the chain breaks after it leaves the gate.
  • A four-hour mock traceability exercise is the fastest way to test a manufacturer's real capability, and costs nothing but the factory's willingness.

Who this article is for

This guide is written for brand owners, founders and marketing-led teams who outsource production to an OEM, ODM or contract manufacturer and have never had to trace a batch under pressure. It assumes no manufacturing background. It is written from a Malaysian and ASEAN starting point, with European and United States requirements noted where they differ, because most brands here eventually sell into more than one jurisdiction.

What is a batch number, and what does it actually prove?

A batch number — also called a lot number — is a unique code assigned to a defined quantity of product manufactured under the same conditions, from the same materials, within a defined period. It proves membership, and nothing more: it says "these units belong to the same production event." Everything of value flows from that. Once units share an identity, the records attached to that identity apply to all of them.

Two distinctions matter and are routinely confused. First, a batch number is not a serial number: it identifies a group, not an individual unit. Second, a bulk batch and a packing batch are not the same thing. A single 500 kg bulk of cream may be filled on three different days into two different tube sizes. If the factory prints one code across all of them, the brand loses the ability to isolate a filling problem that affected only one of those runs. Good practice is a bulk batch number plus a packing sub-code, so that a defect traceable to the filling line does not condemn stock that was never on it.

Regulators treat the code as mandatory rather than optional. Under the European Union's Cosmetic Products Regulation (EC) No 1223/2009, the batch number is one of the particulars that must appear on the container and packaging of a cosmetic product placed on the market. Malaysia's National Pharmaceutical Regulatory Agency applies the ASEAN Cosmetic Directive's labelling requirements to notified cosmetic products on the same principle: a product that cannot be identified cannot be controlled.

Where does a batch number come from?

The batch number is assigned when a production order is opened, before manufacturing begins — not printed at the end as an afterthought. The moment the code exists, it becomes the filing reference for everything that follows: material issue slips, in-process checks, deviation notes, quality release and dispatch.

The document that carries it is the batch manufacturing record (BMR), sometimes called a batch production record. It is the factory's contemporaneous account of that specific run: which raw material lots were weighed and by whom, which vessel and line were used, the actual process parameters against the target range, who performed each check, and every deviation and its approval. A batch record is written as the batch is made. One completed neatly after the fact, in one handwriting, in one ink, is not a record — it is a reconstruction, and it is a common finding in weak facilities.

Under ISO 22716, the international good manufacturing practice standard for cosmetics, batch documentation and the traceability of raw materials, packaging and finished product are explicit requirements rather than optional good habits. Whether a manufacturer works to ISO 22716, a pharmaceutical GMP scheme, a food safety standard, or several at once, is worth establishing early; the certification scope a contract manufacturer holds determines which record-keeping rules its quality system is actually audited against, and audited requirements behave very differently from voluntary ones.

What does a batch code look like?

There is no universal format. Manufacturers choose a convention, register it in a procedure, and apply it consistently — consistency matters far more than elegance. The four conventions below cover most of what appears on packs in this region.

Format Example How it reads Trade-off
Sequential 00427 The 427th batch since the counter started Simple; reveals production volume to anyone who buys two packs months apart
Date-based 250903A 3 September 2025, first batch of the day Readable by anyone, including customers estimating stock age
Julian date 5246 Day 246 of 2025 Compact for small print areas; opaque to consumers, and to junior staff
Composite / coded SC25I03-02 Skincare, 2025, September, day 03, batch 02 Most informative internally; needs a written key or it becomes unreadable when staff change

Whichever convention is used, three questions decide whether it is fit for purpose. Can the factory state, in writing, exactly what each character means? Is the code physically durable — ink-jet on a curved bottle rubs off, embossing does not? And is the same code recorded on the dispatch note, so the brand can match a shipment to a batch without opening cartons?

Coded and labelled bottles moving along a packing line before cartoning

Coding at the packing line is where bulk batches split into packing runs — the point at which many traceability chains quietly lose resolution.

How does traceability work backwards from a finished pack?

Backward traceability answers "what went into this?" and it is exercised by starting with a code from a real unit and working upstream through six links. Each link is a document, and a break anywhere ends the chain.

  1. Pack to batch record. The printed code retrieves the BMR for that run.
  2. Batch record to material issue. The record names each raw material and packaging component by supplier lot number, not merely by ingredient name. This is the single most common failure point.
  3. Material lot to incoming inspection. Each lot links to the supplier's certificate of analysis and the factory's own verification. What that certificate does and does not guarantee is covered in this guide to certificates of analysis.
  4. Equipment and changeover. The record shows which line was used and what ran on it immediately before, which is where cleaning validation and changeover control become part of the traceability picture.
  5. In-process and release testing. Results for that batch, signed, with the release decision and the name of the person who made it.
  6. Retention sample. A physically retained unit from the same batch, stored under defined conditions, available for comparison against a complaint sample.

Forward traceability runs the other way and is the direction that matters during an incident: given a suspect raw material lot, which finished batches used it, and where did every one of those batches go? A factory that can answer the backward question in a day but needs a week for the forward one has partial traceability, which in a recall is close to none. Both directions should be tested before signing, not after a complaint arrives — and the response plan that sits on top of them is a separate discipline, set out in this guide to recalls and quality complaints.

What must appear on the pack, beyond the batch code?

The batch number rarely travels alone. Most markets expect it alongside a date marking, and the two are read together: the code identifies the run, the date bounds its useful life. Manufacture date, expiry or best-before date, and period-after-opening are three different statements, and they are not interchangeable — the shelf-life data behind them comes from stability testing, not from convention. Which combination is mandatory depends on the product category and the destination market, and the wider set of pack requirements is set out in this guide to product labelling.

One practical constraint is worth raising at artwork stage rather than at the line: the code has to be printed somewhere. A design with no clear, light, flat area of adequate size leaves the operator hunting for space, and codes end up on a fold, over a graphic, or on shrink film that the customer discards. That is a design decision, made months earlier, that quietly degrades traceability.

How long must the records be kept?

Retention periods vary by category and market, and the shortest applicable period is not the one to plan around. As a working rule, batch records and retention samples are held for at least the product's shelf life plus a margin — one year beyond expiry is a common cosmetic benchmark, while supplement and food operations frequently hold longer. Where a product is sold in the European Union, the batch records feed the product information file, which must remain available for ten years after the last batch is placed on the market.

Requirements in this area are tightening rather than relaxing. In the United States, the Food and Drug Administration's Food Traceability Rule under FSMA section 204 introduces additional record-keeping and lot-code-tracking obligations for designated foods, with defined key data elements at each step of the supply chain. The direction of travel across regulated consumer categories is towards more granular, faster-retrievable records — which is an argument for a brand asking about retention policy at selection stage rather than assuming it.

What traceability does not prove

Traceability is often oversold, and it is worth being precise about its limits. It does not prove the product is good — a fully traceable batch can be a fully traceable failure. It does not prove ingredients are what the supplier claimed, only which supplier lot was used; that assurance comes from qualification and testing. It does not prove the record is truthful, only that a record exists. And it does not survive repacking or relabelling by a third party unless that party maintains the link, which is why grey-market and re-exported stock is so often untraceable.

The honest framing is that traceability makes problems bounded and investigable. It converts an unlimited liability into a defined one. That is a large benefit, and it is a different benefit from quality.

Worker scanning a coded carton in a distribution warehouse to record where a batch was despatched

The chain does not end at the factory gate — recording which batch went to which customer is usually the brand owner's responsibility.

Practical guidance: how to test a manufacturer's traceability

The most informative exercise available to a brand owner is a mock traceability challenge, and it can be requested during a factory visit or as part of an audit agenda. It takes a competent factory a few hours. The request is straightforward: choose a finished unit at random, hand over the code, and ask for the full upstream record; then name one raw material lot and ask which finished batches used it and where they went.

  • Ask how long it took, and who had to be involved. A capable system answers from records; a fragile one answers from one person's memory, which is a resignation away from failing.
  • Ask to see one completed batch record in full — including a deviation and its approval. A file with no deviations across a year is a sign of poor recording, not perfect manufacturing.
  • Ask how bulk batches are split across packing runs and whether the sub-runs are separately identifiable.
  • Ask where retention samples are stored, under what conditions, for how long, and ask to see the shelf.
  • Ask for the coding key in writing and attach it to the supply agreement, so the meaning of the code does not depend on institutional memory.
  • Close the last mile internally. Record which batch was despatched to which distributor, marketplace shipment or retail account. Most brands discover this gap only when they need it.

Red flags are equally specific: codes applied by hand with a marker pen; batch records completed in a single sitting after production; raw materials logged by name without lot numbers; no retention samples; and a reluctance to run the mock exercise at all. Any one of these is a conversation. Two together is a decision.

Frequently asked questions

Is a batch number legally required on my product?

In most regulated markets, yes. For cosmetics in the European Union it is a mandatory labelling particular under Regulation 1223/2009, and Malaysia applies equivalent ASEAN Cosmetic Directive labelling requirements to notified products. Supplements and food-category products carry comparable obligations under their own regulations. Because the exact wording and placement rules vary by market and category, brand owners should confirm requirements for each destination market before finalising artwork rather than assuming one label works everywhere.

Who assigns the batch number — the factory or the brand owner?

The manufacturer assigns it, because the code has to correspond to the factory's own production records. A brand owner may request a particular format or ask for a brand prefix, and reasonable requests are usually accommodated at quotation stage. What the brand should always obtain is the written key explaining what each character means, so that a customer enquiry can be answered without a call to the factory.

Can two different products share a batch number?

They should not. A batch number identifies one production event of one product, and re-using a code across products or across years destroys the uniqueness the system depends on. Where a factory uses a short sequential counter, the year should be embedded somewhere in the code so that batch 00427 in 2025 is never confused with batch 00427 in 2029.

What is a retention sample, and how many units should be kept?

A retention sample is a quantity of finished product from a specific batch, stored under defined conditions so it can be examined later if a complaint or query arises. Common practice is to keep at least twice the quantity needed for full retesting, held for the product's shelf life plus a margin. The important detail for a brand owner is not the exact number but whether samples exist, are labelled with the batch code, and are stored somewhere that can be shown on request.

Our contract manufacturer says it is fully traceable. How do we verify that?

By testing it rather than accepting it. Run the mock traceability exercise described above in both directions, time it, and ask to see the underlying documents rather than a summary report. A manufacturer that treats the request as routine is demonstrating the capability; one that treats it as an imposition is answering the question in a different way.

Do small brands with low volumes really need this?

Yes, and arguably more than large ones. A small brand has fewer batches, so a single unresolved complaint can affect a large share of the units in the market. Traceability is also the difference between withdrawing one batch and withdrawing everything, which for a business with limited working capital is frequently the difference between a bad month and a closure.

Sources and further reading

Scope and limitations

This article explains general principles of batch identification and traceability for health, beauty and supplement products, written from a Malaysian and ASEAN starting point. It is not legal or regulatory advice, and retention periods, labelling particulars and record-keeping obligations differ by product category and destination market, and change over time. Specific requirements should be confirmed against the current text of the applicable regulation and, where the exposure is material, with a qualified regulatory adviser. Any figures described as common practice are industry norms observed in contract manufacturing, not statutory minimums.


Creaton Poh is the pen name of Poh Tze Kheng, founder of ORIZI Group — one of Malaysia's most comprehensive one-stop OEM, ODM, private label and contract manufacturing groups, spanning skincare, cosmetics, personal care, perfume and fragrance, supplements, functional food and nutrition, pet care, home care and medical devices. Across six specialised companies and three manufacturing divisions, the Group brings together 20+ years of industry experience, 5,000+ formulations, and internationally recognised quality, manufacturing and regulatory standards. These articles are written to educate, not to promote.

Written by Creaton Poh
Industry Researcher • Author • Vlogger • Manufacturing Strategist
Turning ideas into products. Turning experience into knowledge.

Connect with Poh Tze Kheng on LinkedIn.

Comments

Popular posts from this blog

Why Most Viral Products Die in the Factory: A Manufacturing Timeline Reality Check

From Idea to Shelf: A Practical Guide to Building Your Own Health & Beauty Brand Through OEM/ODM

Private Label vs Custom Formulation: Which Manufacturing Path Fits Your Brand?