Part of the LIMS software guide
Method · Control plan

Sampling plan: how to build one.

Which batch, how many units, how often, which criterion: the method to write a reproducible, defensible sampling plan for your raw materials, finished products and suppliers.

You have to decide what you have sampled and analysed on your raw materials, finished products and at your suppliers: the sampling plan is the document that sets these rules. It answers three concrete questions - on which batch, how many units, and from what result the batch is accepted or rejected - and it remains your responsibility, including when sampling is entrusted to a service provider. This guide is aimed at food manufacturers who build and justify this plan, not at the laboratory that carries out sampling and testing.

Key points
  • A sampling plan describes a sampling and decision rule: which batch, how many units, how often, against which criterion, under whose responsibility.
  • It is built from documented risk, not by copying a template found elsewhere.
  • There are two families of plans: by attributes (counting non-conforming units, ISO 2859 family) and by variables (measuring a quantity, ISO 3951 family).
  • A usable plan is written, versioned and linked to each sampling record and each test report.
  • Sample sizes and frequencies remain choices for the manufacturer to document: this guide gives the method for setting them, not ready-made values.

What is a sampling plan, and how does it differ from a control plan?

The sampling plan is the document that turns an intention to check into reproducible actions: for a category of batches, it specifies what is sampled, in what quantity, at what time and by which rule the result leads to acceptance or rejection. The control plan covers the whole monitoring system and contains the sampling plan as one of its operational chapters.

Definition: a sampling and decision rule

For a family of materials or products, the sampling plan usually fits on one page and covers six elements: the sampling unit, the number of units to take, how to select them, the frequency, the acceptance criterion and the person responsible for sampling as well as for the decision. It must be understandable by an operator who did not take part in writing it, and applicable without interpretation.

It is neither a test protocol nor an analytical method: the sampling plan does not say how to measure a substance, it says what to sample and what is done with the result.

What the control plan adds

The control plan lists all the points monitored - receipt of materials, work in progress, finished product, environment - with the parameters, methods, limits, frequencies and handling of deviations. The sampling plan is the executable part: it turns each control point into sampling actions.

A control plan that states “microbiological analysis on receipt” without a sampling plan cannot be applied: nobody knows how many units to take, from which batch, or what to do with the result. For building the document as a whole, see our page Quality control plan: method and examples in the food industry.

Which parameters must be set for a robust quality sampling plan?

Six parameters are enough to make a quality sampling plan usable. If one is missing, actual sampling fills the gap, and rarely in the same way twice.

ParameterQuestion to settleWhat the plan must statePoint of attention
Batch sizeWhich homogeneous set do I consider a batch?An explicit, identifiable definition: supplier batch number, delivery, production day or pallet, depending on the convention chosenA batch reconstructed after the event, when the non-conformity appears
Sample sizeHow many units should be taken from this batch?A number (example: 5 units per batch), with the associated selection ruleAlways sampling the most accessible units
FrequencyEvery how many batches or receipts?An interval and its trigger (at every receipt, per campaign, after a change of supplier), for example at every receipt for a supplier on probationFrequency confused with sample size
Acceptance criterionFrom what result is the batch outside the criterion?The applicable limit and its written source: regulatory requirement, customer or supplier specification, justified internal thresholdAn internal threshold that refers to no reference document
OwnerWho samples, who decides, who records?A function, not a name: sampling by the goods-in operator, decision by the quality manager (example)An implicit responsibility, and therefore missing on the day someone stands in
Sampling traceabilityHow do you link the sample to the batch, the report and the product?Sample ID, date and time, operator, location, storage and transport conditions, link to the reportA sample ID not carried over to the test report

The same table works upstream: a raw material control plan is read line by line, one line per purchased item, starting from the supplier batch. The figures in each line are not copied from one site to another: they are decided, then justified in writing, as the rest of this article explains.

From risk to the batch decision

  1. RiskHazard, consequence of an undetected defect
  2. BatchHomogeneous, identifiable, traceable
  3. Units and selectionHow many, and by which selection rule
  4. Decision ruleAcceptance criterion and its written source
Non-representative sampleSampling not tracedFrequency confused with size

Order matters: risk first, then the batch, then the decision rule before the number of units.

How to build a sampling plan, step by step

Construction follows a precise order: risk first, then the batch, then the decision rule before choosing the number of units. This order avoids plans that look rigorous but detect nothing useful.

Step 1 - Start from risk, not from a template

For each material, product or supplier, identify the characteristic or hazard you are trying to detect, and the consequence of an undetected defect. A critical item, a supplier already in difficulty or a sensitive process does not deserve the same plan as a stable material from a supplier assessed for years. This prioritisation must exist in writing: risk analysis, history of non-conformities, supplier assessment results.

Step 2 - Define the batch before talking about the sample

A batch must be homogeneous, identifiable and traceable. If you cannot name the batch, the analysis result cannot be linked to any quantity of product: it becomes information with no operational consequence. The batch reference must appear both on the sampling record and on the sample itself.

Step 3 - Choose the sampling unit and how to select it

