AQL Calculator: How to Determine Your Sample Size for Quality Inspection
When you order a production run of thousands of units from an overseas factory, inspecting every single item is neither practical nor cost-effective. Instead, quality control professionals use statistical sampling based on the Acceptable Quality Level (AQL) standard to inspect a representative portion of the lot and make a pass/fail decision. An AQL calculator automates this process, instantly telling you how many units to inspect and how many defects to allow. This guide walks you through every step of using an AQL calculator, explains the inputs and outputs, and demonstrates how to apply the results with worked examples for common product types.
What Is an AQL Calculator?
An AQL calculator is a tool that implements the sampling tables defined by ISO 2859-1 (ANSI/ASQ Z1.4). You provide three inputs — lot size, inspection level, and AQL value — and the calculator returns your sample size and the accept/reject numbers for the inspection. It replaces the manual process of looking up code letters in Table 1 and then cross-referencing them with AQL values in Table 2.
Using a calculator eliminates two common problems: misreading the tables (which have dozens of rows and columns) and applying the wrong sampling plan to your inspection. Tetra Inspection's free AQL calculator performs these lookups instantly and is used by thousands of importers, quality managers, and procurement teams every month.
Step 1: Determine Your Lot Size
The lot size is the total number of units available for inspection. This is the most fundamental input to the AQL calculator, and getting it right is critical.
What Counts as the Lot Size?
The lot size is the number of finished, packaged units that are ready for inspection at the time the inspection takes place. It is not necessarily the same as your total order quantity. Here are common scenarios:
- Entire order produced at once: If your order is 5,000 units and all 5,000 are complete and packaged when the inspector arrives, the lot size is 5,000.
- Partial production: If your order is 10,000 units but only 8,000 are complete at the time of inspection, the lot size is 8,000. The remaining 2,000 would need a separate inspection.
- Multiple production runs: If your order of 6,000 units is produced in two batches of 3,000 from different production lines, each batch is a separate lot with a lot size of 3,000.
- Multiple SKUs: If your order includes 3,000 units of SKU A and 2,000 units of SKU B, these are typically treated as separate lots (3,000 and 2,000) unless they are identical products in different colours or sizes.
Why Lot Size Matters
A larger lot size means a larger sample, but the relationship is not proportional. For a lot of 500 units, the sample size at General Inspection Level II is 50 units (10%). For a lot of 50,000 units, the sample size is 500 units (1%). This is because statistical confidence does not increase linearly with sample size — the AQL tables are designed to achieve a consistent level of statistical reliability regardless of lot size.
Step 2: Choose Your Inspection Level
The inspection level determines the relationship between lot size and sample size. The AQL calculator offers two categories of inspection levels:
General Inspection Levels (I, II, III)
- Level I: Smallest sample size. Use when inspection is expensive, the product is low-risk, or you have strong confidence in the supplier. Provides less statistical discrimination.
- Level II: The default. This is what most importers and inspection companies use. It provides the best balance between cost and reliability. If you are unsure which level to choose, use Level II.
- Level III: Largest sample size. Use for high-risk products, new suppliers, or when previous inspections have uncovered quality problems. Provides the highest statistical confidence.
Special Inspection Levels (S-1, S-2, S-3, S-4)
Special Levels use much smaller samples and are designed for destructive or expensive testing. For example, if you need to test whether a product can survive a 1-metre drop, you do not want to destroy 200 units. Special Level S-2 might require only 5–8 units for the same lot size. Use these levels for:
- Drop tests and impact tests
- Pull-strength tests on small parts (toys, buttons)
- Chemical analysis (heavy metals, phthalates)
- Burn or flammability tests
- Electrical safety tests that damage the product
Step 3: Set Your AQL Values
The AQL value represents the maximum defect percentage you are willing to accept. You typically set different AQL values for different defect severities:
- Critical defects — AQL 0: Defects that could cause injury or violate safety regulations. Zero tolerance.
- Major defects — AQL 2.5: Defects that affect function or would cause a consumer return. This is the most common value for major defects across all product categories.
- Minor defects — AQL 4.0: Cosmetic imperfections that do not affect function. This is the most common value for minor defects.
You can set stricter values (AQL 1.0 or 1.5 for major defects) for high-value or safety-sensitive products, or more lenient values (AQL 6.5 for minor defects) for low-cost commodities. Read our comprehensive AQL guide for detailed guidance on choosing the right values.
Step 4: Interpret the Results
After entering your lot size, inspection level, and AQL values, the calculator returns three pieces of information for each defect category:
- Sample size: The exact number of units to randomly pull from the lot and inspect.
- Accept number (Ac): The maximum number of defective units allowed. If the number of defective units is equal to or less than this number, the lot passes.
- Reject number (Re): The minimum number of defective units that triggers lot rejection. This is always Ac + 1.
The decision is binary: pass or fail. There is no "conditional pass" in the AQL standard. If any defect category exceeds its accept number, the entire lot fails the inspection.
Worked Examples for Common Products
Let's walk through three real-world examples to show how the AQL calculator works in practice.
Example 1: Garments — 3,000 Cotton T-Shirts
Inputs:
- Lot size: 3,000
- Inspection level: General Level II
- AQL values: Critical 0, Major 2.5, Minor 4.0
Calculator outputs:
- Code letter: K
- Sample size: 125 units
- Critical defects: Ac = 0, Re = 1
- Major defects: Ac = 7, Re = 8
- Minor defects: Ac = 10, Re = 11
How to apply: The inspector randomly selects 125 t-shirts from across the production lot (not just from the top of the cartons). Each unit is checked against the product specification: measurements compared to size chart tolerances, stitching quality examined, colour compared to approved sample, labelling verified, and fabric defects noted. If the inspector finds 7 or fewer major defects (e.g., wrong sizing, major stitching failure, significant colour deviation) and 10 or fewer minor defects (e.g., loose threads, minor colour variation between units), the lot passes. Any critical defect (e.g., needles left in garments, wrong fibre content not matching care label) means an automatic failure.
Example 2: Electronics — 800 Wireless Earbuds
Inputs:
- Lot size: 800
- Inspection level: General Level II
- AQL values: Critical 0, Major 1.0, Minor 2.5
Calculator outputs:
- Code letter: J
- Sample size: 80 units
- Critical defects: Ac = 0, Re = 1
- Major defects: Ac = 2, Re = 3
- Minor defects: Ac = 5, Re = 6
How to apply: The inspector selects 80 pairs of wireless earbuds randomly. Each pair is powered on, paired via Bluetooth, and tested for audio quality, battery charging, button function, and microphone clarity. Physical inspection covers the charging case, earbud fit, and packaging completeness. With AQL 1.0 for major defects, only 2 major failures are allowed in the entire sample — this stricter setting reflects the higher product value and the importance of functionality in electronics. Destructive tests (e.g., cable pull test on the charging cable) would be performed on a separate, smaller sub-sample using Special Level S-2.
Example 3: Toys — 12,000 Plastic Building Blocks Set
Inputs:
- Lot size: 12,000
- Inspection level: General Level II
- AQL values: Critical 0, Major 1.5, Minor 4.0
Calculator outputs:
- Code letter: M
- Sample size: 315 units
- Critical defects: Ac = 0, Re = 1
- Major defects: Ac = 10, Re = 11
- Minor defects: Ac = 21, Re = 22
How to apply: The inspector randomly selects 315 building block sets. Each set is opened, and the block count is verified against the specification. Blocks are checked for proper fit (they should snap together and release without excessive force), colour accuracy, surface finish, and sharp edges. Age-appropriate warnings on packaging are verified against destination-market regulations (EN 71 for Europe, ASTM F963 for the US, CPSIA for lead and phthalate limits). Since these are children's products, the major defect AQL is set tighter at 1.5 rather than the standard 2.5. A separate sub-sample of 13 sets (Special Level S-3) undergoes destructive small-parts testing per regulatory standards.
Tips for Getting the Most Out of Your AQL Calculator
- Always verify the lot size on-site: Ask your inspector to count the cartons and verify the total unit count before determining the sample size. Factories sometimes report an incorrect lot size, which changes the sampling plan.
- Use different AQL values for different defect types: Do not use a single AQL value for all defects. Critical, major, and minor defects have fundamentally different impacts on your business and should be treated accordingly.
- Document everything before the inspection: Share your AQL settings, defect checklist, and approved product sample with the inspection company before the inspection date. This ensures the inspector applies your exact criteria.
- Combine visual inspection with functional testing: The AQL sample size applies to visual inspection. For functional tests, you may use the same sample or a sub-sample at a Special Inspection Level, depending on the product.
- Track results over time: Use your AQL inspection results to build a quality history for each supplier. This data is invaluable for applying switching rules (normal → tightened or reduced inspection) and for negotiating quality improvements.
Frequently Asked Questions
Is AQL sampling the same as random inspection?
AQL sampling requires true random selection from the entire lot. The inspector should select units from different cartons, different positions within each carton, and different production batches if applicable. Simply picking units from the most accessible location is not random sampling and can bias the results.
What happens if my lot fails the AQL inspection?
If the lot fails, you have several options: reject the entire shipment, require the factory to perform 100% sorting and rework of defective units, or negotiate a price reduction for the defective lot. After rework, a re-inspection should be performed to verify the corrective action was effective. Never accept a failed lot without corrective action — the defects will reach your customers.
Can I use AQL for incoming goods inspection at my warehouse?
Yes. AQL sampling is commonly used for incoming inspection at the destination. However, it is far more cost-effective to catch problems at the factory before shipping. Detecting defects after the goods have been shipped means you bear the cost of international freight for defective products.
How is AQL different from 100% inspection?
AQL inspection examines a statistically valid sample and extrapolates the results to the entire lot. 100% inspection examines every unit. While 100% inspection sounds more thorough, research shows that inspector fatigue causes the error rate to increase significantly after the first few hundred units, often making AQL sampling more reliable for large lots.
Where can I find a free AQL calculator?
Tetra Inspection offers a free, easy-to-use AQL calculator that implements the full ISO 2859-1 standard. Enter your lot size, select your inspection level, and choose your AQL values to instantly get your sample size and accept/reject numbers.
Related AQL Resources
Expand your AQL knowledge with these related resources: Our detailed AQL chart explained guide provides a visual walkthrough of every AQL table. For practical advice on setting AQL levels and negotiating with suppliers, read our guide on AQL inspection standards and best practices. You can also book a pre-shipment inspection or during-production inspection with Tetra Inspection to have our team apply AQL sampling on your behalf.
Our inspectors operate across Asia, with extensive quality control in China, ensuring fast, reliable inspections wherever your suppliers are located.
Ensure your products meet quality standards with Tetra Inspection's factory audit — our inspectors provide detailed reports within 24 hours.
Tetra Inspection
Quality control experts at Tetra Inspection, helping businesses protect their supply chains with reliable inspection services across 45+ countries worldwide.
Need Help With This?
Our inspectors handle this across 45+ countries with 48-hour scheduling.
Get Inspection Insights
Monthly quality tips and industry data.




