Statistics Calculator › Probability Calculator

Probability Calculator

Enter the probabilities of two independent events to get every combination, plus the chance of something happening at least once in repeated tries.

The rules behind each result

ResultFormula (independent events)
Both happenP(A and B) = P(A) × P(B)
At least one happensP(A or B) = P(A) + P(B) − P(A) × P(B)
A does not happenP(not A) = 1 − P(A)
Neither happens(1 − P(A)) × (1 − P(B))
Exactly one happensP(A)(1 − P(B)) + P(B)(1 − P(A))

We subtract P(A and B) in the "or" rule because otherwise the outcomes where both happen would be counted twice.

Worked example

A coin lands heads with P = 0.5 and a die shows 6 with P = 1/6 ≈ 0.1667. The chance of heads and a six is 0.5 × 0.1667 = 0.0833. The chance of heads or a six is 0.5 + 0.1667 − 0.0833 = 0.5833.

At least once in n tries

The chance that something happens at least once is easiest to find through its opposite: 1 minus the chance it never happens.

P(at least once in n tries) = 1 − (1 − p)ⁿ

Rolling at least one six in six rolls: 1 − (5/6)⁶ = 0.6651, about 66.5%. Many people guess 100%, which is why this is a classic example.

What independent means

Two events are independent when one happening does not change the chance of the other, like separate coin flips. Drawing cards without putting them back is not independent: removing a card changes the odds for the next draw. For those problems, multiply the conditional probabilities step by step instead. For a fixed number of independent tries with the same chance, the binomial calculator gives the probability of exactly k successes.

Frequently asked questions

How do I enter a percentage?

Convert it to a decimal by dividing by 100: 25% becomes 0.25. For fractions, divide the top by the bottom: 1/6 becomes about 0.1667.

What is the difference between "or" and "exactly one"?

P(A or B) includes the case where both happen. "Exactly one" counts only the cases where one happens and the other does not.

Can I use this for events that are not independent?

No. These formulas assume independence. For dependent events you need the conditional probability P(B given A) instead of P(B).

More statistics calculators