The sampling unit (a sack, a carton, a sales unit) must be smaller than the batch and large enough to allow the planned test. The selection must then be described: random sampling, stratified sampling across several areas of the batch, or sampling of units chosen for their representativeness. An instruction such as “take a few sacks” is not a rule.

Step 4 - Set the decision rule and its source

The acceptance criterion can take three forms: zero non-conforming units for a critical hazard, a tolerated number of non-conforming units for a minor defect, or a numerical threshold for a measurement. For microbiology, Annex I to Regulation (EC) No 2073/2005 sets for certain foods both the plan (n, c) and the limits (m, M): this is the reference to use where it applies. In all cases, write down the source of the criterion and the action planned when the criterion is not met: goods-in block, supplier complaint, re-analysis, documented concession.

Step 5 - Choose between attributes and variables

This question is dealt with in the next section: it determines the type of plan, and therefore how to decide, not just how to count.

Step 6 - Write the sampling procedure and its record

Who samples, with what clean equipment, in what container, with what identification, within what time and at what transport temperature, for which recipient. This is where quality control sampling succeeds or fails: a sample that is correctly identified, stored and sent is worth more than a sophisticated plan applied approximately.

  • Review before releasing the plan
  • Batch defined and identifiable.
  • Number of units filled in.
  • Frequency and trigger written down.
  • Acceptance criterion with its source.
  • Owner named by function.
  • Sampling record in place.
  • Document version and date.

Step 7 - Test the plan over a defined period, then revise it

Run the plan over a limited period, then look at what it produces: non-conformities detected, non-conformities missed, time spent, cost of analyses, supplier disputes. These observations lead to adjusting the frequency or number of units, and to dating the revision. A plan never revised ends up matching neither actual purchases nor your customers' requirements.

Should you sample by attributes or by variables?

The choice depends on the nature of the judgement you have to make, not on the team's preference. An attributes plan decides on a unit-by-unit finding of conformity; a variables plan decides on a numerical value and its variability.

QuestionBy attributesBy variables
What is assessedEach unit is conforming or non-conforming, or defects are countedA continuous quantity, compared with a limit
Data requiredA simple finding, reproducible by several operatorsA numerical result, with known variability
Family of plansISO 2859, sampling procedures for inspection by attributesISO 3951, sampling procedures for inspection by variables
Conditions of useDefect observable without measurementProcess under statistical control, distribution close to normal
Examples in the food industryPackaging integrity, appearance, presence of foreign bodiesContent, moisture, pH, result of a test report
Main limitationLittle information on the margin relative to the limitRequires usable data and a well-understood method

In both families, standard tables are chosen from an AQL (acceptance quality limit), that is the quality level still considered acceptable for a given plan. The AQL is used to select a plan, not to qualify an isolated batch: it is a design parameter, to be decided and written down in your document just like the sample size.

In practice, the two approaches often coexist: inspection by attributes at goods-in, then use of the numerical result in the test report for the decision on batch compliance. What matters is that each decision refers to a written rule and an identifiable criterion source. The goods-in approach is detailed on our raw material incoming inspection page.

Which mistakes most often distort a sampling plan?

Three mistakes recur in almost every plan reworked after an audit or a non-conformity. They are not about statistics, but about how the plan is written and applied.

A non-representative sample

Always sampling the top pallet, the carton already opened or the most accessible area produces a result that describes the place sampled, not the batch. The defect is corrected in the wording of the plan: describe the selection rule and check on the ground that it is followed, including at the end of the day and during peaks of activity.

Sampling that is not traced

Without a sample ID, a date and a batch reference, the result cannot be linked either to the product delivered or to the supplier concerned. The traceability required by Article 18 of Regulation (EC) No 178/2002 does not stop at commercial documents: it is also checked along the path between the sample and the test report.

Confusing frequency and size

Writing “one check per delivery” does not say how many units to take; writing “three units” does not say how often. These two parameters answer two different questions - how many batches to cover, and how much confidence to place in each batch - and must appear on two separate lines of the plan.

And a fundamental mistake: a plan never tested against reality

A plan can be perfectly written and no longer match anything: a purchased item that has changed supplier, a modified pack format, a new regulatory parameter. A forgotten revision date is one of the most frequent audit findings, because it is immediately visible on the document.

What should be documented to be ready on audit day?

An auditor does not read your plan for pleasure: they start from a result, trace it back to the sample and then the batch, and check that the decision taken matches a written rule. The elements to keep follow from this path.

  • The plan itself, versioned, dated, with its scope and revision history.
  • The link between each line of the plan and the risk analysis: why this material, this parameter, this frequency.
  • For each line: batch targeted, planned number of units, acceptance criterion and source of the criterion.
  • The sampling record: sample ID, batch, date and time, operator, quantity, packaging, any deviation from the plan. A paper sheet is fine, provided the fields are filled in the same way by all teams; our Excel control plan template can serve as a basis for structuring these columns.
  • The link between sample, test report and decision, including when the analysis is subcontracted.
  • Non-conforming results and the follow-up: block, supplier complaint, re-analysis, action on the process.
  • Evidence of a periodic review of the plan, with a record of changes and the effective date.

