—
- Before correction
- 37
- Confidence Z
- 1.960
- Mode
- Variable
Diminishing returns
The curve shows how quickly required sample size climbs as you tighten the margin of error. The dot marks your current setting.
Calculator Library
Plan how much data you need before launching a capability study, layered audit, inspection check, or incoming-quality review. This app covers both variable-data sample sizing and an AQL-based acceptance-sampling planning estimate.
—
Diminishing returns
The curve shows how quickly required sample size climbs as you tighten the margin of error. The dot marks your current setting.
Choose whether you are sizing for measured data or attribute data, then set the margin of error, confidence level, and variation estimate. Everything recalculates live as you type.
Variable data: n = (z x sigma / E)^2
Attribute data: n = z^2 x p(1-p) / E^2
Build a practical incoming inspection sample plan from lot size, inspection level, and AQL target. This module gives a planning estimate inspired by standard acceptance-sampling logic. For a full OC-curve view, see the AQL Sampling Calculator.
Approximation: Ac from Poisson expectation at AQL
Planning note: Verify contractual plans against official ANSI/ASQ tables
Use this for planning and supplier discussions, then confirm any released inspection plan against the official standard your customer requires.
Higher inspection levels drive larger samples and tighter screening; lower AQL values do the same.
If the expected incoming defect rate is higher than the AQL, the acceptance probability falls and supplier containment becomes more urgent.
For a capability study or variable inspection, enter your best estimate of process variation, set the error band you can tolerate, and choose the confidence level your decision requires. The app returns the minimum recommended sample size, plus a finite-population adjustment when the total population is limited. Use Copy link or Report to share this exact analysis.
For attribute studies such as conformance audits or defect-rate checks, switch to attribute mode and enter an estimated defect proportion. If you do not have historical data, start with a conservative estimate and then refine your plan after the first collection cycle.
The AQL section is useful for incoming inspection planning. Enter lot size, select the general inspection level, and choose the AQL target. The app estimates a code letter, sample size, and acceptance number so you can discuss the plan with suppliers or your quality team.
For customer-specific, regulated, or contractual sampling requirements, validate the plan against the exact published standard and any site procedures before release.
This tool helps quality teams decide how much data they need before trusting the conclusion. It is useful for capability studies, process audits, inspection planning, and incoming quality work where small samples create false confidence.
It also supports acceptance-sampling thinking, which helps teams balance inspection effort against risk rather than defaulting to arbitrary sample counts.
| Scenario | Typical Input | Decision Goal |
|---|---|---|
| Variable study | Margin of error, confidence, estimated sigma | Estimate a mean or capability-related statistic with useful precision. |
| Attribute study | Confidence, expected defect rate, margin of error | Estimate a proportion such as defect rate or pass rate. |
| AQL planning | Lot size, AQL target, inspection level | Choose a reasonable incoming-inspection sampling plan. |
If a team wants to estimate a process mean within plus or minus 0.10 at 95% confidence and expects sigma to be 0.40, the required sample size will be much larger than the common default of 5 or 10 pieces. The calculator makes that gap visible before the team overstates certainty from a weak sample.
The same logic applies to defect-rate studies. If the process is low-defect, a very small sample can easily miss the true risk entirely.
Because weak samples make conclusions look more stable than they really are. Small samples can hide variation, drift, or low-frequency defects.
It is the amount of uncertainty the team is willing to tolerate around the estimate. Smaller margins require more data.
Yes. If you want to be more confident in the estimate, you need more evidence.
No. Capability studies, incoming inspection, and defect-rate estimation have different risk structures and should not be treated as one-size-fits-all exercises.
Choosing a sample count because it is convenient rather than because it is statistically justified for the decision being made.
Use the spreadsheet package when the sample-size decision feeds directly into broader capability and defect analysis work.
Use it when you need more depth on confidence, variation, distributions, and statistical decision quality.