Starting Material Sampling Plan Calculator (n, p and r Plans)
WHO’s n, p and r sampling plans per batch, with the identity rule and a sampling sheet.
Try before you buy.
- Free preview: the method, the limits that apply and the verdict for your input, with the first rows of a list; computed figures stay hidden until the pass.
- Locked until you unlock it: download and print.
- Unlock: Premium pass, ₹799 for 30 days or ₹249 for 1 week, a one-time payment that never renews. Unlock: Premium pass, $19.99 for 30 days or $7.99 for 1 week, a one-time payment that never renews.
Ways to unlock shows how to get the full result.
Printing this result is locked in the free preview.
Locked in the free preview. Opens the ways to unlock this result.
Locked in the free preview. Batch runs unlock with a pass.
Locked in the free preview. Query results unlock with a pass.
About the Starting Material Sampling Plan Calculator (n, p and r Plans)
Works out how many containers of a batch of starting material to sample under the three plans of the WHO guidelines for sampling of pharmaceutical products (TRS 929, Annex 4): the n plan (n = 1 + √N), the p plan (p = 0.4 √N) and the r plan (r = 1.5 √N), for N containers received. It names the plan WHO gives for your material — uniform or not, herbal, from a recognized source or not, for full testing or mainly for identity — and applies EU GMP Annex 8's rule on testing the identity of every container.
The n value is rounded to the nearest whole number with every container sampled up to 4, p and r are rounded up, as the WHO text says, and the tool shows where WHO's own Table 1 lists another value. It chooses the containers to open (or the samples to test individually) at random, splits a p plan's samples into pools, and lays out a sampling sheet for the batch record. A list of batches runs in one go. Without a pass it shows a free preview: the plan, the rules that apply and the verdict, with every computed figure hidden; the figures, the working, the sheet and the PDF, Excel and Print exports unlock with a Premium pass.
How to use it
- Enter the number of containers in the batch. Each batch of a delivery is sampled on its own; add the material, batch and supplier for the sheet if you like.
- Say whether the material is uniform, suspected to be non-uniform or a herbal starting material, whether its source is recognized, what the sampling is mainly for and who samples.
- Tick what applies to identity testing: a validated procedure that allows fewer containers, use in parenteral products, supply through a broker.
- Read the plan, the identity rule, the containers chosen at random and the sampling sheet; Draw the containers again picks others.
- For several batches, choose A list of batches and paste one per line. Without a pass the report stays a free preview with its figures hidden; its PDF, Excel and Print unlock with a Premium pass.
Examples
N = 40
n plan: 1 + √40 = 7.32 → 7 containers · p plan: 0.4 × √40 = 2.53 → 3 final samples · r plan: 1.5 × √40 = 9.49 → 10 samples tested individually
These are the figures of Appendix 5 of the WHO guidelines.
N = 13, n plan
1 + √13 = 4.61 → 5 by simple rounding; Table 1 lists 4 for 7–13 containers
The tool flags such cases and lets you follow the formula, Table 1 or the larger value, as your SOP sets.
N = 22, material not uniform
1.5 × √22 = 7.04 → 8 by rounding up; Table 1 lists 7 for 17–22 containers
Common uses
- Warehouse and quality control staff planning the sampling of an incoming delivery, batch by batch.
- Regulators and procurement agencies sampling consignments with the WHO plans.
- Auditors and trainers checking a sampling SOP against the WHO formulas and Table 1.
- Preparing the sampling sheet with the containers chosen at random for the batch record.
The three plans
- n plan: for uniform material from a recognized source, used with great caution. Samples are taken from n containers chosen at random; each is checked for appearance and identity, and if they agree they are combined into one composite sample for testing. WHO does not recommend it for manufacturers' control laboratories that analyse and release or reject each consignment, and with 4 containers or fewer every one is sampled.
- p plan: for uniform material from a recognized source when the main purpose is the identity test. A sample is taken from every container and tested for identity; if they agree, they are pooled into p final samples.
- r plan: for material suspected to be non-uniform or from a source that is not well known, and for herbal starting materials. A sample is taken from every container and tested for identity; if they agree, r samples chosen at random are tested individually and then combined for the retention sample.
WHO wrote these plans mainly for drug regulatory authorities and procurement agencies and notes that they are not necessarily appropriate for manufacturers, although the principles help.
Identity of every container
EU GMP Annex 8 says that the identity of a complete batch of starting materials can normally only be ensured if individual samples are taken from all the containers and an identity test is performed on each. Sampling only a proportion is permissible with a validated procedure, which takes account of the manufacturer and supplier, their quality system, the manufacturing conditions and the material. Annex 8 calls such a procedure improbable for materials supplied by intermediaries such as brokers where the source is unknown or not audited, and for starting materials of parenteral products. WHO likewise says sampling plans are not recommended for sampling starting materials for identification tests. In the US, 21 CFR 211.84 requires at least one identity test on each component and bases the number of containers on statistical criteria, the supplier's history and the quantity needed.
WHO’s Table 1 and the formula
Table 1 of the WHO guidelines lists n for up to 90 containers, p for up to 225 and r for up to 44. For most N it agrees with the formulas, but not everywhere: for n it lists 2 for 3 containers and 3 for 4 (the text samples every container up to 4) and 4 for 13 (the formula gives 5); for p it lists 2 for 2 to 6 containers (the formula gives 1); for r it lists 7 for 22 containers (the formula gives 8). The report shows both values whenever they differ, and you choose which one to use.
Sources
- WHO TRS 929, Annex 4: WHO guidelines for sampling of pharmaceutical products and related materials — the plans, Table 1 and Appendix 5
- EU GMP, EudraLex Volume 4 — Annex 8 (sampling of starting and packaging materials) and Chapter 5 (production)
- 21 CFR 211.84 — testing and approval or rejection of components
Limitations
- The plans are WHO’s examples for starting materials. Packaging materials and finished products need sampling standards such as ISO 2859-1, as WHO says.
- Your approved sampling procedure and your regulator decide which plan, rounding and table you follow.
- The containers are numbered 1 to N; the random choice changes when you draw again, so keep the sheet that was used.
- Up to 2,000 containers per batch and 200 batches per list.
- MySmartCoPilot is not affiliated with or endorsed by the World Health Organization or the European Commission; the tool applies their published guidance.
Privacy
On this device: nothing is sent
Your entries stay in this browser and are never sent anywhere. The PDF and Excel files are made on your device.
Frequently asked questions
What do I get without a pass?
Without a pass, Starting Material Sampling Plan Calculator (n, p and r Plans) shows the method, the limits that apply and the verdict for your input, with the first rows of a list; computed figures stay hidden until the pass. Until you unlock it, the result can’t be downloaded or printed. A Premium or Ultimate pass, a one-time payment that never renews, unlocks the full result. The pricing page lists the passes and their prices.
What is the √N + 1 sampling plan?
It is the n plan of the WHO guidelines: n = 1 + √N containers out of N, chosen at random, for uniform material from a recognized source. For 40 containers it gives 1 + 6.32 = 7.32, so 7 containers.
Is n rounded up or to the nearest whole number?
The WHO text says the value of n is obtained by simple rounding, and that every container is sampled when there are 4 or fewer. p and r are rounded up to the next whole number. If your SOP rounds n up, tick that option and the report says so.
Do I have to test the identity of every container?
Under EU GMP Annex 8, normally yes: individual samples from all containers, each identity tested, unless a validated procedure allows fewer, which Annex 8 calls improbable for brokers with an unknown or unaudited source and for parenteral products. The p and r plans sample every container anyway.
Why does the report show two numbers for some batches?
Because WHO’s Table 1 does not match the formulas for a few values of N (3, 4 and 13 containers for n, 2 to 6 for p, 22 for r). Both are shown, and you choose the formula, the table or the larger value.
How are the containers chosen?
At random with the browser’s cryptographic random number generator, every container equally likely, as WHO asks for when it says to number the units and select them with random numbers.
Can I use it for packaging materials or finished products?
No. WHO sends those to defined sampling standards such as ISO 2859-1 or ANSI/ASQC Z1.4, which this tool does not apply.