Skip to main content
Calcimator

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

Code LetterJ
Inspection LevelNormal
P(Accept) at AQL95.34%
Avg Outgoing Quality0.88%
Est. LTPD8.63%
Avg Total Inspection123

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
  1. Enter Lot Size (N), AQL (%), and Inspection Level.
  2. Choose Inspection Level: Normal (Level II) for the standard baseline, Tightened after recent quality problems, or Reduced after a sustained run of good lots.
  3. Review Sample Size (n), Accept Number (Ac), and Reject Number (Re).
  4. Use Code Letter and Inspection Level to inform your decision.
  5. 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

  1. Identify Input Parameters
    Lot Size (N) = 1000, AQL (%) = 1, Inspection Level = 1 = 3 input(s) provided
  2. Calculate Sample Size
    80 = 80
  3. Calculate Accept Number
    Accept Number
    2 = 2
  4. Calculate Reject Number
    Reject Number
    3 = 3
  5. Calculate Code Letter
    J = J
  6. Calculate Inspection Level
    Normal = Normal

Figures and sources

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.

The questions that sit next to this one — chosen by subject, including calculators filed under a different category.

More in Manufacturing, Industrial & Coatings.