Probability measures how likely something is, on a scale from 0 (impossible) to 1 (certain). Many real questions involve two events: will it rain on both days, will at least one of two machines fail, what are the chances of neither? Our probability calculator combines the probabilities of two independent events in every useful way. This guide explains the rules and shows how to apply them.
How to use the calculator
Enter the probability of each event as a decimal between 0 and 1:
- P(A): probability of event A.
- P(B): probability of event B.
With the defaults, P(A) = 0.5 and P(B) = 0.4:
- P(A and B): 0.2
- P(A or B): 0.7
- P(exactly one): 0.5
- P(neither): 0.3
- P(not A): 0.5
- P(not B): 0.6
To convert a percentage, divide by 100: 40% is 0.4. To convert odds or fractions, divide: 1 in 6 is 1 ÷ 6 ≈ 0.1667.
The rules
Complement (not A):
Both (and), for independent events:
0.5 × 0.4 = 0.2.
Either or both (or):
0.5 + 0.4 − 0.2 = 0.7. The overlap is subtracted because adding the two probabilities counts "both" twice.
Neither:
0.5 × 0.6 = 0.3.
Exactly one:
0.7 − 0.2 = 0.5.
Independence
These formulas assume the events are independent: one happening does not change the chance of the other. Coin tosses, dice rolls and separate machines are usually independent. Drawing two cards without putting the first back is not, because the deck changes. For dependent events, P(A and B) = P(A) × P(B given A).
Worked examples
Two dice. The chance of a six on one die is 1/6 ≈ 0.1667. For two dice:
- Both sixes: 0.1667² ≈ 0.0278 (1 in 36)
- At least one six: 1 − (5/6)² ≈ 0.3056
- Neither six: (5/6)² ≈ 0.6944
The dice roller lets you try it.
Weather. A 30% chance of rain on Saturday and 20% on Sunday. Chance of a dry weekend: 0.7 × 0.8 = 0.56. Chance of rain on at least one day: 0.44.
Backup systems. Two independent servers each fail on a given day with probability 0.01. The chance both fail at once is 0.01 × 0.01 = 0.0001, one in 10,000. This is why redundancy works.
The "at least one" shortcut
For many events, "at least one" is easiest through the complement: 1 minus the chance of none. The chance of at least one six in four rolls is 1 − (5/6)⁴ ≈ 0.518, just over a half. This was one of the first problems in the history of probability.
Common mistakes
- Adding probabilities for "and". For both events, multiply.
- Adding without subtracting the overlap for "or". 0.5 + 0.4 = 0.9 overstates the chance.
- The gambler's fallacy. After five heads, the next coin toss is still 50:50. Independent events have no memory.
- Treating dependent events as independent. Rain on Saturday and Sunday may be linked by the same weather system.
Counting outcomes
Many probabilities come from counting equally likely outcomes: favourable outcomes divided by total outcomes. The chance of a particular 6-number lottery line from 49 balls is 1 in 13,983,816, a count from the permutation and combination calculator. For continuous data, such as heights, the z-score calculator gives probabilities from the normal distribution.
Probability, odds and percentages
The same chance can be written in several ways. A probability of 0.2 is a 20% chance, a fraction of 1/5, and odds of 4 to 1 against (four ways to lose for every one way to win). Bookmakers quote odds, weather forecasts use percentages and textbooks use decimals, so it helps to convert between them. To turn odds of a to b against into a probability, divide b by a + b: odds of 4 to 1 against give 1 ÷ 5 = 0.2.
Frequently asked questions
What is the difference between "and" and "or" in probability?
"And" means both events happen, found by multiplying for independent events. "Or" means at least one happens, found by adding and subtracting the overlap.
How do I convert a percentage to a probability?
Divide by 100. A 25% chance is a probability of 0.25.
Can a probability be greater than 1?
No. Probabilities always lie between 0 and 1. A result above 1 means a formula has been misapplied.
What are mutually exclusive events?
Events that cannot both happen, like rolling a 2 and a 5 on one die. Then P(A and B) = 0 and P(A or B) = P(A) + P(B).
Try it yourself
Run your own numbers with our free tool: Probability calculator. No sign-up, and it works on any device.