This probability calculator works out the combined chances of two independent events, A and B. Enter P(A) and P(B) as decimals or percentages and it returns the probability that both happen, that at least one happens, that exactly one happens, that neither happens, and the complement of each event, with a table showing every formula.
Probability formulas for two independent events
Two events are independent when the outcome of one does not change the odds of the other: two coin flips, a die roll and a card draw, or two machines that fail for unrelated reasons.
both (A and B) P(A ∩ B) = P(A) × P(B) at least one (A or B) P(A ∪ B) = P(A) + P(B) − P(A) × P(B) exactly one (xor) P(A) + P(B) − 2 × P(A) × P(B) neither P(A′ ∩ B′) = (1 − P(A)) × (1 − P(B)) not A (complement) P(A′) = 1 − P(A)
The “or” formula subtracts P(A and B) once because adding P(A) and P(B) counts the overlap twice. “Neither” is also 1 − P(A or B), and the four outcomes, both, A only, B only and neither, always add up to 1.
How to use the calculator
- Choose whether you will type probabilities as decimals (0.25) or percentages (25).
- Enter P(A) and P(B). For a fair die showing a six, type 0.166667 or 16.6667; for a fraction such as 3/8, divide first (0.375).
- Read the five results; the table under them shows A only and B only as well, so you can see how the four outcomes split the whole 100%.
Worked examples
- P(A) = 0.5, P(B) = 0.4: both = 0.5 × 0.4 = 0.2; at least one = 0.5 + 0.4 − 0.2 = 0.7; exactly one = 0.9 − 0.4 = 0.5; neither = 0.5 × 0.6 = 0.3.
- 30% and 60%: both = 18%, at least one = 72%, exactly one = 54%, neither = 28%.
- Two backup systems, 90% and 95% reliable: the chance at least one works is 1 − 0.1 × 0.05 = 99.5%; both fail only 0.5% of the time. This is why redundancy is so effective.
- Rolling a six and flipping heads: 1/6 × 1/2 = 1/12 ≈ 8.33%.
Common probabilities
| Event | Probability | Decimal |
|---|---|---|
| Heads on a fair coin | 1/2 | 0.5 |
| A given number on one die | 1/6 | 0.166667 |
| Double six with two dice | 1/36 | 0.027778 |
| Rolling a total of 7 with two dice | 6/36 | 0.166667 |
| Drawing a heart from a 52-card deck | 13/52 | 0.25 |
| Drawing an ace | 4/52 | 0.076923 |
| Three heads in a row | 1/8 | 0.125 |
| At least one six in four rolls | 1 − (5/6)⁴ | 0.517747 |
Decimals, percentages and odds
A probability of 0.25 is the same as 25% and 1 in 4. Bookmaker-style odds compare outcomes instead: 0.25 means odds of 1 to 3 in favor, or 3 to 1 against. To convert, odds in favor = p ÷ (1 − p). Use the percentage calculator or the fraction calculator to switch between forms, and the ratio calculator for odds.
More than two events
The same rules extend to any number of independent events. Multiply for “all of them”: the chance of 5 heads in a row is 0.5⁵ = 3.125%. Use the complement for “at least one”: the chance of at least one six in 4 rolls is 1 − (5/6)⁴ = 51.77%. That second trick is the fastest way to answer most “what are the chances of at least one…” questions.
When these formulas do not apply
- Dependent events: drawing two aces without putting the first back is 4/52 × 3/51 = 0.45%, not (4/52)² = 0.59%. The second probability depends on the first draw, so you need conditional probability, P(A and B) = P(A) × P(B | A).
- Mutually exclusive events: if A and B cannot both happen (rolling a 2 and a 5 on one die), P(A and B) = 0 and P(A or B) = P(A) + P(B). Such events are never independent unless one has probability 0.
- Real-world correlation: rain on Saturday and rain on Sunday, or two loans in the same town defaulting, tend to move together. Treating them as independent understates the chance that both happen.
Related calculators
- Random Number Generator
- Percentage Calculator
- Fraction Calculator
- Ratio Calculator
- Standard Deviation Calculator
- Hardy-Weinberg Equilibrium Calculator
Frequently Asked Questions
How do you calculate the probability of A and B?
For independent events, multiply the two probabilities: P(A and B) = P(A) × P(B). With P(A) = 0.5 and P(B) = 0.4, the result is 0.2, or 20%.
How do you calculate the probability of A or B?
Add the probabilities and subtract the overlap: P(A or B) = P(A) + P(B) − P(A and B). For independent events with 0.5 and 0.4, that is 0.9 − 0.2 = 0.7.
What is the probability of neither event happening?
Multiply the complements: (1 − P(A)) × (1 − P(B)). It always equals 1 minus the probability that at least one happens.
What is the difference between independent and mutually exclusive events?
Independent events do not affect each other’s chances and can happen together. Mutually exclusive events cannot happen at the same time, so P(A and B) = 0.
Can a probability be more than 1 or 100%?
No. A probability ranges from 0 (impossible) to 1 (certain). If your result is above 1, check whether you added probabilities that overlap.