Acceptance Sampling Plan Calculator
Generate an acceptance sampling plan based on lot size, AQL, and inspection level. Determine sample size, accept/reject numbers, and operating characteristics.
About this calculator
Acceptance sampling lets a quality team inspect a small, statistically defensible sample from a lot instead of every unit, then decide to accept or reject the whole lot based on how many defects turn up. This calculator implements a simplified version of the ANSI/ASQ Z1.4 (ISO 2859-1) sampling scheme: Lot Size maps to a sample-size "code letter" through a lookup table matching the standard's own lot-size bands. Inspection Level then adjusts the plan's strictness from the Normal baseline: Reduced (after a sustained run of good lots) pulls a smaller sample, while Tightened (after recent quality problems) keeps the same sample size but demands a stricter Accept Number -- one fewer defect is tolerated than Normal would allow at the same sample size. The Accept Number is derived from the sample size and your Acceptable Quality Level (AQL) -- the maximum defect rate still considered acceptable -- as the smallest defect count where the plan still accepts a lot sitting exactly at AQL roughly 95% of the time, and the Reject Number is one more defect than that.
Because the lookup table groups a wide range of lot sizes into the same code letter, moving Lot Size by a small amount often doesn't change Sample Size at all -- only a Lot Size that crosses one of the table's own band boundaries changes which code letter, and therefore which sample size, applies. The operating-characteristic figures (P(Accept) at AQL, Average Outgoing Quality, estimated LTPD, and Average Total Inspection) describe how the plan performs statistically, not just what sample size to pull. This is a planning aid for understanding sampling-plan mechanics, not a substitute for a full ANSI/ASQ Z1.4 table lookup in a regulated quality system.
Inputs
Results
Sample Size (n)
80
Accept Number (Ac)
2
Reject Number (Re)
3
Figures current as of 2003. Source: NIST/SEMATECH e-Handbook of Statistical Methods, "Choosing a Sampling Plan: MIL Standard 105D" — ANSI/ASQ Z1.4 and ISO 2859 origins
How to Use This Calculator
- Enter Lot Size (N), AQL (%), and Inspection Level.
- Choose Inspection Level: Normal (Level II) for the standard baseline, Tightened after recent quality problems, or Reduced after a sustained run of good lots.
- Review Sample Size (n), Accept Number (Ac), and Reject Number (Re).
- Use Code Letter and Inspection Level to inform your decision.
- Use the chart to visualize the results and explore different scenarios by adjusting inputs.
What each input means
- Lot Size (N)
- Total number of units in the lot to be inspected.
- AQL (%)
- Acceptable Quality Level — the maximum defect rate considered acceptable. Common values: 0.1%, 0.65%, 1%, 2.5%.
- Inspection Level
- Normal: standard inspection. Tightened: larger sample after quality dips. Reduced: smaller sample after sustained good quality.
How this is calculated
Worked example, using the default values
- Identify Input ParametersLot Size (N) = 1000, AQL (%) = 1, Inspection Level = 1 = 3 input(s) provided
- Calculate Sample Size80 = 80
- Calculate Accept NumberAccept Number2 = 2
- Calculate Reject NumberReject Number3 = 3
- Calculate Code LetterJ = J
- Calculate Inspection LevelNormal = Normal
Figures and sources
- ANSI/ASQ Z1.4 sampling-plan structure (code letters, AQL-based accept/reject numbers) and its ISO 2859-1 / MIL-STD-105E lineage (2003) — NIST/SEMATECH e-Handbook of Statistical Methods, "Choosing a Sampling Plan: MIL Standard 105D" — ANSI/ASQ Z1.4 and ISO 2859 origins
Engine last updated . Checked against 2 independently-derived tests — how we verify calculators. Built by Paul Gunder, a software engineer, not a licensed financial, medical, or legal professional.
Frequently Asked Questions
Why doesn't a small change in Lot Size change the Sample Size?
Sample size is set by a "code letter" that groups a range of lot sizes together -- moving Lot Size from, say, 950 to 1,050 doesn't change the code letter if both values fall in the same band, so Sample Size stays put. It only changes once Lot Size crosses one of the table's own band boundaries (for example, from 1,200 up into the next band).
What's the difference between Tightened and Reduced inspection levels?
They adjust the plan in different ways. Tightened keeps the same sample size as Normal but lowers the Accept Number by one defect (used after recent lots have shown quality problems, so a marginal lot is more likely to be caught). Reduced shrinks the sample size itself (used after a sustained run of acceptably good lots, to save inspection effort). Normal is the standard baseline between the two.
Does the AQL percentage affect how large the sample is?
No -- in this simplified model, Sample Size is driven purely by Lot Size and Inspection Level. AQL instead sets the Accept Number (the maximum defect count still acceptable within that sample) and feeds the operating-characteristic outputs like P(Accept) at AQL, so it changes how strict the plan is, not how large it is.
How is Average Total Inspection related to Lot Size?
ATI rises with Lot Size because it estimates the total units inspected across both accepted and rejected lots -- an accepted lot only has the sample itself inspected, but a rejected lot (under this model) has the remainder of the lot inspected too, so a larger lot pushes the blended average higher.
Related Calculators
The questions that sit next to this one — chosen by subject, including calculators filed under a different category.
Control Chart Calculator
Calculate Upper Control Limit (UCL), Lower Control Limit (LCL), and center line for X-bar, R, and S control charts using process statistics and sample size.
Quality ControlProcess Capability (Cp/Cpk) Calculator
Calculate process capability indices Cp, Cpk, and Cpm from process statistics and specification limits. Determine if your process meets quality requirements.
Dental PracticeCase Acceptance Rate Calculator
Analyze the revenue impact of improving your treatment acceptance rate from presented to accepted cases.
Quality ControlFMEA Risk Priority Number Calculator
Calculate the Risk Priority Number (RPN) from Severity, Occurrence, and Detection ratings. Assess failure mode risk level and recommended priority actions.
More in Manufacturing, Industrial & Coatings.