Skip to content
Other

False Positive Calculator

Enter the prevalence of a condition and your test's sensitivity and specificity to get the complete confusion-matrix breakdown: true positives, false positives, false negatives, true negatives and all derived metrics including positive predictive value (PPV), negative predictive value (NPV), likelihood ratios and overall accuracy. All results update as you type.

Your details

The proportion of the tested population that actually has the condition. For a disease affecting 1 in 20 people enter 5.
%
The probability that the test is positive when the condition is truly present. Also called recall or the true positive rate.
%
The probability that the test is negative when the condition is truly absent. A specificity of 95 percent means 5 percent of healthy people test positive.
%
The size of the group to apply the rates to. Changing this scales the counts but does not affect percentages or predictive values.
people
False Positive RateLow Predictive Value
5%

Proportion of truly healthy people who test positive (= 1 - specificity)

Positive Predictive Value (PPV)48.65%
Negative Predictive Value (NPV)99.45%
Overall Accuracy94.75%
Likelihood Ratio Positive (LR+)18
Likelihood Ratio Negative (LR-)0.105
F1 Score0.632
True Positives450
False Positives475
False Negatives50
True Negatives9,025
False Positives (% of positives)51.35%
48.65% %
Very Low PPV<30Low PPV30-60Moderate PPV60-80High PPV80-95Excellent PPV95+
049.9799.9415099
Prevalence (%)
Rate (%)
Prevalence (%)PPV (%)False Positive Rate (%)
115.385
226.875
335.765
442.865
548.655
653.475
757.535
861.025
964.035
1066.675
1168.995
1271.055
1372.95
1474.565
1576.065
1677.425
1778.665
1879.85
1980.855
2081.825
2182.715
2283.545
2384.325
2485.045
2585.715
2686.355
2786.945
2887.55
2988.035
3088.525
31895
3289.445
3389.865
3490.275
3590.655
3691.015
3791.365
3891.695
3992.015
4092.315
4192.65
4292.875
4393.145
4493.45
4593.645
4693.885
4794.15
4894.325
4994.535
5094.745
5194.935
5295.125
5395.35
5495.485
5595.655
5695.825
5795.985
5896.135
5996.285
6096.435
6196.575
6296.715
6396.845
6496.975
6597.15
6697.225
6797.345
6897.455
6997.565
7097.675
7197.785
7297.895
7397.995
7498.095
7598.185
7698.285
7798.375
7898.465
7998.545
8098.635
8198.715
8298.85
8398.875
8498.955
8599.035
8699.15
8799.185
8899.255
8999.325
9099.395
9199.455
9299.525
9399.585
9499.655
9599.715
9699.775
9799.835
9899.895
9999.945
  • PPV (%)
  • False Positive Rate (%)

48.6% of positive results are true - 51.4% are false alarms at 5% prevalence.

  • A positive result from this test is correct 48.6% of the time at this prevalence - the other 51.4% are false alarms.
  • The false positive rate is 5.0%, meaning 5.0 in every 100 healthy people will get an incorrect positive result.
  • In a group of 10,000 people with 5% prevalence, you expect roughly 450 true positives and 475 false positives.
  • PPV is heavily driven by prevalence: even a very specific test (95% specificity) produces many false alarms when the condition is rare.

Next stepA PPV below 50% means most positive results are false alarms - consider confirmatory testing or raising the pre-test probability before screening.

What is a false positive?

A false positive occurs when a test indicates that a condition is present, but it is actually absent. In medical testing, this means a healthy person receives a positive result. In statistical terms, false positives are also called Type I errors. The false positive rate (FPR) is the complement of specificity: FPR = 1 - specificity. A test with 95% specificity will produce a false positive in 5 out of every 100 truly healthy individuals tested. While this sounds low, the real-world impact depends critically on how common the condition is in the population being tested - known as prevalence.

Why prevalence changes everything: the base rate fallacy

Consider a test with 90% sensitivity and 95% specificity applied to a population where only 1% of people have the condition. In a group of 10,000 people: about 90 true positives are found (90% of the 100 who have the condition), but 495 false positives also appear (5% of the 9,900 who do not have it). That means roughly 85% of all positive results are false alarms - even with an apparently excellent test. This is the base rate fallacy: ignoring how rare the condition is leads to dramatic overestimation of a positive result's meaning. As prevalence rises, PPV improves rapidly because there are far more true cases for the test to find relative to the pool of healthy people who might test falsely positive.

Understanding positive and negative predictive values

Sensitivity and specificity are fixed properties of a test, but they do not directly tell you what a result means for an individual patient. Positive Predictive Value (PPV) tells you the probability that a positive result reflects a true condition, while Negative Predictive Value (NPV) gives the probability that a negative result means the condition is absent. Both values change with prevalence. A screening test for a rare disease may have a PPV of only 10% in the general population but 80% in a high-risk group - the test has not changed, only the population. This is why population-level screening programs and targeted testing produce very different result profiles.

Likelihood ratios and clinical decision-making

