Calculate compound probability for two or more events. Enter each probability as a percentage or decimal to find the chance that all or at least one occurs.

Assumes the events are independent.

Third event
Leave blank for two events. Assumes C is independent of A and B.


Related Calculators

Calculator Functions

FunctionWhat it doesWhat it requires
A AND B — independentFinds the chance that two or three independent events all happenRequires the probability of A and of B, with an optional third event C
A OR B — independentFinds the chance that at least one of two or three independent events happensRequires the probability of A and of B, with an optional third event C
Many independent eventsFinds the chance that all, none or at least one of a list of independent events happenRequires 2 to 1,000 probabilities, as percentages with a % sign or decimals from 0 to 1
A OR B — mutually exclusiveFinds the chance of either event when the two cannot happen togetherRequires the probability of A and of B
A OR B — known overlapFinds the chance of either event when the chance of both is knownRequires the probability of A, of B and of A and B together
Exactly one of A or B — independentFinds the chance that one event happens and the other does notRequires the probability of A and of B
A AND B — conditional inputFinds the chance of both events when B depends on ARequires the probability of A and the probability of B given A
A given B — from joint probabilityFinds the chance of A once B is known to have happenedRequires the joint probability of A and B, and the probability of B
At least one success in n trialsFinds the chance of one or more successes in repeated independent trialsRequires the number of trials and the success probability per trial
All n trials succeedFinds the chance that every trial succeedsRequires the number of trials and the success probability per trial
Exactly k successes in n trialsFinds the binomial chance of a set number of successesRequires the number of trials, the number of successes and the success probability per trial
Trials from target expected successesFinds how many trials give a target average number of successesRequires the target expected successes and the success probability per trial
Expected successes from n and pFinds the average number of successes over many repeatsRequires the number of trials and the success probability per trial
Observed success share from countsConverts counted successes into a share of the trialsRequires the total trials and the successful trials
Error probability from success probabilityFinds the chance of failure as the complement of successRequires the success probability
Success probability from error probabilityFinds the chance of success as the complement of failureRequires the error probability

Each probability can be entered as a percent or as a decimal from 0 to 1. Results are shown as a percent with the decimal value and the complement, which is 1 minus the result. Trial counts are whole numbers up to 1,000,000.

Compound Probability Formulas

P(A∩B) = P(A) × P(B|A) [1]
P(A)Probability of event A. P( ) around any event means its probability
A∩BA and B both happen
B|AB happens, given that A has happened
A∪BA or B or both happen

Events are independent when one happening does not change the chance of the other, so P(B|A) = P(B) [1]. The examples below use P(A) = 50% and P(B) = 40% unless they say otherwise.

A AND B — independent

P(A∩B) = P(A) × P(B) [1]

0.50 × 0.40 = 20%. With a third independent event, the result is multiplied by P(C) as well: with P(C) = 25%, 0.50 × 0.40 × 0.25 = 5%.

A OR B — independent

P(A∪B) = P(A) + P(B) −
P(A) × P(B)

0.50 + 0.40 − 0.20 = 70%. This is the inclusive or: at least one of the events happens. With a third event the calculator uses 1 − (1 − P(A))(1 − P(B))(1 − P(C)), which is 1 − 0.50 × 0.60 × 0.75 = 77.5% for P(C) = 25%.

Many independent events

P(all) = p₁ × p₂ × … × pₙ

The chance that none happen is (1 − p₁) × (1 − p₂) × … × (1 − pₙ), and the chance of at least one is 1 minus that. For chances of 50%, 40%, 25% and 20%, all four happen 0.50 × 0.40 × 0.25 × 0.20 = 1% of the time, none happen 0.50 × 0.60 × 0.75 × 0.80 = 18% of the time, and at least one happens 82% of the time. Every event in the list must be independent of all the others.

A OR B — mutually exclusive

P(A∪B) = P(A) + P(B) [1]

Mutually exclusive events cannot happen together, so there is no overlap to subtract. With P(A) = 30% and P(B) = 20%, the result is 50%. The two probabilities cannot add up to more than 100%.

A OR B — known overlap

P(A∪B) = P(A) + P(B) −
P(A∩B) [1]

This rule holds for any two events. With an overlap of 10%, 0.50 + 0.40 − 0.10 = 80%. The overlap cannot be larger than the smaller of P(A) and P(B).

Exactly one of A or B — independent

P = P(A)(1 − P(B)) +
(1 − P(A))P(B)

The first term is A without B and the second is B without A: 0.50 × 0.60 + 0.50 × 0.40 = 50%.

A AND B — conditional input

This is the main formula. If P(A) = 50% and B follows A 30% of the time, P(A∩B) = 0.50 × 0.30 = 15%. Drawing two cards without replacement is the usual case: the chance of the second card depends on the first.

A given B — from joint probability

P(A|B) = P(A∩B) ÷ P(B) [1]

With a joint probability of 10% and P(B) = 40%, P(A|B) = 0.10 ÷ 0.40 = 25%. P(B) must be above zero, and the joint probability cannot exceed it.

At least one success in n trials

P = 1 − (1 − p)n

p is the success probability on each trial. Five trials at 10% each give 1 − 0.905 = 40.951%.

All n trials succeed

P = pn

Five trials at 90% each all succeed 0.905 = 59.049% of the time.

Exactly k successes in n trials

P(X = k) = C(n,k) × pk ×
(1 − p)n − k [2]

C(n,k) = n! ÷ (k!(n − k)!) counts the ways to place k successes among n trials [2]. For 3 successes in 10 trials at 20%, C(10,3) = 120 and the result is 120 × 0.203 × 0.807 = 20.1327%.

Trials from target expected successes

n = k ÷ p

k is the target average number of successes. An average of 5 successes at 20% per trial takes 5 ÷ 0.20 = 25 trials. A fractional answer is also shown rounded up to whole trials. This is an average, not a guarantee of 5 successes.

Expected successes from n and p

E = n × p [1]

Fifty trials at 20% average 50 × 0.20 = 10 successes.

Observed success share from counts

Share = k ÷ n

Five successes in 20 trials is a share of 5 ÷ 20 = 25%. This describes what was counted and is not a confidence interval.

Error probability from success probability

q = 1 − p [1]

A 95% chance of success leaves a 5% chance of error.

Success probability from error probability

p = 1 − q

A 5% chance of error leaves a 95% chance of success.

Limits of This Estimate

  • The independent functions give wrong answers for events that influence each other. Use the conditional input or known overlap functions for those.
  • The trial functions assume every trial is independent and has the same success probability [2].
  • Results are rounded for display, and very small probabilities are shown in scientific notation.

Sources

  1. Grinstead and Snell, Introduction to Probability (American Mathematical Society, 2nd revised edition): addition and complement rules, conditional probability, independence, the binomial formula and expected successes
  2. NIST/SEMATECH e-Handbook of Statistical Methods, 1.3.6.6.18 Binomial Distribution: the binomial probability formula and its assumptions