QP Use Calculator | Acceptance Sampling (AQL)


Professional Tools for Quality Assurance

QP Use Calculator: Acceptance Sampling (AQL)

A vital tool for Qualified Persons (QP) and quality managers to determine lot acceptability using statistical sampling based on the MIL-STD-105E standard. This QP Use Calculator helps in making informed batch release decisions.



The total number of units in the production batch being inspected.


Determines the relationship between the lot size and the sample size. Level II is standard.


The maximum percent of defective units that can be considered satisfactory as a process average.


Enter the actual number of defective units found in the sample after inspection.


Chart: The relationship between AQL and the number of acceptable defects for a given sample size.

What is a QP Use Calculator?

A QP Use Calculator is a specialized tool designed for a Qualified Person (QP) in industries like pharmaceuticals and medical devices to make critical decisions about product batches. The term “QP” refers to the individual legally responsible for certifying that each batch of a medicinal product meets all quality standards before it is released to the market. This calculator specifically applies the principles of Acceptance Sampling using an Acceptable Quality Limit (AQL), a method standardized in documents like MIL-STD-105E. It removes guesswork by providing a statistical basis for either accepting or rejecting a large production lot based on the quality of a small, randomly selected sample. This is one of the most common and critical uses of a calculator in a QP’s daily work.

Anyone in a quality assurance or quality control role can use this tool, but it is indispensable for QPs who bear the final responsibility for batch release. A common misunderstanding is that AQL represents a “permission” to produce a certain percentage of defects. In reality, it’s a statistical risk management tool for inspection; the goal is always zero defects, but AQL provides a standardized method for making decisions when absolute (100%) inspection is not feasible.

QP Use Calculator Formula and Explanation

The core of this QP Use Calculator is not a single mathematical formula but a two-step lookup process based on standardized tables (ANSI/ASQ Z1.4, formerly MIL-STD-105E). This process ensures consistency in quality decisions.

  1. Determine Sample Size Code Letter: The calculator first finds a code letter based on the Lot Size and the selected General Inspection Level. Tighter inspection levels (e.g., Level III) lead to larger sample sizes for the same lot.
  2. Determine Sampling Plan: Using the code letter from step 1 and the chosen AQL, the calculator looks up the final sampling plan. This plan specifies the exact sample size to inspect and the corresponding Acceptance Number (Ac) and Rejection Number (Re).

For more on quality control methodologies, see our guide on statistical process control.

Variables Used in the QP Acceptance Sampling Calculator
Variable Meaning Unit Typical Range
Lot Size Total number of items in the batch to be inspected. Units (e.g., vials, tablets) 100 – 500,000+
Inspection Level Determines the relative amount of inspection. Enumerated (I, II, III) Level II is most common.
AQL Acceptable Quality Limit, the worst tolerable process average. Percentage (%) 0.65% – 4.0% for major defects.
Sample Size The number of units randomly selected from the lot for inspection. Units Determined by the calculator.
Acceptance Number (Ac) The maximum number of defects allowed in the sample for the lot to be accepted. Count Determined by the calculator.

Practical Examples

Example 1: Standard Pharmaceutical Batch

A Qualified Person is assessing a batch of 10,000 vials of a sterile solution. Using a standard process, they select General Inspection Level II and an AQL of 1.0% for major defects.

  • Inputs: Lot Size = 10,000, Inspection Level = II, AQL = 1.0%
  • Calculator Results:
    • Sample Size Code Letter: L
    • Required Sample Size: 200 units
    • Acceptance Number (Ac): 5 defects
    • Rejection Number (Re): 6 defects
  • Conclusion: The QP must randomly sample and inspect 200 vials. If 5 or fewer defective vials are found, the entire batch of 10,000 is accepted. If 6 or more are found, the batch is rejected for further investigation. For a deeper dive into this, read about what is AQL in practice.

Example 2: High-Risk Component with Tightened Inspection

A supplier has a history of inconsistent quality for a critical component. For a new lot of 1,200 units, the QP decides to use Tightened Inspection (Level III) with a stricter AQL of 0.65%.

  • Inputs: Lot Size = 1,200, Inspection Level = III, AQL = 0.65%
  • Calculator Results:
    • Sample Size Code Letter: K
    • Required Sample Size: 125 units
    • Acceptance Number (Ac): 2 defects
    • Rejection Number (Re): 3 defects
  • Conclusion: Despite the smaller lot size, the tightened inspection level still requires a significant sample of 125 units. The stricter AQL means that finding just 3 defective components will cause the entire lot to be rejected, reflecting the higher risk associated with the component. This aligns with modern risk management in pharma.

