Every Single CalculatorOne place for every calculator
÷Everyday math

Bayes' theorem calculator

The chance something is true after a positive test.

Example: A screening test came back positive.

Your numbers

%
%
%
Drawn from your numbers. It redraws as you type.
  • Chance it is true after a positive0
  • Share of all tests that come back positive0
  • In plain words0

How it is worked out

P(A|B) = P(B|A) × P(A) ÷ P(B)

A worked example

A 90% accurate test for something only 1% of people have: a positive result is right just 15.4% of the time.

Good to know

  • This is why a positive screening result is usually followed by a second, different test.

How we know this calculator is right

Before this calculator went on the site, 3 answers were worked out separately from its code, by hand or straight from the formula above. Each time this page loads, your own browser runs the calculator on those same numbers and compares. Turn on JavaScript to see the comparison.

See every check
Numbers usedResultWorked out separatelyThis calculator

What this proves: the calculator does the arithmetic of the formula shown, correctly. What it cannot prove: your measurements, or figures such as coverage per bag, waste and spacing, which are typical starting values you can change. Go by the product label and your local code.

Used by: students.