ASQ Sampling Calculator (AQL)

Calculate sample sizes and acceptance criteria based on the ANSI/ASQ Z1.4 (ISO 2859-1) standard for attribute sampling. Essential for quality control, incoming inspections, and manufacturing lot acceptance.

Enter lot size and AQL to generate your sampling plan…

Table 1: Lot Size to Sample Size Code (Level II)

Maps your total batch size to the corresponding inspection letter code.

Lot SizeCode (Level I)Code (Level II)Code (Level III)
2 to 8BCD
9 to 15CDE
16 to 25DEF
26 to 50EFG
51 to 90FGH
91 to 150GHJ
151 to 280HJK
281 to 500JKL
501 to 1,200KLM
1,201 to 3,200LMN
3,201 to 10,000MNP
10,001 to 35,000NPQ
35,001 to 150,000PQR
150,001 to 500,000QRS
500,001 and overRSS

Table 2: Sample Size Code Letters

Maps the letter code to the required number of units to inspect.

CodeSample SizeCodeSample Size
A2J80
B3K125
C5L200
D8M315
E13N500
F20P800
G32Q1,250
H50R2,000
IN/AS3,150

What is AQL (Acceptable Quality Limit)?

AQL is the maximum percentage of defective units in a batch that is considered acceptable during a random sampling inspection. It is defined by the ANSI/ASQ Z1.4 standard (equivalent to ISO 2859-1). If the number of defects found in the sample is less than or equal to the Acceptance Number (Ac), the batch passes. If it equals or exceeds the Rejection Number (Re), the batch fails.

How to read the results

The calculator provides a Letter Code (e.g., “K”), a Sample Size (e.g., 125), an Acceptance Number (Ac), and a Rejection Number (Re). If your AQL is 1.0% and the result is Ac=5, Re=6, it means: randomly pull 125 units from the lot. If you find 5 or fewer defects, accept the lot. If you find 6 or more, reject the lot.

Understanding Arrow Down

Sometimes the sample size generated by the Lot Size is too small to statistically justify a strict AQL (e.g., asking for 0.10% AQL but only pulling 5 units). When this happens, the standard uses an “Arrow Down” rule, which means you must use the Sample Size from the next larger Letter Code to maintain statistical validity. The calculator automatically resolves this and tells you the adjusted sample size.

Inspection Levels explained

Level II is the default standard used for general product inspections. Level I requires a smaller sample size and is used when inspection is very costly or the product is low-risk. Level III requires a larger sample and is used for critical or high-risk products. Special levels (S-1 through S-4) are used for destructive testing or when sampling must be extremely limited.

Normal vs Tightened Inspection

This calculator defaults to Normal inspection. In a real production environment, if 2 out of 5 consecutive lots fail, you must switch to Tightened inspection (which uses smaller Ac numbers, making it harder to pass). If 5 consecutive lots pass under Tightened inspection, you revert to Normal. If failures continue under Tightened, inspection is halted. This switching rules system protects the consumer from sustained poor quality.

What is an ASQ Sampling Calculator?

An ASQ Sampling Calculator implements the attribute sampling plans defined by the American Society for Quality (ASQ), specifically the ANSI/ASQ Z1.4 standard. Instead of manually cross-referencing three separate tables in a physical booklet, this tool instantly calculates the correct sample size and acceptance criteria based on your lot size and quality requirements.

Why manufacturers use AQL

Inspecting 100% of a shipment is often too expensive, too slow, or impossible (like destructive testing). AQL sampling provides a statistically valid way to accept or reject an entire lot based on a relatively small random sample. It is the global standard for consumer goods, electronics, textiles, and pharmaceutical packaging inspections.

Choosing the right AQL percentage

The AQL you choose depends on the severity of a defect. Critical defects (e.g., sharp edges on a child’s toy) typically require an AQL of 0.0% or 0.065%. Major defects (e.g., a broken zipper) usually use 1.0% or 1.5%. Minor defects (e.g., a loose thread) often use 2.5% or 4.0%. Many buyers provide suppliers with a defect classification matrix that assigns different AQLs to different defect types.

The math behind the tables

The tables in ANSI/ASQ Z1.4 are based on the hypergeometric distribution (for finite lots) and the binomial/Poisson approximations. The sample sizes and Ac/Re numbers are carefully calculated to ensure a specific “Consumer Risk” (the probability of accepting a bad lot, typically set around 5% to 10%) and “Producer Risk” (the probability of rejecting a good lot, typically around 1% to 5%). This calculator replicates the exact lookup tables so you get the standard-compliant values without doing the statistical math yourself.

Who this calculator is for

This tool is designed for Quality Assurance engineers, QC inspectors, production managers, and supply chain professionals who perform incoming material inspections or final product audits. It is also useful for procurement teams negotiating quality standards with suppliers, ensuring both parties agree on the exact sample size and pass/fail criteria before an inspection takes place.