To Many Calculator logoTo Many Calculator

Post-Test Probability Calculator

Kaushik RabadiyaCreated by Kaushik RabadiyaLast updated: September 26, 2026

Post test probability instantly calculates results using fn, fn1, fp. Use the calculator above for instant answers in your browser.

The Post-Test Probability Calculator is an essential diagnostic tool designed for clinicians, researchers, and students to evaluate the real-world accuracy of medical tests. By bridging pre-test prevalence with likelihood ratios derived from test sensitivity and specificity, this calculator helps you instantly determine the updated probability that a patient truly has a condition after receiving a positive or negative test result.

How Post-Test Probability Works

The calculation relies on Bayes' theorem translated into odds and probabilities. First, the baseline pre-test probability (prevalence) is converted into pre-test odds using the formula: Pre-Test Odds = Prevalence / (1 - Prevalence). Next, test performance metrics are combined into likelihood ratios. The positive likelihood ratio is calculated as Sensitivity / (1 - Specificity), while the negative likelihood ratio is (1 - Sensitivity) / Specificity. Multiplying the pre-test odds by the appropriate likelihood ratio yields the post-test odds. Finally, these post-test odds are converted back into a percentage probability using the equation: Post-Test Probability = Post-Test Odds / (1 + Post-Test Odds).

Worked Calculation Example

Imagine evaluating a new screening test for a condition with a known population prevalence of 10% (0.10). This means the pre-test probability is 0.10, resulting in pre-test odds of 0.10 / (1 - 0.10) = 0.111. Suppose the test has a sensitivity of 85% (0.85) and a specificity of 80% (0.80). First, we find the positive likelihood ratio: 0.85 / (1 - 0.80) = 0.85 / 0.20 = 4.25. Multiplying our pre-test odds by this ratio gives post-test odds of 0.111 * 4.25 = 0.471. Converting this back to a probability yields 0.471 / (1 + 0.471) = 0.320, or a 32.0% post-test probability following a positive result.

Best Practices for Diagnostic Testing

Always ensure your baseline prevalence accurately reflects the specific patient population you are testing, as prevalence drastically shifts post-test outcomes. Be cautious when applying generalized sensitivity and specificity metrics to specialized or high-risk subgroups. Finally, remember that a positive test does not automatically confirm a diagnosis if the pre-test probability is exceptionally low.

FAQs

How do I calculate pre-test probability (prevalence)?

Pre-test probability, or disease prevalence, is calculated by dividing the total number of true positive and false negative cases by the entire population sample size (TP + FN / TP + FN + FP + TN). It represents the baseline likelihood that a random individual from your target group has the condition before any diagnostic test is administered.

What is the difference between pre-test odds and pre-test probability?

While both metrics express the likelihood of a condition, probability represents the ratio of target events to total possible events (ranging from 0 to 1). Odds represent the ratio of target events occurring compared to them not occurring (e.g., 1 to 4). Converting probability to odds is a necessary mathematical step when applying likelihood ratios in diagnostic Bayesian updating.

How do I calculate post-test probability?

Post-test probability is calculated by first converting your baseline prevalence into pre-test odds, multiplying those odds by the test's likelihood ratio (positive or negative depending on the test outcome), and then converting the resulting post-test odds back into a standard probability percentage using the formula odds divided by one plus the odds.

Formula verified against Statistical methodology standards — all calculations use deterministic, standards-based formulas.

Related calculators