Likelihood ratios (LRs) are preferred in clinical practice because they are independent of prevalence. The positive likelihood ratio (LR+) is the ratio of the true positive rate to the false positive rate: LR+ = sensitivity / (1 - specificity). An LR+ above 10 provides strong evidence for a condition; above 2 provides moderate evidence. The negative likelihood ratio (LR-) = (1 - sensitivity) / specificity; values below 0.1 provide strong evidence against a condition. You can use an LR with a Fagan nomogram to convert pre-test probability to post-test probability without needing to recalculate everything from scratch. In practice, an LR+ of 5-10 is considered clinically useful, while values near 1 mean the test adds little diagnostic information.

The F1 score and overall accuracy

The F1 score is the harmonic mean of precision (PPV) and recall (sensitivity): F1 = 2 x PPV x sensitivity / (PPV + sensitivity). It is widely used in machine learning and information retrieval as a single metric that balances false positives and false negatives. A perfect test has an F1 of 1.0; a completely useless test has 0. Overall accuracy - the proportion of all results that are correct - is often misleading when prevalence is very low, because a test that always returns negative would be correct in 99% of cases for a 1% prevalence condition, yet it would be clinically worthless. This is why accuracy alone is a poor metric for imbalanced datasets and diagnostic tests on rare conditions.

Interpreting Likelihood Ratios

LR+ valueDiagnostic interpretationEffect on post-test probability
> 10Very strong evidence Large, often conclusive shift
5 to 10Strong evidence Moderate to large shift
2 to 5Moderate evidence Small to moderate shift
1 to 2Weak evidence Minimal shift
1No diagnostic value No change
0.5 to 1Weak negative evidence Minimal shift toward no disease
0.1 to 0.5Moderate negative evidence Small to moderate shift toward no disease
< 0.1Strong negative evidence Large shift toward no disease

Likelihood ratios (LR) indicate how much a test result shifts the probability of a diagnosis. Values closer to 1 have less diagnostic value.

Frequently asked questions

What is the difference between false positive rate and false discovery rate?

The false positive rate (FPR) is the proportion of truly healthy people who test positive - it equals 1 minus specificity and is a property of the test. The false discovery rate (FDR) is the proportion of positive results that are actually false positives - it equals 1 minus PPV and depends on both the test and the prevalence. For the same test, FDR rises sharply as prevalence falls because there are more healthy people to generate false alarms relative to the number of true cases being found.

Why is PPV so low for rare diseases even with a good test?

When a condition is rare, the pool of people who do not have it is very large. Even a small false positive rate applied to that large pool produces many false alarms. Meanwhile, there are few true cases to generate true positives. This mathematical reality means that for a disease with 0.1% prevalence, even a test with 99% sensitivity and 99% specificity will produce about 91% false positives - roughly ten false alarms for every true case found. This is Bayes's theorem in action and explains why confirmatory testing is standard practice after a positive screening result.

What is a good false positive rate for a diagnostic test?

It depends on the clinical context. For a screening test where false negatives are catastrophic (missing cancer, for example), a higher false positive rate may be acceptable because sensitivity is prioritized. For a confirmatory test where a false positive leads to harmful or expensive treatment, a very low false positive rate (very high specificity) is essential. As a rough guide, a false positive rate below 5% (specificity above 95%) is generally considered good for screening, while confirmatory tests often require specificity above 99%.

How do sensitivity and specificity relate to false positives and false negatives?

Sensitivity measures how well a test detects true cases: high sensitivity means few false negatives. Specificity measures how well a test rules out non-cases: high specificity means few false positives. There is typically a trade-off between the two - raising the threshold that triggers a positive result increases specificity (fewer false positives) but reduces sensitivity (more false negatives), and vice versa. The optimal balance depends on the relative costs of each type of error in the specific clinical or practical setting.

What are likelihood ratios and why should I use them?

Likelihood ratios (LRs) express how much a test result changes the odds of having a condition. Unlike PPV and NPV, they do not change with prevalence, which makes them portable across different populations. LR+ = sensitivity / (1 - specificity); LR- = (1 - sensitivity) / specificity. You can apply them to any prior probability using a Fagan nomogram or the formula: post-test odds = pre-test odds x LR. An LR+ above 10 or LR- below 0.1 is generally considered diagnostically powerful.

Can I use this calculator for A/B testing or machine learning?

Yes. The confusion-matrix framework applies to any binary classifier: a positive result is a predicted positive, sensitivity is recall, specificity is related to fall-out, and PPV is precision. Enter the base rate of the positive class as prevalence, your model's recall as sensitivity, and your model's specificity. The F1 score and accuracy outputs are particularly relevant for evaluating classifier performance. Note that in imbalanced datasets, accuracy is often misleading and F1 or area-under-the-ROC-curve are better primary metrics.

Sources

Written by Grace Mbeki, MSc Data Scientist & Educator · Nairobi, Kenya

Turning everyday numbers into clear, actionable answers for the decisions that matter most.

How we build & check our calculators

This tool provides general information and education, not professional advice. For decisions about your health, consult a qualified professional.

Search 3,500+ calculators

Loading search…