Translate risk requirements into two points
At the AQL, producer risk α is the chance the plan rejects a lot at that quality level, so acceptance probability should be at least 1−α. At the LTPD, consumer risk β is the chance the plan accepts a lot at that worse quality level, so acceptance probability should be no greater than β. Those are two separate requirements on the same operating-characteristic curve.
AQL and LTPD are not universal defect limits or guarantees for every individual lot. They are design points agreed for a particular inspection scheme. Their meaning depends on the product definition, the sampling standard, and the relationship between the supplier and purchaser. Keep the units and defect classification consistent when entering both percentages.
How the integer search works
For candidate sample size n and acceptance number c, the binomial acceptance probability at quality p is Pₐ(p|n,c) = Σ from d = 0 to c of C(n,d)pᵈ(1−p)ⁿ⁻ᵈ. The search looks for the smallest n for which at least one integer c satisfies Pₐ(AQL) ≥ 1−α and Pₐ(LTPD) ≤ β. The chosen c is the feasible acceptance rule reported with that n.
The answer is conditional on a binomial approximation: items are independent, share a common defect probability, and the lot is large enough that sampling without replacement is not materially different. The tool searches only up to the maximum sample size you provide. If no candidate is found within that range, the correct response is to reassess inputs or the search ceiling—not to infer that no sampling plan can exist.
Set percentages and search bounds
Enter AQL, LTPD, α, and β as percentages; for five percent, enter 5. LTPD must be greater than AQL, and the risk limits must be positive and below one half in the supported form. The maximum sample size is a whole-number search ceiling, not a recommendation for the final inspection workload.
Use the same unit of inspection for both quality points: defective units per inspected unit, not defects per unit, unless the sampling scheme explicitly uses counts of defects. If the physical lot is small relative to the candidate sample, evaluate a finite-lot model. If the plan is governed by a standard table, the calculator’s analytical solution may not match the standard’s discrete plan.
Interpret the reported plan and risks
The sample size is the number of items inspected from each lot under the simple plan, and c is the largest defective count that leads to acceptance. The displayed probabilities at AQL and LTPD show how closely the selected integers meet the risk constraints; their rounding can make a value appear to sit exactly on a target, so use the unrounded computation when assessing a boundary.
The selected plan is the smallest sample under the search ordering, not necessarily the least costly plan. Inspection cost, destructive testing, delay, measurement error, rectification, and risk outside the two design points may favor a different feasible plan. Review the full OC curve and the operational consequences before adopting a rule.
Treat the result as an analytical starting point
Real standards may specify inspection levels, lot-size tables, normal or tightened inspection, switching rules, and special provisions. None of those policy decisions is inferred from AQL and LTPD alone. A contractual plan may use a hypergeometric model, a different risk interpretation, or rounding rules that this calculation does not reproduce.
Record the quality points, risk limits, search ceiling, resulting n and c, and model used. That makes the decision auditable and lets a quality engineer compare the result with the governing acceptance-sampling procedure rather than treating a numerical answer as an automatic release authorization.
Worked examples
These examples state the design inputs and the calculator’s chosen integer plan. Acceptance probabilities are rounded for display; the constraints are evaluated before rounding.
A 1% AQL and 10% LTPD design
Inputs: AQL 1%; LTPD 10%; producer risk 5%; consumer risk 10%; maximum search n = 500.
Calculation: Search n = 1…500 and integer c; at n = 52, c = 2, Pₐ(1%) = 98.465% ≥ 95% and Pₐ(10%) = 9.663% ≤ 10%.
The smallest feasible sample size reported is 52, with acceptance number 2 under these targets.
A stricter poor-quality rejection point
Inputs: AQL 0.5%; LTPD 8%; producer risk 5%; consumer risk 10%; maximum search n = 500.
Calculation: Search selects n = 48, c = 1: Pₐ(0.5%) = 97.578% ≥ 95% and Pₐ(8%) = 9.454% ≤ 10%.
The selected plan uses 48 inspected items and accepts at most one defective under these design targets; verify the rule against the applicable standard before use.