Calculator
Choose whether to design a plan from risk targets, or evaluate an existing plan. The layout adapts to three columns on large screens, two on smaller, and one on mobile.
Example data table
| Lot size (N) | AQL (%) | RQL/LTPD (%) | α (%) | β (%) | Sample n | Accept c |
|---|---|---|---|---|---|---|
| 500 | 1.00 | 7.00 | 5.00 | 10.00 | 75 | 2 |
| 2000 | 0.65 | 5.00 | 5.00 | 10.00 | 105 | 2 |
| 10000 | 0.40 | 3.00 | 5.00 | 10.00 | 176 | 2 |
Formula used
The plan is a single-sample acceptance rule: inspect n units, count defects x, and accept the lot when x ≤ c.
- Acceptance probability (binomial): P(accept | p) = Σk=0..c [ C(n,k) pk (1−p)n−k ]
- Acceptance probability (finite lot): P(accept | D) = Σk=0..c [ C(D,k) C(N−D,n−k) / C(N,n) ]
- Design constraints: choose the smallest (n,c) meeting P(accept | AQL) ≥ 1−α and P(accept | RQL/LTPD) ≤ β.
In the finite-lot model, defectives are approximated as D ≈ p × N and rounded per your selection.
How to use this calculator
- Pick Design a plan to compute an inspection plan from targets.
- Enter your lot size, AQL, and RQL/LTPD.
- Set α (rejecting good lots) and β (accepting bad lots).
- Submit to get n, c, and acceptance probabilities.
- After inspecting, enter observed defects to receive a decision.
If no plan is found, increase the search limits or relax risk targets.