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
Container counts for incoming starting materials under WHO’s n, p and r rules, shown alongside the hypergeometric chance of missing a wrong container.
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 plan | Formula | Containers sampled | Tested in full | WHO’s intended use |
|---|---|---|---|---|
| n plan | 1 + √N, rounded (all if N ≤ 4) | 7 of 40 | 1 composite | Uniform material from a recognised source, used with great caution. WHO says it is not statistically based. |
| p plan | 0.4 × √N, rounded up (at least 2) | All 40 | 3 pooled samples | Uniform material from a recognised source, mainly to test identity: every container is identity-tested, then the samples are pooled. |
| r plan | 1.5 × √N, rounded up | All 40 | 10 individual samples | Material 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.
| Class | AQL | Ac / Re | Found in 200 | Outcome |
|---|---|---|---|---|
| Critical: crack or chip on the sealing surface | 0.065 | 0 / 1 | 0 | Accept |
| Major: out-of-round neck | 0.65 | 3 / 4 | 2 | Accept |
| Minor: cosmetic scuff | 2.5 | 10 / 11 | 11 | Reject |
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 plan | Working | Result |
|---|---|---|
| n plan | 1 + √6 = 1 + 2.449 = 3.449, rounded to 3 | 3 of 6 drums opened, 1 composite |
| p plan | 0.4 × √6 = 0.980, up to 1, and Table 1’s least is 2 | All 6 opened, 2 pooled samples |
| r plan | 1.5 × √6 = 3.674, up to 4 | All 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.
| Decision | Who makes it | What the rule asks for |
|---|---|---|
| The sampling plan itself | Drafted by QC, approved by the quality unit | 21 CFR 211.160(a): sampling plans, and changes to them, are “reviewed and approved by the quality control unit”. |
| How many containers | QC, with the supplier’s history | 21 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 identity | QA, under a validated procedure | EU 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 materials | QC, with the supplier’s audits | EU GMP Annex 8, point 5: the number of samples is “determined statistically and specified in a sampling plan”. |
| The lot | The quality unit | 21 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.
- WHO Technical Report Series 929, Annex 4 (2005). Section 5, Table 1 and the 40-container example in Appendix 5.
- MIL-STD-105E (10 May 1989). Tables I and II-A, Table X-J-1, and 4.7 and 4.9.1. Check your own copy of ISO 2859-1 or ANSI/ASQ Z1.4, which your SOP will name.
- NIST Engineering Statistics Handbook, 6.2.3.1. How the three standards are related.
- 21 CFR 211.84. Testing and approval or rejection of components, containers and closures.
- 21 CFR 211.160. Approval of sampling plans.
- EU GMP Annex 8. Sampling of starting and packaging materials, points 2 to 5.
- FDA, Testing of Glycerin and other High-Risk Drug Components (May 2023). A sample from each container, for DEG and EG.
- FDA, Testing of Alcohol (Ethanol) and Isopropyl Alcohol for Methanol (October 2023). The methanol limit test on each container.
Each was read on 24 November 2026.
Where this runs in Seal.
- Raw material management in Seal
The receipt’s record: containers selected, sampling location, quantity, tools, resealing and custody, with each composite’s contributors.
- Seal LIMS
Incoming samples, test methods, specifications and release decisions linked directly to inventory lots.
- Seal QMS
Supplier qualification, audits, SCARs and incoming material deviations on the same platform.
- Best LIMS for GxP
How LabWare, LabVantage, STARLIMS, SampleManager and Seal compare for incoming QC testing.
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.