Test version (beta). This planner is under development and is published for evaluation. Results may contain errors and the method may change without notice. Check the plan against the edition of the standard named in your contract.
Testing and quality Beta
AQL Sampling Planner
From the lot and the inspection level to the code letter and the sample size and, when you need it, from the code letter and the AQL to the acceptance plan. The planner reads the tables of the single-sampling scheme for normal inspection as you move the controls, shows where you are in each table and gives you the result as a one-page record.
Results
Table 1 · Sample size code letters
Your lot size picks the row and your inspection level the column; they meet at the code letter.
| Lot size | Special inspection levels | General inspection levels | |||||
|---|---|---|---|---|---|---|---|
| 2 to 8 | A | A | A | A | A | A | B |
| 9 to 15 | A | A | A | A | A | B | C |
| 16 to 25 | A | A | B | B | B | C | D |
| 26 to 50 | A | B | B | C | C | D | E |
| 51 to 90 | B | B | C | C | C | E | F |
| 91 to 150 | B | B | C | D | D | F | G |
| 151 to 280 | B | C | D | E | E | G | H |
| 281 to 500 | B | C | D | E | F | H | J |
| 501 to 1,200 | C | C | E | F | G | J | K |
| 1,201 to 3,200 | C | D | E | G | H | K | L |
| 3,201 to 10,000 | C | D | F | G | J | L | M |
| 10,001 to 35,000 | C | D | F | H | K | M | N |
| 35,001 to 150,000 | D | E | G | J | L | N | P |
| 150,001 to 500,000 | D | E | G | J | M | P | Q |
| 500,001 and over | D | E | H | K | N | Q | R |
Tap a level heading to select it.
Add the AQL and get the acceptance plan (optional)
Many inspections only need the sample size; the AQL is agreed later. When you have it, set it on the bar: Table 2 gives Ac and Re for your code letter, and an arrow may change the sample size.
Table 2 · Single sampling plans for normal inspection
Normal inspection, single sampling plan. Your code letter picks the row and your AQL the column; they meet at the plan, Ac and Re. An arrow means there is no plan at that sample size: follow it to the first plan above or below and take the sample size of that row.
| Code letter | Sample size | Acceptable quality levels (normal inspection) | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Ac Re | Ac Re | Ac Re | Ac Re | Ac Re | Ac Re | Ac Re | Ac Re | Ac Re | Ac Re | Ac Re | ||
| A | 2 | ↓ | ↓ | ↓ | ↓ | ↓ | ↓ | ↓ | ↓ | ↓ | ↓ | 0 1 |
| B | 3 | ↓ | ↓ | ↓ | ↓ | ↓ | ↓ | ↓ | ↓ | ↓ | 0 1 | ↑ |
| C | 5 | ↓ | ↓ | ↓ | ↓ | ↓ | ↓ | ↓ | ↓ | 0 1 | ↑ | ↓ |
| D | 8 | ↓ | ↓ | ↓ | ↓ | ↓ | ↓ | ↓ | 0 1 | ↑ | ↓ | 1 2 |
| E | 13 | ↓ | ↓ | ↓ | ↓ | ↓ | ↓ | 0 1 | ↑ | ↓ | 1 2 | 2 3 |
| F | 20 | ↓ | ↓ | ↓ | ↓ | ↓ | 0 1 | ↑ | ↓ | 1 2 | 2 3 | 3 4 |
| G | 32 | ↓ | ↓ | ↓ | ↓ | 0 1 | ↑ | ↓ | 1 2 | 2 3 | 3 4 | 5 6 |
| H | 50 | ↓ | ↓ | ↓ | 0 1 | ↑ | ↓ | 1 2 | 2 3 | 3 4 | 5 6 | 7 8 |
| J | 80 | ↓ | ↓ | 0 1 | ↑ | ↓ | 1 2 | 2 3 | 3 4 | 5 6 | 7 8 | 10 11 |
| K | 125 | ↓ | 0 1 | ↑ | ↓ | 1 2 | 2 3 | 3 4 | 5 6 | 7 8 | 10 11 | 14 15 |
| L | 200 | 0 1 | ↑ | ↓ | 1 2 | 2 3 | 3 4 | 5 6 | 7 8 | 10 11 | 14 15 | 21 22 |
| M | 315 | ↑ | ↓ | 1 2 | 2 3 | 3 4 | 5 6 | 7 8 | 10 11 | 14 15 | 21 22 | ↑ |
| N | 500 | ↓ | 1 2 | 2 3 | 3 4 | 5 6 | 7 8 | 10 11 | 14 15 | 21 22 | ↑ | ↑ |
| P | 800 | 1 2 | 2 3 | 3 4 | 5 6 | 7 8 | 10 11 | 14 15 | 21 22 | ↑ | ↑ | ↑ |
| Q | 1,250 | 2 3 | 3 4 | 5 6 | 7 8 | 10 11 | 14 15 | 21 22 | ↑ | ↑ | ↑ | ↑ |
| R | 2,000 | 3 4 | 5 6 | 7 8 | 10 11 | 14 15 | 21 22 | ↑ | ↑ | ↑ | ↑ | ↑ |
- ↓ use the first sampling plan below the arrow
- ↑ use the first sampling plan above the arrow
- If the sample size equals or exceeds the lot size, do 100 % inspection
- Ac acceptance number · Re rejection number
- your row
- your column
- your cell
- arrow path
- plan used
Drag the bar or tap an AQL heading to change the AQL.
How to read this
The AQL is an index of the sampling plan tied to quality performance over a series of lots; it does not mean that this share of nonconforming units is acceptable in this lot, and it is not the chance that the sample catches a problem. Count nonconforming units, not defects: a unit with several defects counts once, and each class of defects (critical, major, minor) has its own AQL and its own plan. The sample must be drawn at random from the whole lot. Normal inspection is the starting point; the scheme switches to tightened or reduced inspection by the rules of the standard as results accumulate, and those rules are not in this beta.
What is the chance that this sample detects a given defect rate? Sampling & Risk
Need the inspection done, witnessed or documented?
We plan the sample with you, inspect on site or witness the supplier's inspection, and document the result so it holds up in front of a supplier or a lender.
Take the plan with you
A one-page record of this calculation, with the table or tables you used highlighted, as a PDF or as an Excel workbook, written in your browser. The PDF opens in a new tab; the workbook is downloaded.
Calculated in your browser. Nothing you enter or download is sent or stored.
Method
How it works
Two tables, read in order. Table 1 takes the lot size (the row) and the inspection level (the column) and gives a sample size code letter, and with it the sample size: for many inspections that is all that is needed, because the AQL is agreed later. Table 2, when you add the AQL, takes that letter (the row) and the AQL (the column) and gives the plan: the sample size n of the row, the acceptance number Ac and the rejection number Re. Where the cell holds an arrow there is no plan at that sample size: follow the arrow to the first plan above or below and take the sample size of that row. If the sample size reaches the lot size, inspect the whole lot. The planner does exactly this as you move the controls and marks the path in both tables.
lot size × inspection level → code letter → sample size
code letter × AQL → Ac, Re (optional)
arrow → first plan in its direction, with the n of that row
- n
- sample size: units to inspect, drawn at random
- Ac
- acceptance number: accept with this many nonconforming units or fewer
- Re
- rejection number: reject with this many or more (Re = Ac + 1)
- AQL
- acceptance quality limit, in nonconforming units per 100
- 01
The lot comes first
Define the lot before sampling: a shipment, a production batch or another coherent group. Every unit in it is eligible and the sample is drawn at random from the whole lot. To inspect only some containers, define a separate lot for them.
- 02
AQL is an index, not a tolerance
The AQL labels the plan and the quality level that the scheme is designed to accept most of the time over a series of lots. It is not a share of nonconforming units allowed in this lot, and a lot accepted under the plan can still contain nonconforming units.
- 03
A plan, not a verdict
The planner gives the plan. The random draw, the inspection, the decision on the lot, the switching between normal, tightened and reduced inspection and the contractual consequences belong to your procedure and your contract.
Scope of this beta
- Normal inspection, single sampling plan, one class of defects per plan. Tightened and reduced inspection, switching rules, double and multiple plans: not included.
- AQL columns from 0.065 to 6.5, the range used for PV components; the full scheme runs from 0.010 to 1000.
- Lot sizes from 2 units; special levels S-1 to S-4 and general levels G-I to G-III.
- A plan with AQL 0 is not offered: a zero-tolerance condition for critical or safety defects is a contractual requirement stated separately, not an AQL plan.
- The tables are those of MIL-STD-105E. The planner has not been checked against ISO 2859-1:2026; use the edition your contract names.
About the tables
The sample size code letters and the single sampling plans for normal inspection were published in MIL-STD-105E (US Department of Defense, 1989, public domain) and are shared, for these two tables, by ANSI/ASQ Z1.4 and by ISO 2859-1 in its 1999 edition. ISO 2859-1:2026 is the current international edition; its text and tables are copyrighted and are not reproduced here, and this beta has not been checked against it. The planner shows the public tables in the usual range for PV components and adds the live reading: where your lot, your level and your AQL put you.
A plan, not a certificate
This planner reads published sampling tables and records a plan; it does not inspect, accept or reject anything. The plan depends on the lot size, the inspection level and the AQL you enter and on the edition of the standard named in your contract, which you should check. It does not replace your inspection procedure, your contract or the judgment of a qualified engineer.
Need the inspection done, witnessed or documented?
Tell us about your lot and your contract and we will help you plan the sample, run or witness the inspection and document the result.