Probability Calculator

Probability Calculator

Combine the probabilities of two events. Get the chance of both, either, neither, exactly one, and each one given the other, for independent, mutually exclusive or overlapping events.

P(A or B) = P(A) + P(B) − P(A and B)

As a decimal (0.25), a percentage (25%) or a fraction (1/4).

Enter P(A) and P(B) to combine them

What is the Probability of Two Events?

To combine two probabilities you need one more fact: how the events relate to each other. If A and B are independent, the chance of both is P(A) × P(B). If they can't happen together, it's zero. Otherwise you need to know P(A and B) directly.

Once you have P(A and B), everything else follows from three rules: the complement rule (not A), the addition rule (A or B) and the definition of conditional probability (A given B).

Not every combination is possible. With P(A) = 0.6 and P(B) = 0.4, the overlap can't be bigger than 0.4 (B can't overlap with more than all of itself). The calculator checks this and tells you the allowed range.

Probability Formulas: Addition, Multiplication, Complement

Rules as set out in OpenStax Introductory Statistics, chapter 3. See Sources.

1. Find P(A and B)

Independent: P(A and B) = P(A) × P(B)
Mutually exclusive: P(A and B) = 0
Allowed range: max(0, P(A) + P(B) − 1) to min(P(A), P(B))

2. Addition and complement rules

P(A or B) = P(A) + P(B) − P(A and B)
P(not A) = 1 − P(A) · P(neither) = 1 − P(A or B)

Subtracting the overlap stops the "both" outcomes being counted twice.

3. Conditional probability

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

Worked Example: Rain and a Late Train

Given:
P(rain) = 0.6 and P(train late) = 0.4, assumed independent.
Step 1:
Both:
0.6 × 0.4 = 0.24
Step 2:
At least one:
0.6 + 0.4 − 0.24 = 0.76
Step 3:
Neither, and exactly one:
1 − 0.76 = 0.24 · 0.76 − 0.24 = 0.52
Result:
P(rain or late train) = 0.76

Simply adding 0.6 + 0.4 would give 1, wrongly suggesting a bad day is certain. Subtracting the 0.24 overlap fixes the double count.

Same Probabilities, Three Relationships

P(A) = 0.6 and P(B) = 0.4 in every row. Only the relationship between them changes.

Combined probabilities under different relationships
RelationshipP(A and B)P(A or B)P(A | B)
Mutually exclusive010
Independent0.240.760.6
B always comes with A0.40.61

Common Probability Mistakes

  • Adding without subtracting the overlap. P(A or B) = P(A) + P(B) only when A and B can't both happen.
  • Multiplying when events aren't independent. P(A) × P(B) assumes knowing one tells you nothing about the other. Rain and traffic jams, for instance, are linked.
  • Confusing exclusive with independent. Mutually exclusive events are strongly dependent: if one happens, the other definitely doesn't.
  • Mixing up P(A | B) and P(B | A). The chance a smoker gets a disease isn't the chance someone with the disease smokes.

Probability FAQs

Can I enter percentages or fractions?

Yes: 60%, 0.6 and 3/5 all mean the same here.

How do I know if events are independent?

Check whether P(A and B) = P(A) × P(B), or equivalently P(A | B) = P(A). In plain terms: does knowing one happened change the chance of the other?

What’s the difference between “or” and “exactly one”?

“A or B” includes the case where both happen. “Exactly one” excludes it.

Why does it say my P(A and B) is impossible?

The overlap can’t exceed the smaller probability, and if P(A) + P(B) is above 1 the events must overlap by at least the excess. The error gives the allowed range.

What is the complement of an event?

Everything that isn’t the event. P(not A) = 1 − P(A), so a 30% chance of rain is a 70% chance of no rain.

Can probabilities be bigger than 1?

No. Every probability lies between 0 (impossible) and 1 (certain). A total above 1 means outcomes are being double-counted.

How do I combine three events?

Use the probability of three events calculator, which extends the same rules with inclusion–exclusion.

What does P(A | B) mean?

The probability of A once you know B has happened. It restricts attention to the B outcomes only. The conditional probability calculator covers it in depth.

Sources

Related Tools