CalcWorldHub
Quality control · CalcWorldHub

Lot Acceptance Probability: Estimate the Chance a Sample Passes

A single-sample plan accepts a lot when the inspected sample contains no more than a chosen number of defective units. The lot acceptance probability calculator estimates how often that rule would pass if the incoming defective fraction were p and the sample were repeated. Enter a percent, sample size, and acceptance number in the lot acceptance probability calculator.

Open calculator
A sampling inspection chart showing twenty sampled parts, an acceptance-number marker, and a probability curve that declines as defect fraction rises.

Share this article

Flow diagram showing Defect fraction p moving through the calculation to its result.
How the entered values lead to the Lot Acceptance Probability result.

Separate the plan from the lot’s unknown quality

The plan is defined by n, the number of units sampled, and c, the largest defective count that still leads to acceptance. The assumed p is a scenario for the incoming process, not a value discovered by the plan. The result answers a conditional question: if the lot behaves like that scenario, what is the probability of observing c or fewer defectives in n independent draws?

An operating-characteristic curve plots this acceptance probability over many possible incoming defect fractions. A single calculator result is one point on that curve. It does not determine whether the plan is fair, safe, or contractually suitable without the acceptable and unacceptable quality levels and the risks the buyer and supplier are willing to accept.

Use the binomial probability

With independent units and a common defective probability p, D is binomial with parameters n and p. The acceptance probability is P(D≤c) = Σ from d = 0 to c of C(n,d) pᵈ (1−p)ⁿ⁻ᵈ. Each term is the chance of seeing exactly d defective units; summing them includes every sample outcome that passes the rule.

A zero acceptance number is a zero-failure plan: the sample passes only if it contains no defectives. Raising c makes the decision more permissive at a fixed p and n, while increasing n generally gives the plan more information. Those changes reshape the full curve rather than simply improving one party’s position at every quality level.

Enter the values as the rule defines them

The defect input is a percentage from 0% to 100%; enter 5 for five percent. The sample size n is an integer from 1 to 500, and c is a whole number from zero through n. Count defective units according to the inspection definition. If one unit can have many defects, it still counts as one defective unit in an attributes plan unless the plan explicitly counts defects instead.

This model uses a binomial distribution and does not ask for the lot size. That approximates sampling with replacement or sampling from a much larger lot. For a small finite lot sampled without replacement, the hypergeometric distribution may be more suitable because each selected unit changes the remaining composition.

Read probability as a repeated-sampling statement

An output of 92% means that, under the entered defect probability and model, about 92 of 100 repeated samples would meet the acceptance rule in the long run. It is not a 92% probability that the accepted lot is defect-free. A passed sample is evidence from only the inspected units, and the rest of the lot remains unobserved unless another process checks it.

Compare acceptance probabilities at both a good-quality and a poor-quality scenario. A plan with a high acceptance chance at the AQL protects the supplier from unnecessary rejection there; a low acceptance chance at the LTPD protects the customer against accepting poor lots. The selected plan balances those risks and must match the applicable standard or agreement.

Know what the calculation leaves out

The binomial model assumes independent, equally likely outcomes for every sampled item. Clustering by machine, shift, box, or shipment can violate that assumption. Imperfect inspection, a changing process, measurement uncertainty, and different definitions of a defect also affect the real decision but are not represented in this probability alone.

Use the result to understand one sample rule, then document the sampling frame, inspection method, and lot disposition. When a quality standard supplies a table or switching scheme, follow that rule’s definitions; do not replace it with a convenient probability estimate that uses different assumptions.

Worked examples

Both examples use the large-lot binomial model. The stated percentage is the assumed incoming defective fraction, not a measured certainty about every lot.

A zero-failure sample

Inputs: Assumed defective fraction = 1%; n = 30; accept only if c = 0.

Calculation: Pₐ = C(30,0)(0.01)⁰(0.99)³⁰ = 0.99³⁰ = 0.7397 = 73.97%.

Even at a 1% defect scenario, this zero-failure plan accepts roughly three quarters of repeated samples.

Allow up to two defectives

Inputs: Assumed defective fraction = 5%; n = 20; c = 2.

Calculation: Pₐ = Σ[d=0…2] C(20,d)(0.05)ᵈ(0.95)²⁰⁻ᵈ = 0.9245 = 92.45%.

The plan passes most repeated samples in this scenario, so the sample rule offers limited discrimination at a 5% incoming defect level.

Illustration of the assumptions and interpretation boundary for Lot Acceptance Probability.
Separate the numerical output from the decision it may inform.

Sources and further reading

Share this article

Browse all articles · Calculator: Lot acceptance probability calculator