Probability Calculator
What is the chance that at least one of two events happens? Enter their probabilities and either assume independence or tell the calculator how often they overlap. You get the union, intersection, complements and conditional probability in one place.
Loading the calculator. It runs in your browser, so JavaScript needs to be on.
How to use the Probability Calculator
- Choose Independent events only when one event happening does not change the chance of the other.
- Enter Probability of A and Probability of B as percentages, for example 50 for a 50% chance.
- For dependent events, choose Known overlap and enter Probability of both A and B.
- Read A or B at the top. Check the rows for both, exactly one, neither and A given B.
The formula
P(A or B) = P(A) + P(B) - P(A and B). For independent events, P(A and B) = P(A)P(B). Exactly one has probability P(A) + P(B) - 2P(A and B). Neither is 1 - P(A or B). P(A given B) = P(A and B) / P(B), when P(B) is positive.
Worked example
If A has a 50% chance and B has a 40% chance, independence gives a 20% chance of both: 0.50 times 0.40. The chance of A or B is 50% + 40% - 20% = 70%. Exactly one happens 50% of the time, and neither happens 30% of the time.
Or includes the overlap
In probability, A or B normally includes both. A visitor who uses either a phone or a laptop can use both devices. Adding the two percentages without subtracting the overlap counts those people twice. The four bars, only A, both, only B and neither, divide the possibilities into separate groups totaling 100%.
Independent does not mean mutually exclusive
Two fair coin tosses are independent. A head on the first toss leaves the second toss at 50%. Mutually exclusive events cannot happen together, so their overlap is zero. Drawing one card that is both a king and a queen is impossible, but that does not make the two events independent.
Which overlap values are possible?
The overlap cannot exceed the smaller individual probability. It also cannot fall below P(A) + P(B) - 100%. If 80% of people belong to A and 80% belong to B, at least 60% must belong to both. The calculator rejects overlaps that would require a negative probability for one of the four groups.
Probability Calculator questions
How do I calculate the probability of two independent events?
Multiply their probabilities as decimals. For 30% and 20%, the chance of both is 0.30 times 0.20 = 0.06, or 6%.
What does at least one mean in probability?
It means A, B or both happen. Calculate it as one minus the probability that neither happens.
Why is conditional probability undefined when B is zero?
P(A given B) divides the overlap by P(B), so a zero-probability conditioning event has no value under this elementary formula.
Can I enter odds such as 3 to 1?
Convert odds to a probability first. Odds of 3 to 1 in favor correspond to 3 divided by 4, or 75%.
Related calculators
- Percentage CalculatorEnter a percent, part, whole or pair of values to find percentages and percent change....
- Ratio CalculatorEnter two ratio parts to simplify them, scale to a matching value or divide a total into...
- Normal Distribution CalculatorEnter a mean and standard deviation to find normal probabilities below, above or between...
- Chi-Square CalculatorEnter a table of observed category counts to calculate Pearson chi-square, degrees of...
- Sample Size CalculatorEnter confidence, margin of error and an expected proportion or standard deviation to...