Conditional Probability Calculator

Calculate P(A | B) and P(B | A) from P(A and B), P(A) and P(B), and test whether the events are independent.

Results

Enter your details and click Calculate to see your results.
About This Calculator

P(A | B) = P(A and B) ÷ P(B). If P(A | B) = P(A), knowing B tells you nothing about A — they're independent.

Example

Example: P(A | B) = 0.12 / 0.4 = 0.3.

Assumptions

P(B) > 0.

Frequently Asked Questions

Is P(A | B) the same as P(B | A)?

No — confusing them is the 'prosecutor's fallacy'; Bayes' theorem connects them.

Related Calculators

About the Author

Imran Hossain
Imran Hossain

Professional SEO, Digital Marketer Specialist

I am a Certified Google Ads Expert And Professional SEO, Digital Marketing Specialist

View full profile