Two texts frame this system without replacing it. Regulation (EU) 2017/625 deals with sampling carried out as part of official controls (Articles 14, 34 and 35): it does not exempt operators from defining their own plan. And when sampling is carried out by the laboratory, ISO/IEC 17025:2017 (§ 7.3) requires it to have a sampling plan and method available at the sampling site: two documents to request, then compare with your own.

Where does software come in?

Tracklab comes in after sampling: the platform gathers test reports from your suppliers and laboratories, extracts the results and calculates for each parameter a compliance status against your criteria and the four European regulations it builds in and keeps up to date (pesticides, contaminants, microbiological criteria, plastic materials in contact with food). Each calculation keeps a trace of the threshold, regulation, its version and its date: the history is traceable and auditable. In the event of a deviation, a re-analysis or a request to the supplier can be recorded on the same report.

Tracklab does not carry out sampling and does not decide on batch acceptance: that decision stays with your quality teams. It collects reports, calculates the status of each parameter against your criteria, keeps “not detected” results and tracks the coverage of your analyses per product × supplier pair. For details, see Tracklab's LIMS software page.

If you want to see how your acceptance criteria apply to your own reports, you can book a meeting with the Tracklab team.

Sources and references

The texts below underpin the requirements cited on this page; always consult their current consolidated version on EUR-Lex.

  • Regulation (EC) No 178/2002, Article 18 (traceability) - consolidated text on EUR-Lex
  • Regulation (EC) No 2073/2005, Annex I (microbiological criteria and n, c, m, M plans) - consolidated text on EUR-Lex
  • Regulation (EU) 2017/625 on official controls, Articles 14, 34 and 35 (sampling and second expert opinion) - text on EUR-Lex
  • NF ISO 2859-1, sampling procedures for inspection by attributes - AFNOR record
  • ISO 3951-1:2022, sampling plans for inspection by variables indexed by AQL - AFNOR record
  • ISO/IEC 17025:2017, § 7.3, sampling plan and method when the laboratory takes the samples
Before / after

Improvised sampling or a written rule.

A sampling plan is judged on its reproducibility: two operators must sample and decide in the same way.

Improvised sampling

“Take a few sacks”

Written plan

A sampling and decision rule

  1. Improvised sampling: Always the top pallet or the opened carton

    Written plan: A selection rule described and checked on the ground

  2. Improvised sampling: A sample with no ID or batch reference

    Written plan: A traced link between sample, batch, report and decision

  3. Improvised sampling: An internal threshold that refers to no document

    Written plan: A dated acceptance criterion, with its source

Frequently asked questions

Sampling plan: your questions.

Do you need a sampling plan for every raw material?

Not necessarily one page per item: the plan can be organised by family of risks and purchasing conditions. However, each purchased item must be explicitly linked to a line of the plan, with its reference batch and criterion. An orphan item is a control point that exists only on paper.

How many units should be sampled?

There is no universal value: the number depends on the risk, the homogeneity of the batch, the precision of the test and the cost of the analysis. ISO 2859 and ISO 3951 provide usable tables, provided the AQL and inspection level are set first; for certain microbiological criteria, Regulation (EC) No 2073/2005 sets n and c directly. Without a standard table, the manufacturer writes its rule and justifies it; until it is decided, the plan line remains incomplete and cannot be applied.

Can you rely solely on the supplier's test reports?

That is a plan decision, not a given. Using the supplier's report as the basis for decision assumes an assessed supplier, known methods and a defined supply frequency; otherwise, verification analyses must be planned. In both cases, the frequency and acceptance criterion must be written down.

Must the contract laboratory provide its sampling plan?

Yes, when it carries out the sampling itself: ISO/IEC 17025:2017 (§ 7.3) requires it, with a method available at the sampling site. If sampling is done by your teams, your plan applies, and the laboratory only deals with the sample received.

How often should the plan be reviewed?

The interval is set by the manufacturer, according to how stable its purchases and processes are. Triggers are more useful than an annual date: repeated non-conformity, change of supplier or formulation, process change, new customer or regulatory requirement. Each review must be dated and traced.

Laboratory analyses module · demo on your data

Your criteria applied to your reports?

Tracklab gathers reports from your suppliers and laboratories and calculates the compliance status of each parameter, against your criteria and the regulations. The decision on the batch stays with your quality teams.

Our clients

Reliable supplier data, managed with Tracklab.

Their quality and purchasing teams collect, control and leverage their supplier data with Tracklab.

150+

companies supported

40,000+

suppliers referenced

90,000+

products and ingredients

Customer testimonial · Bouvard
“Tracklab has eliminated the blind spots that existed in our document monitoring. Every document is analysed, every change is detected and every decision is traceable. This has enabled us to take a real step forward in terms of professionalism and credibility, particularly with auditors and customers.”
EVEllen V.Quality Director, Bouvard Pro
CyberVadis
CyberVadis Excellence rating

Independent assessment of our cybersecurity framework and of the protection of the data entrusted to Tracklab.

They use Tracklab

  • Somapro
  • Jean Niel
  • La Fournée Dorée
  • Nautilus
  • Cérélia
  • Will&Co
  • Neta
  • Diffusions Aromatiques