Inspection Sampling Calculator
Determine sample size, acceptance number, and rejection number per ANSI/ASQ Z1.4 (MIL-STD-105) for attribute sampling plans.
Calculator
Results
Code Letter
H-
ANSI/ASQ Z1.4 code letter based on lot size
50-
Number of units to inspect from the lot
5-
Maximum allowable defectives for acceptance
6-
Minimum defectives for rejection
1.00%
Acceptable Quality Level
50[Ac=5,Re=6]-
Plan notation n[Ac,Re]
1.20%
Estimated lot percent defective
100.00%
OC curve probability at estimated quality
Visualizations
Results Overview
Formula
The sampling plan is determined by lot size and AQL. The code letter comes from the lot size range, sample size from the code letter, and Ac/Re from the intersection of code letter and AQL row.
Alternative Form
Variables
| Symbol | Name | Unit | Description |
|---|---|---|---|
| N | Lot Size | - | Total units in the inspection lot |
| n | Sample Size | - | Number of units inspected |
| Ac | Acceptance Number | - | Maximum defects allowed for lot acceptance |
| Re | Rejection Number | - | Minimum defects for lot rejection |
| AQL | Acceptable Quality Level | % | Maximum tolerable percent defective |
| P_a | Probability of Acceptance | - | Probability lot is accepted at given quality level |
Explanation
ANSI/ASQ Z1.4 (formerly MIL-STD-105) provides standardized sampling plans for attribute inspection. The standard uses code letters based on lot size and inspection level to determine sample size. Acceptance numbers (Ac) and rejection numbers (Re) come from the AQL table. The OC curve shows the probability of acceptance versus lot quality.
Derivation
The OC curve uses the Poisson distribution to approximate the hypergeometric distribution when n/N < 0.1. P_a = Σ poisson(k; np) for k=0 to Ac, where p is the fraction defective in the lot.
Step-by-Step Calculation
Follow each step to understand how the result is calculated from your inputs.
Determine lot size N and select AQL.
Look up code letter from ANSI/ASQ Z1.4 Table 1 (General Inspection Level II).
Find sample size from code letter, then Ac and Re from AQL table.
Evaluate OC curve: probability of acceptance at estimated lot quality.
Worked Examples
See how the calculator works with different scenarios.
Scenario
A batch of 500 machined shafts. AQL = 1.0%. Determine ANSI/ASQ Z1.4 sampling plan.
Inputs
Calculation
Code letter from lot size 281-500 = H Sample size for H = 50 AQL 1.0% with code H: Ac=5, Re=6
Result
Plan: n=50, Ac=5, Re=6
Interpretation
Inspect 50 shafts. Accept lot if ≤5 defective, reject if ≥6 defective.
Understanding Your Result
Your Result: Code Letter: H -
Typical range: Code letters A-Q cover lot sizes 2 to 500,000+. AQL values 0.065-10%. Sample sizes 2-1250 units. Ac values 0-21 typical.
What This Means
The inspection sampling plan determines how many units to inspect from a lot and the criteria for accepting or rejecting based on the number of defects found.
Why It Matters
Proper sampling balances inspection cost against the risk of accepting bad lots (consumer risk) or rejecting good lots (producer risk). ANSI/ASQ Z1.4 provides internationally recognized standard plans.
Professional Interpretation
The OC curve of the sampling plan shows its discriminating power. Steeper OC curves give better protection. The AQL is the quality level that the producer wants accepted with high probability, while the LTPD (Lot Tolerance Percent Defective) is the quality level the consumer wants rejected with high probability.
Recommendations
- •Select AQL based on product criticality and customer requirements
- •Use tightened inspection when quality history is poor
- •Switch to reduced inspection only after sustained quality performance
- •Document the sampling plan and switching rules
- •Consider zero-defect plans (c=0) for critical safety applications
- •Train inspectors on proper sampling and defect classification
Educational Content
Introduction
Acceptance sampling is a statistical quality control technique where a sample is taken from a lot and inspected to make a decision about the entire lot. ANSI/ASQ Z1.4 (identical to ISO 2859-1 and MIL-STD-105) is the most widely used standard for attribute sampling plans.
Concept Explanation
The standard provides indexed sets of sampling plans that match the discriminating power of the plan to the lot size and AQL. The OC curve shows the probability of accepting lots at various quality levels. Key risks include producer's risk (α) of rejecting good lots and consumer's risk (β) of accepting bad lots.
Applications
Benefits
- •Reduced inspection costs vs 100% inspection
- •Statistically valid acceptance criteria
- •Standardized international methodology
- •Quantifiable producer and consumer risks
- •Flexible switching rules for changing quality
Limitations
- •Does not directly improve process quality
- •Requires proper lot integrity
- •Sampling error can lead to incorrect decisions
- •Not suitable for very small lots or destructive testing
Best Practices
- •Use AQL consistent with process capability
- •Maintain proper lot segregation and identification
- •Document all sampling and inspection results
- •Apply switching rules consistently
- •Train personnel on standard procedures
Common Misconceptions
Practical Tips
- •Match AQL to the criticality of the characteristic being inspected
- •Use zero-acceptance (c=0) plans for safety-critical features
- •Consider sequential or variable sampling plans for lower cost
- •Track lot disposition history to apply correct switching rules
- •Coordinate with suppliers on sampling plan expectations
- •Review OC curves to understand plan performance
- •Use statistical process control alongside acceptance sampling
Common Mistakes
Assumptions
This calculator makes the following assumptions to provide estimates:
Limitations
Be aware of these limitations when using this calculator:
Frequently Asked Questions
Answers to common questions about this calculator.
What is ANSI/ASQ Z1.4?
How is the code letter determined?
What is AQL?
What is Ac (acceptance number)?
What is Re (rejection number)?
What is an OC curve?
What is producer's risk?
What is consumer's risk?
When should I use tightened inspection?
When should I use reduced inspection?
What is the difference between single and double sampling?
Can I use this for variable data?
What is MIL-STD-105?
How does lot size affect sample size?
What are special inspection levels?
What is the LTPD?
How do I interpret the sampling plan notation?
What is the AOQL?
Can I use AQL 0%?
What is the difference between AQL and AOQ?
How do I choose between attribute and variable sampling?
What is the AFI value?
How do switching rules work?
What is the sample size code letter?
What is a Type I error in sampling?
How does process average affect sampling?
What is the normal-tightened-reduced scheme?
Can I use MIL-STD-105 tables directly?
What training is needed for inspection sampling?
How do I handle nonconforming units found during inspection?
What is the relationship between AQL and process capability?
Related Calculators
Explore more calculators related to this topic.
Related Guides
Deepen your understanding with these educational resources.
Glossary
Technical terms used in mortgage calculations explained in plain language.
- AQL (Acceptable Quality Level)
- The maximum percent defective that can be considered satisfactory as a process average for sampling inspection purposes.
- Ac (Acceptance Number)
- The maximum number of defectives allowed in the sample for lot acceptance.
- Re (Rejection Number)
- The minimum number of defectives in the sample that requires lot rejection.
- OC Curve (Operating Characteristic Curve)
- A curve showing the probability of accepting a lot as a function of the lot's percent defective.
- ANSI/ASQ Z1.4
- US national standard for attribute sampling plans, identical to ISO 2859-1, providing indexed sampling plans.
- MIL-STD-105
- Former US military standard for attribute sampling, replaced by ANSI/ASQ Z1.4 and ISO 2859-1.
- ISO 2859-1
- International standard for attribute sampling plans, equivalent to ANSI/ASQ Z1.4.
- Producer's Risk (α)
- The probability of rejecting a lot when the lot quality equals the AQL (typically 5%).
- Consumer's Risk (β)
- The probability of accepting a lot when the lot quality equals the LTPD (typically 10%).
- LTPD
- Lot Tolerance Percent Defective - the quality level rejected with high probability (typically 90%).
- AOQL
- Average Outgoing Quality Limit - the worst possible average quality after inspection with screening of rejected lots.
- Switching Rules
- Procedures for moving between normal, tightened, and reduced inspection based on recent quality history.
- Code Letter
- A letter (A-Q) assigned based on lot size and inspection level that determines sample size.
- Single Sampling Plan
- A plan where one sample is taken from the lot and the acceptance decision is based solely on that sample.
- Double Sampling Plan
- A plan where a second sample may be taken if the results from the first sample are inconclusive.
Authoritative References
Trusted sources and standards referenced by this calculator.
Applicable Standards
Was This Calculator Helpful?
Page Information
2026-07-30
2.0.0
- ANSI/ASQ Z1.4-2008 - Sampling Procedures and Tables for Inspection by Attributes
- ISO 2859-1:1999 - Sampling procedures for inspection by attributes
- MIL-STD-105E - Sampling Procedures and Tables for Inspection by Attributes
- NIST Engineering Statistics Handbook - Acceptance Sampling
- ASQ - Acceptance Sampling in Quality Control
- Schilling & Neubauer - Acceptance Sampling in Quality Control (CRC Press)
Free to use for educational and professional purposes.