Free tool · Math and study
Probability calculator
Enter the chance of two events to get and, or, not and conditional probabilities, or enter a chance per try and a number of tries to get at least one success or exactly k successes. Each answer shows the rule and your numbers.
- Free
- No sign-up
- Runs in your browser
12.5%P(A and B) = 0.125 = 1/8
- 1 in 8
- Independent
- Not: 87.5%
- P(A)
- 0.5 (1/2)
- P(B)
- 0.25 (1/4)
- P(A and B)
- 0.125 (1/8)
- P(A or B)
- 0.625 (5/8)
- P(not A)
- 0.5 (1/2)
- P(not B)
- 0.75 (3/4)
- P(neither)
- 0.375 (3/8)
- P(only one)
- 0.5 (1/2)
- P(A given B)
- 0.5 (1/2)
- P(B given A)
- 0.25 (1/4)
Rule used: Independent events: P(A and B) = P(A) × P(B) = 0.5 × 0.25 = 0.125 (1/8).
P(A given B) equals P(A), so knowing B tells you nothing about A: the events are independent.
How to use the Probability Calculator
- Choose Two events, At least one in n tries or Exactly k of n (binomial).
- Type each probability as a decimal (0.25), a percent (25%) or a fraction (1/4). For tries, type the Chance of success per try, the Number of tries (n) and, for the binomial, the Successes (k).
- For two events, say whether A and B are Independent, Cannot both happen, or whether you know P(A and B), then choose which answer to show.
- Read the answer as a percent, a decimal and a fraction, then the rule used, written with your numbers.
How do I calculate the probability of two events both happening?
If the events do not affect each other, they are independent and the chance that both happen is the product: P(A and B) = P(A) × P(B). Two dice each showing a six is 1/6 × 1/6 = 1/36, which is 2.77778%. The calculator keeps fractions exact, so sums such as 1/6 + 1/6 never pick up rounding error. If you know the overlap from data instead, choose I know P(A and B) and the page checks that it is possible: it cannot be larger than the smaller of the two probabilities.
For either event, the addition rule is P(A or B) = P(A) + P(B) − P(A and B). The overlap is subtracted because it was counted twice. For the two sixes, that gives 0.305556 (11/36). If the events cannot both happen, the overlap is 0 and you simply add. The probability that an event does not happen is 1 − P(A).
What is conditional probability, and how do I tell dependent events from independent ones?
Conditional probability is the chance of A once you know B happened: P(A given B) = P(A and B) ÷ P(B). Take P(A) = 0.5, P(B) = 0.4 and P(A and B) = 0.2. Then P(A given B) = 0.2 ÷ 0.4 = 50%, which equals P(A). When P(A given B) equals P(A), learning that B happened changes nothing, and the events are independent. If it differs, they are dependent. The result card tells you which case you are in.
Mutually exclusive events (they cannot both happen) are a different idea from independent ones. If one occurs, the other is certain not to, so knowing about one tells you a lot about the other. They are dependent, unless one of them has a probability of zero.
What is the probability of at least one success in several tries?
Work out the chance of no success at all and subtract it from 1. If each try succeeds with probability p, the chance of at least one success in n tries is 1 − (1 − p)^n. For at least one six in four rolls of a die the chance of none is (5/6)^4 = 625/1296, so at least one is 51.7747%. The page also shows how many tries you need for a 50%, 90% or 99% chance, and a short table by number of tries. It assumes the tries are independent with the same chance each time.
For an exact count, use the binomial: P(X = k) = C(n, k) × p^k × (1 − p)^(n − k). C(n, k) is the number of ways to choose which k tries succeed; the combination calculator works it out on its own. For exactly 3 heads in 10 fair coin flips, C(10, 3) = 120 and the chance is 11.71875%. The page also gives at most, at least, fewer than and more than k, the mean (n × p) and the standard deviation.
| k | Ways to choose, C(10, k) | Fraction | Chance |
|---|---|---|---|
| 0 | 1 | 1/1024 | 0.09765625% |
| 1 | 10 | 5/512 | 0.9765625% |
| 2 | 45 | 45/1024 | 4.39453125% |
| 3 | 120 | 15/128 | 11.71875% |
| 4 | 210 | 105/512 | 20.5078125% |
| 5 | 252 | 63/256 | 24.609375% |
| 6 | 210 | 105/512 | 20.5078125% |
| 7 | 120 | 15/128 | 11.71875% |
| 8 | 45 | 45/1024 | 4.39453125% |
| 9 | 10 | 5/512 | 0.9765625% |
| 10 | 1 | 1/1024 | 0.09765625% |
The chances add up to 100%, and the most likely count is 5, the mean. The binomial model fits flips of a coin or rolls of a die, where nothing changes between tries. It does not fit drawing cards from a deck without putting them back, because each draw changes what is left and so changes the next chance. For that case the events are dependent, and you would use conditional probabilities one step at a time. This tool is for learning and for checking homework and plans, not for betting. To average a list of values use the average calculator, and for percentages of a number the percentage calculator.
Use it with
- Permutation and Combination Calculator: nPr and nCr with steps.
- Percentage Calculator: x% of Y, % change, % difference.
- Average Calculator: mean, median, mode, range.
Questions
How do I calculate the probability of two events both happening?
If they are independent, multiply: P(A and B) = P(A) × P(B). Two dice both showing a six is 1/6 × 1/6 = 1/36.
What is the difference between independent and dependent events?
Independent events do not change each other’s chance: P(A given B) = P(A). If knowing B changes the chance of A, the events are dependent.
How do I find the probability of A or B?
Add the two and subtract the overlap: P(A or B) = P(A) + P(B) − P(A and B). If they cannot both happen, the overlap is 0.
What is conditional probability?
It is the chance of A once B is known to have happened: P(A given B) = P(A and B) ÷ P(B).
What is the probability of at least one success in several tries?
Use 1 − (1 − p)^n. At least one six in four rolls is 1 − (5/6)^4 = 671/1296, about 51.77%.
How do I find the chance of exactly k successes?
Use the binomial formula C(n, k) × p^k × (1 − p)^(n − k). Exactly 3 heads in 10 fair flips is 120 × 0.5^10 = 11.71875%.
How this page was made: the tool's results are computed in your browser by the code on this page; the explanations were drafted with AI help and checked against the tool's own output.