AQL Sampling Calculator
Input Parameters
Computed Results
The AQL calculator determines the required sample size and defect tolerance for quality control inspections based on the ISO 2859-1 and ANSI/ASQ Z1.4 standards. By entering your lot size, inspection level, and acceptable quality limits, you can quickly find the exact number of units to inspect and the maximum number of allowable defects before a batch is rejected.
Practical Use Cases
Acceptance Quality Limit (AQL) sampling is a standard statistical tool used in manufacturing and supply chain quality control. Instead of inspecting every single item in a production run, inspectors check a statistically significant sample. This calculator is commonly used for:
- Consumer Goods Inspections: Determining how many garments, electronics, or toys to pull from a shipping container for pre-shipment inspection.
- Incoming Quality Control: Verifying that raw materials or components received from a supplier meet agreed-upon quality standards before entering the production line.
- Production Monitoring: Checking batches of finished goods at the factory level to ensure the manufacturing process remains within acceptable defect limits.
How the AQL Calculation Works
The AQL calculator does not use a single mathematical equation; instead, it automates the lookup process across standard AQL tables (ISO 2859-1 / ANSI/ASQ Z1.4). The process follows two main steps:
1. Determining the Sample Size Code Letter
First, the calculator matches the Lot Size with the selected Inspection Level to find a specific Code Letter. The standard tables group lot sizes into ranges (e.g., 1,201 to 3,200 units). For example, a lot size of 3,000 under General Inspection Level II corresponds to Code Letter K.
2. Finding the Sample Size and Acceptance Limits
Once the Code Letter is identified, it dictates the Required Sample Size. Code Letter K requires a sample size of 125 units. The calculator then cross-references this sample size with your chosen AQL percentages for Critical, Major, and Minor defects to determine the Acceptance (Ac) and Rejection (Re) numbers. If the number of defects found during inspection exceeds the Acceptance number, the entire lot fails the inspection.
Verified Scenario Walkthroughs
Below are examples of how different inspection parameters affect the required sample size and defect limits.
Small Batch with Strict Inspection
For a small, high-value batch requiring specialized inspection:
- Lot Size: 12 units
- Inspection Level: S3
- AQL Critical / Major / Minor: 0.65% / 1.0% / 1.5%
- Result: The code letter is A, requiring a sample size of 2 units. The plan for all defect types is Ac 0 / Re 1, meaning zero defects are allowed. The inspection ratio is 16.67%.
Standard Production Run Inspection
For a typical consumer goods inspection:
- Lot Size: 1,200 units
- Inspection Level: II
- AQL Critical / Major / Minor: 0% / 1.5% / 2.5%
- Result: The code letter is J, requiring a sample size of 80 units. The critical plan is Ac 0 / Re 1, major is Ac 3 / Re 4, and minor is Ac 5 / Re 6. The inspection ratio is 6.67%.
Large Scale High-Volume Manufacturing
For a massive production run requiring a higher level of scrutiny:
- Lot Size: 250,000 units
- Inspection Level: III
- AQL Critical / Major / Minor: 0.10% / 0.65% / 1.0%
- Result: The code letter is Q, requiring a sample size of 1,250 units. The critical plan is Ac 3 / Re 4, major is Ac 14 / Re 15, and minor is Ac 21 / Re 22. The inspection ratio is 0.50%.
Minimal Inspection Level for Bulk
For bulk items where minimal sampling is sufficient:
- Lot Size: 50,000 units
- Inspection Level: S1
- AQL Critical / Major / Minor: 0% / 4.0% / 6.5%
- Result: The code letter is D, requiring a sample size of 8 units. The critical plan is Ac 0 / Re 1, while both major and minor plans are Ac 1 / Re 2. The inspection ratio is 0.02%.
How to Use the Calculator
Follow these steps to determine your sampling plan:
- Enter the Lot / Batch Size: Input the total number of units in the shipment or production run.
- Select the Inspection Level: Choose the appropriate level. General Level II is the standard for most consumer goods. Special levels (S1-S4) are used when smaller sample sizes are necessary, often for destructive testing.
- Set AQL Percentages: Select the acceptable quality limits for Critical, Major, and Minor defects based on your quality control requirements.
- Review the Results: The calculator will display the required sample size, the corresponding code letter, and the specific Acceptance (Ac) and Rejection (Re) limits for each defect category.
Inputs and Outputs
| Field | Type | Description |
|---|---|---|
| Lot / Batch Size | Input | Total number of units in the inspection lot. |
| Inspection Level | Input | The level of scrutiny applied. General Level II is standard. |
| AQL Critical Defects (%) | Input | Acceptance quality limit for critical hazards or compliance violations. |
| AQL Major Defects (%) | Input | Acceptance quality limit for major functional defects. |
| AQL Minor Defects (%) | Input | Acceptance quality limit for cosmetic or minor workmanship issues. |
| Required Sample Size (Units) | Output | The exact number of units that must be randomly selected and inspected. |
| Sample Size Code Letter | Output | The standard letter designation based on lot size and inspection level. |
| Critical / Major / Minor Defects (Ac / Re) | Output | The maximum number of acceptable defects (Ac) and the threshold for rejection (Re) for each category. |
| Inspection Ratio (% of Lot) | Output | The percentage of the total lot that is being inspected. |
Frequently Asked Questions
What does Ac and Re mean in AQL?
Ac stands for Acceptance number, which is the maximum number of defective units allowed in the sample for the lot to pass. Re stands for Rejection number; if the number of defective units equals or exceeds this number, the entire lot fails the inspection.
Why does the sample size not increase proportionally with the lot size?
AQL sampling is based on statistical probability. As the lot size grows, a proportionally smaller sample is mathematically sufficient to represent the quality of the entire batch with a high degree of confidence.
What is the difference between General and Special inspection levels?
General inspection levels (I, II, III) are used for standard visual and functional checks, with Level II being the default. Special inspection levels (S1, S2, S3, S4) require much smaller sample sizes and are typically used when inspections are time-consuming, expensive, or involve destructive testing.