Probability Calculator
Test cases replayed : 3 of 3 match · Methodology · No outside source listed
Enter the probability of two independent events, as numbers between 0 and 1, to combine them.
Result
P(A and B), both happen
P(A or B), at least one happens
- P(exactly one of A, B)
- P(neither A nor B)
- P(not A)
Estimate for planning only, not tax, legal, financial or medical advice. This calculator uses the method explained on this page.
This browser did not allow copying. The sentence is in the box below, already selected: copy it with your keyboard or the menu.
How to use this calculator
Fill in the fields in this order; each step takes you to its field.
- Probability of event A, P(A) (0 to 1): enter a number from 0 to 1.
- Probability of event B, P(B) (0 to 1): enter a number from 0 to 1.
- Read the result: P(A and B), both happen; the panel also shows P(A or B), at least one happens, P(exactly one of A, B), P(neither A nor B) and P(not A).
How this calculator works
For independent events: P(A and B) = P(A) × P(B); P(A or B) = P(A) + P(B) − P(A) × P(B) (addition rule); P(not A) = 1 − P(A); P(neither) = (1 − P(A)) × (1 − P(B)); P(exactly one) = P(A) + P(B) − 2 × P(A) × P(B).
Events are independent when one happening does not change the chance of the other, such as two separate coin flips. For dependent events, use conditional probability instead.
The formula
| Symbol | Meaning |
|---|---|
| Probability of event A, P(A) (0 to 1) | |
| Probability of event B, P(B) (0 to 1) | |
| P(A and B), both happen |
Worked example
| Probability of event A, P(A) (0 to 1) | 0.5 |
|---|---|
| Probability of event B, P(B) (0 to 1) | 0.4 |
| P(A or B), at least one happens | 0.7 |
|---|---|
| P(exactly one of A, B) | 0.5 |
| P(neither A nor B) | 0.3 |
| P(not A) | 0.5 |
P(A and B), both happen 0.2
Each step uses the unrounded value of the step before it; figures on this page are rounded for display.
Frequently asked questions
What is the probability of rolling two sixes with two dice?
Each die gives 1/6, so P = 1/6 × 1/6 = 1/36, about 0.0278.
How do you turn a percentage into a probability?
Divide by 100: 40% is a probability of 0.4.