Skip to main content

Incoming sampling plan, by WHO or ISO 2859-1.

Calculate WHO TRS 929 container counts (√N + 1, p and r) or ISO 2859-⁠1 / ANSI Z1.4 AQL sample sizes and Ac/Re numbers for Word.

Incoming lot and method

Sampling standard

Container counts for incoming starting materials under WHO’s n, p and r rules, shown alongside the hypergeometric chance of missing a wrong container.

containers

Sampling plan for API-⁠X incoming starting material, Lot 26-⁠114 (40 fibre drums)

n plan (1 + √N)
7 containers17.5% chance of catching 1 mislabelled container
p plan (0.4 × √N)
3 pooled samplesAfter identity-testing all 40 containers
r plan (1.5 × √N)
10 full-test samplesFor non-uniform or less-known sources
WHO planFormulaContainers sampledTested in fullWHO’s intended use
n plan1 + √N, rounded (all if N ≤ 4)7 of 401 compositeUniform material from a recognised source, used with great caution. WHO says it is not statistically based.
p plan0.4 × √N, rounded up (at least 2)All 403 pooled samplesUniform material from a recognised source, mainly to test identity: every container is identity-tested, then the samples are pooled.
r plan1.5 × √N, rounded upAll 4010 individual samplesMaterial suspected to be non-uniform, or from a little-known source: every container is identity-tested, then this many are tested one by one.

Under the n plan, the chance of missing every wrong container is 18.1% when 1 in 5 are wrong.

Neither FDA (21 CFR 211.84), EU GMP Annex 8 nor Health Canada requires √N + 1. EU GMP Annex 8 expects an identity test on every container of starting material unless a validated reduced-sampling procedure applies.

WHO does not recommend the n plan for manufacturers’ laboratories that analyse and release or reject each consignment, nor any sampling plan for identification tests of starting materials.

High-risk excipients (such as glycerin, propylene glycol and sorbitol for DEG/EG, or ethanol and isopropyl alcohol for methanol) and parenteral starting materials normally require testing every container.

Where each figure comes from.

The container plans are WHO TRS 929 Annex 4 (2005): n = 1 + √N rounded, with every container sampled at N ≤ 4, and p = 0.4√N and r = 1.5√N, both rounded up. Its Table 1 starts every plan at 2, so p is never 1. Where that table and the formula differ, at 13 and 22 containers, the tool keeps the higher figure.

The AQL plans are Table I and Table II-⁠A of MIL-⁠STD-⁠105E, the public standard that ISO 2859-⁠1 and ANSI/ASQ Z1.4 carry on; NIST says “the basic tables remain the same”. An arrow moves both the sample size and the acceptance number to the plan it points at. What a plan accepts is the binomial distribution, as in that standard’s Table X.

Worked: one sample, three defect classes.

Example, all invented: lot V-⁠2207 is 4,800 glass vials. At Level II a lot of 3,201 to 10,000 is code L, so 200 vials are taken at random and each is judged against every class.

ClassAQLAc / ReFound in 200Outcome
Critical: crack or chip on the sealing surface0.0650 / 10Accept
Major: out-of-round neck0.653 / 42Accept
Minor: cosmetic scuff2.510 / 1111Reject

Eleven scuffs reach the minor class’s rejection number, so the lot is rejected on that class although the other two pass. The critical class shows why an acceptance number of 0 isn’t proof of none: a lot with 1.14% of its vials cracked still passes this plan one time in ten.

A delivery of six drums

WHO planWorkingResult
n plan1 + √6 = 1 + 2.449 = 3.449, rounded to 33 of 6 drums opened, 1 composite
p plan0.4 × √6 = 0.980, up to 1, and Table 1’s least is 2All 6 opened, 2 pooled samples
r plan1.5 × √6 = 3.674, up to 4All 6 opened, 4 tested one by one

If one of the six drums is wrong, the n plan opens it half the time.

What the plan decides, and who signs it.

DecisionWho makes itWhat the rule asks for
The sampling plan itselfDrafted by QC, approved by the quality unit21 CFR 211.160(a): sampling plans, and changes to them, are “reviewed and approved by the quality control unit”.
How many containersQC, with the supplier’s history21 CFR 211.84(b): component variability, confidence levels, precision, “the past quality history of the supplier” and the quantity needed for analysis and reserve.
Fewer than every container for identityQA, under a validated procedureEU GMP Annex 8, points 2 and 3: only where “no single container” can be wrongly labelled, and improbable for parenterals or an unaudited broker.
Packaging materialsQC, with the supplier’s auditsEU GMP Annex 8, point 5: the number of samples is “determined statistically and specified in a sampling plan”.
The lotThe quality unit21 CFR 211.84(a): withheld from use until sampled, tested or examined, and released.

Where these plans stop.

AQL is not a promise about one lot. Read the 10-in-⁠100 line above before you set one: it is the lot your plan still lets through one time in ten.

Normal inspection only. MIL-⁠STD-⁠105E moves to tightened inspection when 2 of 5 or fewer consecutive lots are rejected, and back after 5 in a row are accepted (4.7.1 and 4.7.2). A single sampling SOP without that rule isn’t the scheme.

Special levels have a floor. The standard’s own example: S-⁠1 goes no further than a sample of 8, so it is no use at AQL 0.10, where the smallest sample is 125 (4.9.1).

Counts of units only. Each unit conforms or it doesn’t. For several defects on one unit, or a measured value, use a plan made for it.

None of them proves identity. WHO says sampling plans “are not recommended for sampling of starting materials for identification tests”. Raw material sampling plans sets out what FDA, the EU and Health Canada expect of each container, with a plan for 34 drums, and when √n + 1 or AQL applies.

Sources.

Each was read on 24 November 2026.

Tie every drum, sample and CoA to lot release.

In Seal each receipt resolves your approved sampling plan against the containers that arrived, keeping every drum, composite contributor and seal number on the record.