QM BenchQuality engineering tools

AQL Sampling Plan Calculator (ISO 2859-1 / ANSI Z1.4)

Enter the lot size, inspection level and AQL to get the sample size and the accept and reject numbers for single sampling, normal inspection, with the operating characteristic curve.How to use ↓Full guide with case study →
  • Free, no sign-up
  • Data stays in your browser
  • PDF report included

Prefer Excel? Download the AQL Sampling Calculator LITE for free

See screenshots and details →
  • Code letter, n, Ac, Re and decision
  • OC curve, AOQ, AOQL and ATI
  • ANSI Z1.4 / ISO 2859-1 single sampling
  • No macros, no sign-up
Download the free Excel (xlsx, 47 kB)

Sample 200, accept on 7, reject on 8

Take 200 units at random from the lot of 3,500. Accept if 7 or fewer are nonconforming, reject if 8 or more.

Code letter LInspection level IIAQL 1.5 %Normal inspection
Code letter
L
Sample size n
200
Accept Ac
7
Reject Re
8
90.0 %95.0 %50.0 %100.0 %98.9 %Pa at the AQLprobability to accept a lot at AQL 1.5 %α 1.1 %Pa 4×AQL 8.3 %BinomialLQ5.82 %AOQL2.11 %ATI237Probability of acceptance (%)
Pa at the AQL
98.9 %
Producer’s risk α
1.1 %
Pa at 2 × AQL
74.6 %
Consumer’s risk at 4 × AQL
8.3 %
Defect level at Pa 95 %
2.01 %
Limiting quality LQ (Pa 10 %)
5.82 %
AOQL
2.11 %
at 2.90 % incoming
ATI at the AQL
237
pieces inspected per lot on average

OC curve: probability of acceptance

chance that a lot with a given % defective is accepted
0%20%40%60%80%100%0.0%1.0%2.0%3.0%4.0%5.0%6.0%7.0%8.0%AQL 1.5 %: 98.9 %LQ 5.82 %Incoming defect levelProbability of acceptance

Lots with 2.01 % defective are accepted 95 % of the time. Lots with 5.82 % defective are still accepted 10 % of the time (consumer’s risk).

AOQ: average outgoing quality

rejected lots are 100 % inspected and cleaned
0.000.501.001.502.000.0%1.0%2.0%3.0%4.0%5.0%6.0%7.0%8.0%AOQL 2.11 %Incoming defect levelAOQ (% defective)

ATI: average total inspection

pieces inspected per lot incl. 100 % sorting of rejected lots
01,0002,0003,0000.0%1.0%2.0%3.0%4.0%5.0%6.0%7.0%8.0%ATI 237Incoming defect levelPieces inspected

Curve data

Sample size code letters

ISO 2859-1 Table 1
Lot sizeS-1S-2S-3S-4IIIIII
2 – 8AAAAAAB
9 – 15AAAAABC
16 – 25AABBBCD
26 – 50ABBCCDE
51 – 90BBCCCEF
91 – 150BBCDDFG
151 – 280BCDEEGH
281 – 500BCDEFHJ
501 – 1,200CCEFGJK
1,201 – 3,200CDEGHKL
3,201 – 10,000CDFGJLM
10,001 – 35,000CDFHKMN
35,001 – 150,000DEGJLNP
150,001 – 500,000DEGJMPQ
500,001 and overDEHKNQR

Sample sizes: A 2 · B 3 · C 5 · D 8 · E 13 · F 20 · G 32 · H 50 · J 80 · K 125 · L 200 · M 315 · N 500 · P 800 · Q 1250 · R 2000

Single sampling, normal inspection, without switching rules. Check plans for contractual use against your copy of ISO 2859-1 / ANSI/ASQ Z1.4.

Verified calculations144/144 checks passedagainst NumPy 2.5.4 · SciPy 1.18.1 and published reference data · last run 2026-10-24Test report →
In-depth guide: theory, step by step and a worked case studyWritten by Ľubomír Blažek, process quality team leader, automotiveRead →Comparison: AQL vs LTPDRead →Free printable AQL sampling table (one-page PDF)Read →
Embed this calculator on your website

Free for blogs, training material and intranets. Copy the code into your page; the small calculator runs in the visitor’s browser.

Preview ↗

AQL sampling plan calculator (ISO 2859-1)

