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.

Calculations

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.

Your lot

The code letter and the sample size come from the lot size and the inspection level alone. The AQL is often agreed later: add it under Table 1 when you need the acceptance plan.

Sets the wording of the plan and the record; the tables are the same for every unit.

The number of units in the inspection lot: a shipment, a production batch or another coherent group, defined before sampling. From 2 units.

Inspection level

Special levels S-1 to S-4 give small samples for inspections that are costly, slow or destructive. General level G-II is the usual choice; G-I inspects less and G-III more. Your contract decides.

For the downloads, for example "Project X, delivery 3, major visual defects". It stays in your browser.

Teaching example: 12,253 PV modules, general level G-II and, with the AQL block open, AQL 1.0. Change anything.

Results

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

Reading order
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
  1. 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.

  2. 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.

  3. 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.

Get in touch