Probability Calculator

Calculate unions, intersections, complements and conditional probabilities for two events.

100% FreeNo sign-upPrivate — runs in your browser
—

P(A or B)

P(A and B) — intersection
—
P(not A) — complement
—
P(A | B) — conditional
—
Odds for A
—
A : not A

Copied to clipboard

How to use this tool

1
Enter P(A) and P(B)

Probabilities are numbers between 0 and 1 — for example 0.4 means a 40% chance.

2
Add P(A and B) if you know it

If you know the chance of both happening, enter it; otherwise leave it blank and choose an assumption.

3
Choose the assumption

Independent means one does not affect the other; mutually exclusive means they cannot both happen.

4
Read all five results

Union, intersection, complement, conditional probability and odds are all shown together.

Formula & worked example

Independent: P(A and B) = P(A) × P(B). Union: P(A or B) = P(A) + P(B) − P(A and B). Conditional: P(A | B) = P(A and B) ÷ P(B). Complement: P(not A) = 1 − P(A). Odds for A = P(A) ÷ (1 − P(A)).

P(A) = 0.4 and P(B) = 0.5, independent: P(A and B) = 0.20, P(A or B) = 0.70, P(not A) = 0.60, P(A | B) = 0.40 (independence means conditioning on B changes nothing).

Limitations — read this before you rely on it

The independence and mutual-exclusivity options are assumptions, not facts about your events — real events are often neither fully independent nor mutually exclusive. P(A and B) can never exceed the smaller of P(A) and P(B). This calculator covers two events; for more events, use the inclusion–exclusion principle or a tree diagram.

Frequently asked questions

Union (A or B) is at least one happening; intersection (A and B) is both happening. Union = P(A) + P(B) − intersection, to avoid double-counting the overlap.

The probability of A given that B has happened. It equals P(A and B) ÷ P(B).

When one does not change the probability of the other — then P(A | B) = P(A) and P(A and B) = P(A) × P(B).

Another way to state a probability: odds of 1 to 3 mean one success for every three failures, which is a probability of 1 ÷ 4 = 0.25.

No. Probabilities run from 0 (impossible) to 1 (certain). Anything outside that range is an error.