Find the sample size and the accept and reject numbers for incoming inspection from the lot size, the inspection level and the AQL, following ISO 2859-1 and ANSI/ASQ Z1.4 single sampling for normal inspection.

The operating characteristic curve shows how likely a lot is to be accepted at each defect rate, so you can see the real protection of the plan.

01Method

Enter the lot size, choose the inspection level and the AQL. The tool finds the code letter, the sample size n, the acceptance number Ac and the rejection number Re. Enter the number of nonconforming units found to get the accept or reject decision.

The OC curve and the LTPD (the defect rate accepted only 10 % of the time) show what quality level the plan really guarantees.

02When to use it

Use AQL sampling for incoming inspection of purchased parts, for final inspection of lots before shipment, and for audits of finished goods in consumer products and electronics. It reduces inspection effort compared with 100 % inspection while giving a documented, standard decision rule that suppliers and customers accept.

For safety-critical characteristics, sampling alone is not enough; control them at the source with capability and error-proofing.

The tool covers lot sizes from 2 to over 500,000 units, the general inspection levels I, II and III and the special levels S-1 to S-4 for destructive or expensive tests. Record the number of nonconforming units found and the decision is documented on the PDF, which gives a traceable incoming inspection record for every delivery.

PDF report in one click

Export the sampling plan with your header (part, supplier, lot) and logo as a PDF, including the decision and the OC curve, for the incoming inspection record.

Private: runs in your browser

The calculation runs in your browser. Supplier and lot information stays on your computer.

How it works

1 LOTN = 3,500 partscode letter from N and level2 RANDOM SAMPLEn = 200 partsfrom all over the lot3 INSPECT AND COUNT✓✓✕✓✓✓✓✕✓✕d = 3 defectivescount nonconformingagainst the specification4 DECIDEACCEPTd ≤ Ac (7)REJECTd ≥ Re (8)3 ≤ 7 → acceptwhole lot, not just the sampleExample: lot 3,500, general level II, AQL 1.5 % → code letter L → n = 200, Ac = 7, Re = 8 (ISO 2859-1 / ANSI Z1.4, normal inspection)
How AQL sampling works: four steps from the lot to the decision.
  1. The lot size and inspection level give the sample size code letter (ISO 2859-1 Table 1).
  2. The code letter and AQL give the sample size and Ac / Re in the master table (Table 2-A, normal inspection).
  3. The OC curve shows how likely a lot with a given percent defective is to be accepted.

The plans are checked against reference values from ISO 2859-1, see the validation report. Switching rules to tightened or reduced inspection are not applied automatically: see ISO 2859-1 switching rules for when to switch. To decide how many parts you need for other purposes, use the sample size calculator.

Frequently asked questions

›What does AQL mean?

Acceptable quality limit: the worst process average (percent nonconforming) that is still considered acceptable for sampling inspection. An AQL of 1.0 does not mean 1 % defects are acceptable in your product, it is a parameter of the sampling plan.

›What sample size and Ac / Re apply for AQL 0.65?

With general inspection level II, normal inspection, single sampling (ISO 2859-1 / ANSI Z1.4): lot 91–280: n = 20, Ac 0, Re 1 (code letter G follows the arrow up to F). Lot 281–1,200: n = 80, Ac 1, Re 2 (code letter H follows the arrow down to J). Lot 1,201–3,200: n = 125, Ac 2, Re 3. Lot 3,201–10,000: n = 200, Ac 3, Re 4. Lot 10,001–35,000: n = 315, Ac 5, Re 6. AQL 0.65 is a common level for major defects. Enter your lot size above to get the exact plan and its OC curve.

›Which inspection level should I use?

General inspection level II is the default. Level I uses smaller samples, level III larger ones. Special levels S-1 to S-4 are for destructive or expensive tests where small samples are needed.

›What do Ac and Re mean?

Ac is the acceptance number: accept the lot if the number of nonconforming units in the sample is at most Ac. Re is the rejection number: reject if it is Re or more.

›What do the arrows in the AQL table mean?

Some combinations of code letter and AQL have no plan in the table, only an arrow. You then use the first plan below or above the arrow, with its sample size. The tool follows the arrows automatically and tells you when it did.

›Is AQL sampling acceptable in automotive?

Many automotive customers require zero defects and do not accept AQL plans with acceptance numbers above 0. Use AQL sampling for incoming inspection where agreed, and statistical process control for your own processes.