How to build an AQL sampling plan
A single sampling plan under ISO 2859-1 (ANSI/ASQ Z1.4, MIL-STD-105E) comes from two tables:
1. Code letter: Table 1, crossing the lot size with the inspection level (II is the default)
2. Plan: the master table for the severity (2-A normal, 2-B tightened, 2-C reduced), crossing the code letter with the AQL: sample size n, acceptance number Ac, rejection number Re
3. Decision: with Ac or fewer defectives in the sample, accept the lot. With Re or more, reject it
Draw the sample at random from the whole lot. A unit with several defects counts once when the AQL is in percent nonconforming. Above AQL 10, the tables only apply to nonconformities per 100 units, and then every defect counts.
Worked example
The values already in the calculator: a lot of 1,000 units, level II, AQL 1.0, normal inspection.
- Table 1: a lot of 501 to 1,200 at level II gives code letter J, which means 80 units
- Table 2-A, row J, column 1.0: Ac 2, Re 3
- Inspect 80 units drawn at random. With 0, 1 or 2 defectives, accept the lot. With 3 or more, reject it
For the same lot, same letter J:
| AQL | Sample | Ac | Re |
|---|---|---|---|
| 0.65 | 80 | 1 | 2 |
| 1.0 | 80 | 2 | 3 |
| 2.5 | 80 | 5 | 6 |
| 4.0 | 80 | 7 | 8 |
Many plants use one AQL per defect class, for example 0.65 for major and 2.5 for minor defects. The 80-unit sample is the same, and each class has its own Ac and Re.
Under the other severities, same letter J and AQL 1.0: tightened is 80 units with Ac 1, Re 2. Reduced is 32 units with Ac 1, Re 2.
When the table shows an arrow
Not every letter and AQL pair has a plan. Take a small lot with a low AQL: 20 units at level II gives letter C (5 units), but at AQL 1.0 the cell for letter C has an arrow pointing down. The first plan below it is letter E: 13 units, Ac 0, Re 1. The sample becomes 13, not 5. This is the most common mistake when reading the table: taking the Ac of the new plan with the sample size of the old letter.
An arrow pointing up works the same way: use the first plan above it and that row’s sample size. When the sample comes out as large as the lot or larger, the standard says to inspect 100% of the lot.
How to read the result
- Sample size: how many units to inspect, drawn at random from the whole lot.
- Ac: the most defectives the lot can have in the sample and still be accepted.
- Re: the number of defectives that rejects the lot. In the current tables, Re = Ac + 1.
- Ac 0, Re 1: a single defective rejects the lot. You get this with a low AQL and a small sample.
- Accepting a lot does not prove it is good. The plan protects the average over a series of lots. A single lot worse than the AQL can still pass by luck, which is why the switching rules to tightened inspection exist.
Reduced inspection: which table this calculator uses
The calculator follows Table 2-C of ISO 2859-1:1999, where Re = Ac + 1. ANSI/ASQ Z1.4 (like MIL-STD-105E) has a different reduced table with a gap between Ac and Re (for example Ac 1, Re 3): a count between the two accepts the lot but sends you back to normal inspection. ISO 2859-1:1999 removed that gap. If your contract cites Z1.4, check the reduced numbers there. The normal and tightened plans are the same in both.
Common mistakes
- Using the original letter’s sample size after following an arrow. The sample size is the one of the row where the plan sits.
- Sampling a fixed percentage of the lot (say 10%). The standard does not work that way: the sample grows much more slowly than the lot.
- Pulling the sample from the top of the pallet or the start of the run. It has to be random across the lot.
- Treating the AQL as the quality target. AQL 1.0 does not mean 1% defective is fine for the customer. It is the quality at which the plan accepts most lots.
- Staying on normal inspection forever. The switching rules to tightened inspection are part of the system and are what protects the customer when a supplier gets worse.
To measure how much of the process falls inside the spec, instead of only accepting or rejecting lots, use the Cpk calculator and the control chart generator. And before relying on inspection by measurement, check the gage with a gage R&R study.
Sources
- ISO 2859-1:1999, Sampling procedures for inspection by attributes, Part 1: Sampling schemes indexed by acceptance quality limit (AQL) for lot-by-lot inspection, Tables 1, 2-A, 2-B and 2-C.
- ANSI/ASQ Z1.4, Sampling Procedures and Tables for Inspection by Attributes (successor to MIL-STD-105E).
- ABNT NBR 5426:1985, the Brazilian standard, with the same code letters and the same normal and tightened plans.