Microbial Sampling Plan Acceptance Probability Calculator
Negative test results are weaker evidence than most people expect. This calculator shows the probability that a zero-positive-allowed sampling plan catches a lot with a given contamination rate.
Your numbers
Count of independent sample units, c=0.
Percent of units that are contaminated.
Your results
Assumes random independent sampling from a homogeneous lot. Contamination is often clustered, which lowers real detection. Pathogen sampling gives limited assurance and does not replace preventive controls.
Detection probability vs prevalence
Sweeps True contamination prevalence in lot from 0.5 to 20, holding your other inputs fixed.
Connect test results to lot holds
An optional conversation on linking lab results to ERP lot status.
Optional. The tool and every export work without this. No spam.
How to use it
Enter how many sample units you test and the contamination prevalence you want to be able to detect. The tool returns the chance that a lot at that prevalence still passes, the chance it is detected, and the number of samples needed for your confidence target. Try prevalences from 0.5 to 5 percent to see why finished product testing alone cannot prove a lot is clean.
- c = 0 means any positive fails the lot
- Composite samples count as one test unit
- Combine with environmental monitoring
The math
If a fraction p of units are contaminated and you test n independent units, the chance all are negative is (1 minus p) to the power n. Detection probability is one minus that. To reach confidence C, n equals ln(1 minus C) divided by ln(1 minus p). For 95 percent confidence at 1 percent prevalence that is about 299 samples, the familiar rule of three style result.
Example and cautions
Sixty samples against a 2 percent prevalence lot give a 70 percent chance of detection and 30 percent chance the lot passes. At 0.5 percent prevalence, 60 samples detect less than 30 percent of lots. Cautions: real contamination clusters, sample units are small compared to the lot, and test sensitivity is below 100 percent. Treat sampling as verification of your controls, not a control itself.
Frequently Asked Questions
Why do negative results not prove a lot is safe?
Because low prevalence contamination is rarely hit by a practical number of samples. At 1 percent prevalence, 60 samples only detect it about 45 percent of the time.
What does c = 0 mean?
In a two-class plan, c is the maximum allowed number of positive samples. With c = 0 any positive result rejects the lot, which is typical for pathogens.
How many samples do regulators require?
It depends on the pathogen, product and rule. Plans from ICMSF, FSIS or customer specifications vary, so follow the applicable requirement rather than this calculator.
Does compositing samples change the math?
Compositing pools units into one analytical test. The math then depends on dilution and method sensitivity, so treat the number of composites as n only with caution.
Lot test results, holds and releases usually span the LIMS and ERP. Netray can build a read-only view that links them for traceability reviews.
Related Tools
Kill Step Log Reduction Time Calculator
Find the hold time needed for a target log reduction from D-value, z-value and process temperature, with a sweep showing time against temperature.
Quality & InspectionRetort F0 Lethality Calculator
Calculate F0 sterilization value from retort hold temperature and time, compare it to your required F0, and sweep temperature to see how sensitive the process is.
Quality & InspectionCCP Monitoring Log with Critical Limit Check Worksheet
Record each CCP reading, compare it with critical limits, and see which entries are out of limit. Export for audits.
Quality & InspectionCIP Cleaning Verification Record Template
Document a clean-in-place cycle: circuit, caustic and acid concentrations, temperatures, times, rinse checks and verification sign-off.
More Quality & Inspection tools
See all- HACCP Plan Template
- Food Plant Master Sanitation Schedule Template
- Food Mock Recall Checklist
- Food Shelf Life Calculator (Q10 Accelerated)
- SAP QM Process Capability Cp Cpk Calculator
- SAP QM Lot Rejection Rate, PPM and Sigma Level Calculator
- SAP QM Gauge R&R Study Calculator
- SAP QM Cp and Cpk Capability Calculator
- Job Shop Material Certification Log Worksheet
Keep exploring
Free tools
- Supplier Lot Acceptance Probability CalculatorCalculates the chance an incoming lot is accepted for a given supplier defect rate and sampling plan, and plots the operating characteristic curve.
- Zero Acceptance (c=0) Sampling Plan CalculatorFind the sample size that gives a chosen consumer risk at your limiting defect rate, then see the probability of accepting lots at any defect level.
- SAP QM OC Curve and Acceptance Probability CalculatorSee how a sampling plan behaves: acceptance probability and average outgoing quality across incoming defect rates.
ERP fixes and how-tos
- How to create an inspection plan in SAP QM (QP01)Create an inspection plan in SAP QM with QP01: header, operations, master inspection characteristics, sampling procedure and material assignment, plus a plan report.
- How to Create a Sampling Procedure in SAP QMCreate a sampling procedure and sampling scheme in SAP QM: QDV3, QDP1, sample types, valuation modes and how to assign them to inspection plans.
- SAP QM Sample-Drawing Procedure: Setup and Use (QPV1)Set up an SAP QM sample-drawing procedure with QPV1: containers, number of samples, link to the inspection plan and lot, and how physical samples are created.
Guides
- AI Automation for Infor M3 Food & BeverageAutomate Infor M3 for food and beverage manufacturing. AI-powered lot tracking, shelf life management, recipe optimization, and FDA compliance.
- SyteLine Inspection Plan Setup and Configuration GuideConfigure SyteLine inspection plans with test criteria, sampling rules, and measurement specs. Set up receiving, in-process, and final inspection plans in CloudSuite.
- Configuring Infor M3 for Food & Beverage Manufacturing: Traceability, Shelf Life, and ComplianceConfigure Infor M3 for food and beverage manufacturing. Lot traceability, shelf life management, catch weight handling, and FDA compliance in M3 13.4+.
AI on your ERP
- Infor M3 AI for Food and Beverage: Traceability, Yield and Shelf LifePrivate AI on Infor M3 for food and beverage: lot traceability, shelf life, catch weight, recipe yield and FSMA 204 recall readiness, run on-prem or private.
- AI for Dynamics 365 Business Central in Food and Beverage ManufacturingLot traceability, recall drills, expiry and yield questions answered from Business Central data by a private AI, for food and beverage producers.