Skip to content
Omnikalc

Acceptance sampling calculator: how well does your sampling plan protect you?

Enter the sample size, the acceptance number, the AQL, the LTPD and the lot size to get the producer's risk, the consumer's risk, the acceptance probability and the AOQ.

Updated on
Your inputs

Value out of range

Value out of range

% defective

Value out of range

% defective

Value out of range

%

Value out of range

Value out of range

Results

Producer's risk (good lot rejected)

4.66%

Within the usual 5 % to 10 % producer's risk
Probability of accepting a lot at the AQL
95.34%
Probability of accepting a lot at the LTPD (consumer's risk)
13.44%
Above 10 %: bad lots are often accepted
Probability of accepting a lot at the actual defect rate
56.81%
Average outgoing quality (AOQ) with rectifying inspection
1.636%
Average total inspected per lot
909.2

Acceptance sampling decides whether to accept a lot from a small sample. The acceptance sampling calculator takes the sample size, the acceptance number, the AQL, the LTPD, the incoming defect rate and the lot size, and gives the probability of acceptance at each quality level, the producer’s risk, the consumer’s risk, the average outgoing quality and the average total inspected.

How the calculation works

  • A lot is accepted if a random sample of n items contains c or fewer defective items. The number of defects in the sample follows a binomial distribution with the lot’s defect rate p.
  • Probability of acceptance Pa = P(defects ≤ c), with n trials and probability p. At the AQL this gives the producer’s risk = 1 − Pa, the chance of rejecting a good lot.
  • At the LTPD (the worst quality the customer will tolerate), Pa is the consumer’s risk, the chance of accepting a bad lot.
  • With rectifying inspection, rejected lots are fully inspected and defects removed. AOQ = Pa × p × (N − n) ÷ N, and the average total inspected is n + (1 − Pa) × (N − n).

Example

A plan takes a sample of 80 from lots of 2,000 and accepts the lot with 2 or fewer defects. At an AQL of 1 %, Pa is 95.34 %, so the producer’s risk is 4.66 %. At an LTPD of 6 %, Pa is 13.44 %, which is the consumer’s risk. A lot with 3 % defects is accepted 56.81 % of the time, the average outgoing quality is 1.636 %, and on average 909.2 items per lot are inspected.

Why it matters

Choosing a sampling plan by feel can leave you accepting bad lots or rejecting good ones too often. The calculator shows exactly how a plan behaves at the quality levels that matter to you and to your supplier, before you adopt it in a contract.

Good to know

The binomial model is exact for a large lot and a good approximation when the sample is a small part of the lot. For small lots, the hypergeometric distribution is more precise. The calculator treats the AQL and LTPD as defective percentages, and it covers a single sampling plan by attributes, not double or sequential plans.

The defect density calculator measures defects per unit of size, the control chart limits calculator monitors a process over time and the binomial calculator gives the underlying probabilities.

Frequently asked questions

What is acceptance sampling?

It is a quality control method in which you inspect a random sample from a lot and accept or reject the whole lot depending on the number of defects found. It saves the cost of inspecting every item, at the price of some risk of a wrong decision.

What are the producer's risk and the consumer's risk?

The producer's risk is the chance that a lot of good quality, at the AQL, is rejected. The consumer's risk is the chance that a lot of poor quality, at the LTPD, is accepted. A good plan keeps both small, commonly around 5 percent and 10 percent.

How do I improve a plan?

A larger sample with the right acceptance number makes the plan more discriminating, so it accepts good lots more often and bad lots less often. A smaller sample is cheaper but less sharp. Standards such as ANSI/ASQ Z1.4 give ready-made plans for each AQL and lot size.

What does AOQ mean?

Average outgoing quality is the average defect rate in the lots after inspection, when rejected lots are fully inspected and defective items are replaced. It is lower than the incoming rate, and it peaks at some incoming quality, called the average outgoing quality limit.

Was this calculator helpful?

Thanks for your feedback!

Results are estimates provided for information purposes. They do not replace professional advice.