Acceptance Sampling Plan Calculator

Determine sample size and accept/reject numbers for incoming lot inspection based on AQL, lot size, and inspection level per ANSI/ASQ Z1.4.

%
Code Letter
J
Sample Size (n)
80
8.0% of lot
Accept Number (Ac)
1
Reject Number (Re)
2
P(Accept) at AQL
80.92%
P(Accept) at 2ร—AQL
52.30%
Planning notes, formulas, and examples

About the Acceptance Sampling Plan Calculator

Acceptance sampling inspects a random sample from a lot and decides to accept or reject the entire lot based on the number of defective items found. The plan defines three numbers: the sample size (n), the acceptance number (Ac), and the rejection number (Re). If defectives found โ‰ค Ac, the lot is accepted; if โ‰ฅ Re, the lot is rejected.

The key parameter is the Acceptable Quality Limit (AQL) โ€” the maximum percent defective considered satisfactory as a process average. ANSI/ASQ Z1.4 (formerly MIL-STD-105E) provides tables that map lot size, AQL, and inspection level to the appropriate sample size and accept/reject numbers.

This calculator implements a simplified single-sampling plan lookup. Enter your lot size and desired AQL, and it returns the sample size and acceptance number. It uses the hypergeometric probability model to compute the probability of acceptance at the specified AQL, giving you confidence in the plan's discriminating power.

When This Page Helps

Acceptance sampling provides a statistically sound alternative to 100% inspection. It reduces inspection cost while maintaining a known level of quality protection. The AQL-based framework ensures consistency: both you and your supplier agree on what quality level is acceptable and what sampling plan enforces it.

How to Use the Inputs

  1. Enter the lot size (total units in the lot).
  2. Enter the desired AQL (percent defective, e.g. 1.0 or 2.5).
  3. Select the inspection level (I, II, or III โ€” II is normal).
  4. Review the sample size and accept/reject numbers.
  5. Inspect the indicated number of random units from the lot.
  6. Accept or reject the lot based on the result.
Formula used
Sample size (n) and acceptance number (Ac) are determined by standard tables based on lot size, AQL, and inspection level. P(accept) = ฮฃ [C(D,d) ร— C(N-D,n-d) / C(N,n)] for d = 0 to Ac where N = lot size, n = sample size, D = number of defectives in lot, d = defectives in sample, C = combinations. Re = Ac + 1

Example Calculation

Result: n = 80, Ac = 2, Re = 3

For a lot of 1,000 units at AQL 1.0% under normal inspection (Level II), inspect 80 random units. Accept the lot if 0, 1, or 2 defectives are found. Reject if 3 or more defectives are found.

Tips & Best Practices

  • Use Level II (Normal) for routine inspection; Level I (Reduced) for proven suppliers; Level III (Tightened) for new or problematic suppliers.
  • Switch between normal, tightened, and reduced based on recent lot history per the Z1.4 switching rules.
  • AQL of 1.0% is common for minor defects; use 0.1% or 0.065% for critical/safety defects.
  • Ensure random sampling โ€” systematic or convenience sampling invalidates the statistical basis.
  • Document the sampling plan in your quality procedures and share it with suppliers.
  • For very small lots, 100% inspection may be more practical than sampling.

The Statistical Foundation

Acceptance sampling plans are designed using the hypergeometric or binomial probability distribution. For each combination of lot size, sample size, and acceptance number, the probability of accepting a lot with any given defect rate can be calculated. The Operating Characteristic (OC) curve plots this probability, visually showing the plan's discrimination.

Switching Rules for Dynamic Protection

Z1.4 includes switching rules: start with normal inspection, switch to tightened after poor results, switch to reduced after sustained good results. This dynamic adjustment automatically increases protection when quality deteriorates and reduces inspection burden when quality is consistently good.

Beyond Single Sampling

Double and multiple sampling plans offer alternatives that inspect fewer units on average (when lots are very good or very bad) but require more complex administration. Sequential sampling inspects one unit at a time until a decision is reached. Choose the plan type based on inspection cost, administration complexity, and average sample number requirements.

Sources & Methodology

Last updated:

Frequently Asked Questions

  • Acceptable Quality Limit is the maximum percent defective that is considered satisfactory as a process average. A lot at the AQL defect level has approximately a 95% chance of acceptance. It is NOT a tolerance for individual lots but a long-run average.