AQL sampling calculator
Enter the lot size, the inspection level and the AQL for each defect class. The calculator applies ANSI/ASQ Z1.4 single sampling for normal inspection: Table I gives the code letter, Table II-A gives the sample size and the accept and reject numbers, and where the table shows an arrow, the plan moves to the one the arrow points to.
Sampling plan
Major defects
- Inspect (units)
- -
- Accept
- -
- Reject
- -
Minor defects
- Inspect (units)
- -
- Accept
- -
- Reject
- -
- Sample size code letter
- -
How the plan is chosen
Z1.4 works in two steps. First, Table I turns the lot size and the inspection level into a sample size code letter. Level II is the usual default; level I inspects fewer units and level III more, when the customer wants less or more discrimination between good and bad lots.
Second, Table II-A gives a sample size for each code letter, and for each AQL an acceptance number (Ac) and a rejection number (Re). Some cells hold an arrow instead of numbers. An arrow means: use the first plan in the direction of the arrow, and use that plan's sample size too, not the one for your original code letter. That is why the two defect classes can end up with different sample sizes. When they do, each class keeps its own plan: draw the larger sample, and judge the class with the smaller plan on the number of units its plan calls for.
Worked example
A lot of 5,000 units at general inspection level II falls in the 3,201 to 10,000 band, so the code letter is L and the sample size is 200.
- Major defects at AQL 1.0: inspect 200, accept on 5 or fewer, reject on 6 or more.
- Minor defects at AQL 2.5: inspect 200, accept on 10 or fewer, reject on 11 or more.
Now an arrow. A lot of 500 at level II is code letter H, a sample of 50. At AQL 0.065 the table holds a down arrow for H, which leads to code letter L: inspect 200, accept on 0, reject on 1. Keeping the sample at 50 with those numbers would be a different plan from the one the standard specifies.
Reading the result
Count the defects in the sample for each class separately. If the count is at or below the accept number, that class passes. If it reaches the reject number, the lot is rejected for that class. A lot is accepted only when every class passes.
What this calculator does not cover
Normal inspection with single sampling only. Z1.4 also has tightened and reduced inspection with switching rules between them, special inspection levels S-1 to S-4 for small samples, and double and multiple sampling plans. If your contract names one of those, use the standard's tables for it.
Questions
What AQL should I use?
The one in your contract, drawing or purchase order. If nobody has set one, agree it with the customer before inspecting, because an AQL picked on the floor will not survive the first dispute. Critical defects that could hurt someone are usually zero tolerance and kept out of AQL sampling altogether.
Does an AQL of 1.0 mean I will receive at most 1% defective?
No. The AQL is the worst process average the plan is designed to accept most of the time. Lots that are worse than the AQL can still pass, and lots slightly better can still fail. The OC curve calculator shows exactly how often a plan accepts lots at each defect rate.
What happens when the sample size is bigger than the lot?
Inspect every unit in the lot. The calculator shows this when it happens.
Is Z1.4 the same as MIL-STD-105E or ISO 2859-1?
Z1.4 descends from MIL-STD-105E, and ISO 2859-1 uses the same system of code letters and single sampling plans, so a plan from one normally matches the others. Check the edition your contract names.
Revision 24 Nov 2026: arrows now move the sample size along with the accept and reject numbers, every cell is tested against an independent encoding of Table II-A, and the inspection levels are labelled by what they do.
Next frame Yours
Tell me what you are building.
A website for your business, an app, a tool your team needs, or a calculator that should exist. I read every message myself and reply within one business day.
Or write to me directly:
corey@forgedev.studio