How to Use This QP Use Calculator

  1. Enter Lot Size: Input the total quantity of your production batch in the “Lot (Batch) Size” field.
  2. Select Inspection Level: Choose the appropriate inspection level. “Level II” is the default and most widely used for normal inspection. Use “Level III” for tighter control or “Level I” for reduced inspection when a supplier has a strong quality history.
  3. Choose AQL: Select the Acceptable Quality Limit from the dropdown. This percentage reflects your tolerance for defects. A lower AQL (e.g., 0.65%) is stricter than a higher AQL (e.g., 4.0%).
  4. Enter Defects Found: After inspecting the required sample size (which the calculator will determine), enter the number of defects you actually found.
  5. Interpret Results: The calculator provides the required sample size and the acceptance/rejection numbers. The primary result will clearly state whether to “Accept Lot” or “Reject Lot” based on the defects you entered, providing a clear basis for your pharmaceutical batch release decision.

Key Factors That Affect Acceptance Sampling

  • Lot Homogeneity: The entire batch must be produced under uniform conditions. A sample is only representative if the lot is homogenous.
  • Random Sampling: The process of selecting units for the sample must be truly random. Any bias in selection invalidates the statistical foundation of the AQL method.
  • Inspection Level Choice: Moving from Level I to Level III dramatically increases the sample size, providing greater confidence but also costing more time and resources.
  • AQL Definition: A lower AQL forces a higher quality standard, as fewer defects are permissible for a given sample size. The choice of AQL is a critical business and quality decision.
  • Switching Rules: MIL-STD-105E includes rules for switching between normal, tightened, and reduced inspection based on recent lot history. Consistent acceptance may allow for reduced inspection, while consecutive rejections will force a move to tightened inspection.
  • Defect Classification: Properly classifying defects as critical, major, or minor is crucial. A different AQL is typically applied to each class, with a 0% AQL for critical defects. This calculator is intended for a single class of defects (e.g., major).

Frequently Asked Questions (FAQ)

1. What does QP stand for?

QP stands for Qualified Person, a role legally mandated in the EU and UK pharmaceutical industry responsible for certifying batches of medicinal products before release.

2. Is this QP Use Calculator compliant with regulations?

This calculator implements the widely accepted logic of the MIL-STD-105E / ANSI/ASQ Z1.4 standard. While the tool provides the correct sampling plan, the user is responsible for ensuring its application is compliant with their specific regulatory requirements and internal SOPs for GMP compliance.

3. Why does sample size not scale directly with lot size?

The statistical power of a sample is more dependent on its absolute size than its size relative to the population (lot). This is why a lot of 50,000 units doesn’t require a sample ten times larger than a lot of 5,000 units. The tables do increase sample size for larger lots, but not linearly, balancing statistical validity with practical effort.

4. What is the difference between AQL and LTPD?

AQL (Acceptable Quality Limit) is the supplier-focused metric representing the worst quality level that is still considered acceptable. LTPD (Lot Tolerance Percent Defective) is the consumer-focused metric representing the quality level that is considered unacceptable.

5. Can I use this for 0% AQL?

The standard AQL tables are not designed for a 0% AQL. If you have a zero-tolerance policy for a specific defect (e.g., critical defects), a different sampling approach or 100% inspection is typically required. This calculator is for non-zero AQL values.

6. What happens if the calculator indicates to reject a batch?

A “Reject Lot” result means the number of defects found in the sample exceeds the statistical limit. The batch should be quarantined and subjected to further investigation. This may involve 100% inspection, reprocessing, or destruction of the batch, depending on the nature of the defects and regulatory guidelines.

7. How do I choose the correct inspection level?

Level II is the default for normal inspection. Use Level III (tightened) if the supplier has a poor quality history or the product is high-risk. Use Level I (reduced) only when a supplier has a proven, excellent track record over many consecutive batches, as defined by your quality system.

8. What is a ‘Sample Size Code Letter’?

It is an intermediate step in the AQL process. The letter (e.g., ‘G’, ‘K’, ‘M’) acts as a key to link the batch size to a specific row in the main sampling plan table, simplifying the standard’s structure.

© 2026 Production-Ready Calculators Inc. All Rights Reserved.




Leave a Reply

Your email address will not be published. Required fields are marked *