Positivity Rate Calculator
A positivity rate of 15% sounds precise until you ask how many tests it came from. Fifteen positives out of 100 tests and 1,500 out of 10,000 are both “15%,” but only one of them means anything. The calculator below computes the rate, then does the interpretation: confidence interval, predictive values, alert thresholds, benchmarks, and plain-language recommendations.
Benchmark bands are illustrative typical ranges built into the tool, not official thresholds, except the COVID-19 general-population band, which follows the WHO 3 to 12% adequate-testing range (at or below 5% for control). Predictive values use the observed positivity as the prevalence estimate, a simplification explained below.
Quick Answer
A lab runs 2,000 COVID-19 tests on the general population with 300 positives, a test with 90% sensitivity and 95% specificity, and warning/critical thresholds of 5% and 10%. The positivity rate is 15.00%, the verdict is CRITICAL, and the benchmark reads above the WHO 3 to 12% adequate-testing range. The calculator is pre-filled with this scenario, so press Calculate positivity rate to see every readout.
Key takeaways
- The rate is the easy part; the interpretation is the work. A 95% confidence interval says how much the rate could wobble, and it needs at least 30 tests.
- Sensitivity and specificity turn the rate into predictive values: with 90% sensitivity and 95% specificity at 15% positivity, about 76 of every 100 positives are true.
- Predictive values use the observed positivity as the prevalence estimate, which assumes the tested group represents the population they are applied to.
- The COVID-19 general-population band is sourced from WHO (3 to 12% adequate-testing range, at or below 5% for control); every other band in the tool is an illustrative typical range, not an official threshold.
- Quick Answer
- How to use the positivity rate calculator
- The formula, and the statistics behind the readouts
- Worked example: every readout, verified
- Reading the confidence interval
- Predictive values: what a positive actually means
- Alert thresholds and benchmarks
- What competing calculators miss
- Frequently asked questions
- Add This Calculator to Your Website
- References
How to use the positivity rate calculator
Enter the two required numbers, set the test context, and add whatever optional detail you have. Every optional section you fill unlocks another readout; the results stay hidden until you calculate.
- Enter total tests and positives (2,000 and 300 pre-filled). Positives cannot exceed the total.
- Set the test type and population (COVID-19, general population pre-filled). These drive the benchmark comparison and some recommendations.
- Add sensitivity and specificity (90 and 95 pre-filled) for predictive values and false-result estimates. One without the other prompts you to enter both.
- Add quality signals and thresholds: inconclusive and repeat counts, turnaround time, population size. Warning and critical thresholds default to 5% and 10%.
Pressing Enter in any field calculates. Reset restores the worked example.
The formula, and the statistics behind the readouts
95% CI = p ± 1.96 × √(p(1−p) ÷ n), shown when n ≥ 30
PPV and NPV come from Bayes' rule, with the observed positivity standing in for prevalence
Positivity Rate (%) = (positive tests ÷ total tests) × 100. Everything else on the page is interpretation layered on that division. The confidence interval uses the normal approximation for a proportion, documented in the NIST/SEMATECH statistics handbook and clipped to 0 to 100%; the confidence interval calculator covers the general form. Predictive values come from Bayes' rule with one honest simplification: the tool uses the observed positivity as the prevalence, which is exactly right when the tested group is the population you care about and only approximate otherwise. The BMJ's guide to interpreting a COVID-19 test result explains why predictive values swing so hard with prevalence.
Worked example: every readout, verified
The pre-filled scenario, 2,000 COVID-19 tests, 300 positives, 90% sensitivity, 95% specificity, thresholds 5% and 10%, general population, produces the following. Each string below is exactly what the calculator prints, verified by running the tool's own code.
| Readout | Result |
|---|---|
| Verdict | CRITICAL: 15.00% meets or exceeds the critical threshold (10%) |
| Positivity rate | Positivity rate: 15.00% (300 / 2,000) |
| Negative rate | 85.00% (1,700 / 2,000) |
| Confidence | 95% CI: 13.44% - 16.56% (large sample: high confidence) |
| Test performance | Sensitivity 90%, specificity 95%, PPV 76.1%, NPV 98.2%; estimated false positives 72, false negatives 31 |
| Benchmark | Above the WHO 3 to 12% adequate-testing range: testing is likely missing cases (sourced: WHO) |
| Recommendation | High positivity suggests a potential outbreak or testing bias: increase testing capacity and contact tracing. WHO guidance: keep test positivity at or below 5% for adequate testing coverage. |
Spot-check the interval: p = 0.15, margin = 1.96 × √(0.15 × 0.85 ÷ 2000) = 0.0156, so 15.00% ± 1.56 gives 13.44% to 16.56%. The PPV: (0.90 × 0.15) ÷ ((0.90 × 0.15) + (0.05 × 0.85)) = 0.135 ÷ 0.1775 = 76.1%, and 300 × (1 − 0.761) rounds to the 72 estimated false positives.
Reading the confidence interval
The interval answers how much the rate could move if testing were re-run. Width is decided almost entirely by sample size:
| Tests run | What the tool shows |
|---|---|
| Fewer than 30 | No interval, just the rate, which you should treat as anecdotal. |
| 30 to 99 | The 95% interval plus a small-sample caution. At n = 30 and 15% positivity the interval spans roughly 2% to 28%. |
| 100 to 999 | The plain 95% interval, usable for week-to-week comparisons within one testing program. |
| 1,000 or more | The interval plus a high-confidence note. |
The classic mistake is comparing two rates without looking at their intervals: 15% from 100 tests (interval roughly 8% to 22%) and 12% from 2,000 tests (roughly 10.6% to 13.4%) overlap, so the "drop" may be noise. For very small samples or rates near 0% or 100%, exact methods such as those compared in Newcombe's widely cited review behave better than the normal approximation, which is one more reason the tool withholds the interval below 30 tests.
Predictive values: what a positive actually means
Positivity rate tells you how many tests came back positive. The positive predictive value tells you how many of those positives to believe. They are different numbers, and confusing them is the most expensive mistake in testing.
With 90% sensitivity and 95% specificity at 15% positivity, the PPV is 76.1%: roughly three in four positives are true. The NPV is 98.2%: negatives are almost all trustworthy. The tool converts those into batch counts: an estimated 72 false positives and 31 false negatives out of 2,000 tests. Now run the same test in low-prevalence screening at 1% positivity: the PPV collapses to about 15%, so six of seven positives are false. Sensitivity and specificity did not change; the population did. That collapse is why the false positive rate calculator and the false discovery rate calculator exist as companions: the false discovery rate is simply one minus the PPV.
Two honest notes. First, the prevalence simplification from the formula section: the tool feeds the observed positivity into Bayes' rule as the prevalence, so the PPV describes the tested group, not necessarily the wider population. Second, the false-result counts are expected values from the model, not a recount of your batch.
Alert thresholds and benchmarks
Thresholds turn the rate into a decision. The tool compares the rate against your warning and critical levels, defaulting to 5% and 10%, and reports NORMAL below the warning line, WARNING between the lines, or CRITICAL at or above the critical line. Set them from your program's own action levels; the defaults are starting points, not standards.
Benchmarks compare the rate against the tool's built-in typical ranges for the test type and population:
| Test and population | Low | Moderate | High |
|---|---|---|---|
| COVID-19, general population (sourced: WHO) | At or below 5% | 3 to 12% range | Above 12% |
| COVID-19, symptomatic | 15% | 30% | 50% |
| COVID-19, high risk | 5% | 15% | 30% |
| COVID-19, contact tracing | 10% | 25% | 40% |
| HIV, general population | 0.1% | 0.5% | 1.0% |
| HIV, high risk | 2% | 5% | 10% |
| Influenza, general population | 5% | 15% | 25% |
| Influenza, symptomatic | 20% | 40% | 60% |
| Drug screening, workplace | 1% | 3% | 5% |
| Drug screening, general population | 5% | 10% | 15% |
A rate at or below the low marker reads low, between low and moderate reads moderate, between moderate and high reads high, and above high reads very high, each with the typical range printed beside it. Combinations outside this table, including the "Other" test type, report that no specific benchmarks exist rather than comparing against the wrong reference group. Every row except the COVID-19 general-population row is an illustrative typical range, not a clinical cutoff. The COVID-19 general-population row is sourced from WHO and works differently from the low, moderate and high columns: at or below 5% is the control level, 3 to 12% is the adequate-testing range, and above 12% sits outside it.
What competing calculators miss
Every rival tool on this keyword divides two numbers. The differences are all in what happens after the division:
- Two-number tools (Brave Calculator, Calculator Ultra): total and positives in, a percentage out. Correct arithmetic, and the analysis stops there: no interval, no predictive values, no thresholds, no benchmarks.
- Explainers without tools (TechBloat's TPR guide): a careful walkthrough of the formula and data hygiene, but nothing to run your numbers through.
- Post-test probability tools (OnlyCalculators): the closest rival to this page's predictive panel, with PPV, NPV, likelihood ratios and a full true/false breakdown. Its gap is the other direction: it needs prevalence as an input and never computes the positivity rate itself, and it has no alert thresholds or benchmarks.
- Bayes visualizers (Firgelli's interactive calculator): shows how priors, sensitivity and specificity combine into posterior probability. Elegant, but not a testing workflow: no batches, no quality signals, no recommendations.
- The gap this page fills: the rate and its meaning in one run, the confidence interval with honest small-sample behavior, PPV and NPV with estimated false-result counts, threshold verdicts, test-and-population benchmarks, quality readouts, and plain-language recommendations, plus the disclosures rivals skip.
Frequently asked questions
The percentage of diagnostic tests that return a positive result within a defined set of tests: positives divided by total tests, times 100. It describes the tested group, not the whole population, and its meaning depends on how many tests were run and who was tested.
At least 30 for this calculator to show a 95% confidence interval, and more is better: the interval at 30 tests and 15% positivity spans roughly 2% to 28%, while at 2,000 tests it tightens to about 13.4% to 16.6%. Below 30 tests the tool still computes the rate but refuses the interval, which is the honest behavior.
Positivity rate is about the tested group; prevalence is about the population. They coincide only when the tested group represents the population. This calculator uses the observed positivity as the prevalence when computing predictive values, a simplification that is exact for the tested group and approximate elsewhere.
The positive predictive value is the chance that a positive result is a true positive; the negative predictive value is the chance that a negative result is a true negative. Both come from Bayes' rule using sensitivity, specificity and prevalence. PPV falls hard when prevalence is low, which is why a good test can still produce mostly false positives in broad screening.
The tool carries benchmark bands for ten test-and-population combinations, such as COVID-19 in the general population or HIV in high-risk groups. Anything outside that table, including the Other test type, gets an explicit no-benchmark message rather than a comparison against the wrong reference group.
Inconclusive results stay in the total test count but are excluded from positives, and the negatives are computed as total minus positives minus inconclusives. Their share is reported separately, and an inconclusive rate above 5% triggers a quality-control warning in the recommendations.
Negatives are total tests minus positives minus inconclusives, so if positives plus inconclusives exceed the total, the inputs are inconsistent and the negative count goes negative. The tool only validates that positives alone do not exceed the total, so check that your three counts add up before trusting the breakdown.
During the COVID-19 pandemic, the World Health Organization used test positivity below 5%, sustained for at least two weeks, as a signal that testing was adequate enough to track the virus, before relaxing public-health measures. It is a testing-adequacy signal, not a clinical cutoff, and researchers have documented and debated it in the peer-reviewed literature.
Add This Calculator to Your Website
Embed this calculator on your own site with the code below. Pick a size to preview it live, then copy the code.
Powered by Calculator Zilo
References
- Shreffler, J. and Huecker, M. R. Diagnostic Testing Accuracy: Sensitivity, Specificity, Predictive Values and Likelihood Ratios, StatPearls, via NCBI Bookshelf. Accessed October 23, 2026.
- National Institute of Standards and Technology / SEMATECH. Confidence Interval for a Proportion, e-Handbook of Statistical Methods. Accessed October 23, 2026.
- Altman, D. G. and Bland, J. M. Diagnostic tests 1: Sensitivity and specificity, BMJ 1994;308:1552. Accessed October 23, 2026.
- Watson, J. et al. Interpreting a covid-19 test result, BMJ 2020;369:m1808. Accessed October 23, 2026.
- Cochrane. Rapid, point-of-care antigen and molecular-based tests for diagnosis of SARS-CoV-2 infection, Cochrane Systematic Review. Accessed October 23, 2026.
- U.S. Food and Drug Administration. FAQs on Testing for SARS-CoV-2. Accessed October 23, 2026.
- Kost, G. J. A novel benchmark for COVID-19 pandemic testing effectiveness, documenting the WHO 5% test-positivity guidance, Diagnostics. Accessed October 23, 2026.
- World Health Organization, via Our World in Data. COVID-19 Testing Data and Positivity Methodology (WHO 3 to 12% adequate-testing benchmark; at or below 5% recommended for control). Accessed October 24, 2026.
- UNAIDS. Global HIV Statistics Fact Sheet. Accessed October 23, 2026.
- Newcombe, R. G. Two-sided confidence intervals for the single proportion: comparison of seven methods, Statistics in Medicine 1998, via PubMed. Accessed October 23, 2026.
- Our World in Data. COVID-19 Testing Data and Positivity Methodology. Accessed October 23, 2026.
