NumberPath
Preparing offline
ProbabilityFree calculatorPreparing offline

Conditional Probability and Bayes Calculator

Convert prior and likelihoods to posterior probability with a natural-frequency table.

Your inputs

The conditioning event must have positive probability. Inputs describe one binary event and one binary observation; counts are expected, not observed. No diagnostic advice.

Your calculation

Result

—

Enter your inputs to see the result and working.

No account. Inputs stay in your browser.

How to use this calculator

Enter the prior and two conditional probabilities, then choose a natural-frequency base.

Formula and method

P(A|B)=P(B|A)P(A)/[P(B|A)P(A)+P(B|not A)P(not A)].

Worked example

Prior .01, sensitivity .9, false-positive rate .05 gives posterior .009/(.009+.0495)=0.153846.

Assumptions and supported scope

The conditioning event must have positive probability. Inputs describe one binary event and one binary observation; counts are expected, not observed. No diagnostic advice.

Method references

Method and worked example checked against the calculator implementation. About our methods · Report a correction

Keep exploring

Try another calculator with clear working.

Confidence Interval and Margin of Error Calculator →

Saved calculations

Stored in this browser on this device. Browser data removal also removes these saves.

Keep NumberPath handy

Open this website in a browser that supports installation. If an install option is available, use its address-bar or browser-menu control.

iPhone or iPad: open the Share menu and choose Add to Home Screen. Installation options depend on your browser.

When the header says Offline ready, the app shell has been cached. Calculators you open online are saved for offline use until the next app update. Saved inputs remain in this browser. Installation varies by browser; it has not been tested on every device.