Rules for two independent events
Two events are independent when the outcome of one does not change the chance of the other — two coin flips, two dice, rain in two distant cities. For independent events A and B:
P(A and B) = P(A) × P(B)
P(A or B) = P(A) + P(B) − P(A) × P(B)
The subtraction in the second rule avoids counting the "both" case twice. "Exactly one" (exclusive or) is P(A or B) − P(A and B), and "neither" is (1 − P(A)) × (1 − P(B)). The complement of an event, P(not A) = 1 − P(A), is often the easiest route to an answer: the chance of at least one success is 1 minus the chance of none.
With the defaults P(A) = 50% and P(B) = 30%: both happen 15% of the time, at least one 65%, exactly one 50% and neither 35%. These four outcomes always add up to 100%.
Repeated trials: the binomial distribution
When you repeat the same independent trial n times, each with success probability p, the number of successes X follows the binomial distribution:
P(X = k) = C(n, k) × p^k × (1 − p)^(n − k)
C(n, k) = n! ÷ (k!(n − k)!) counts the different orders in which k successes can occur. "At least k" adds the probabilities from k up to n; "at most k" adds those from 0 to k. The expected number of successes is np and the standard deviation is √(np(1 − p)).
Example (the default): 10 fair coin flips, what is the chance of exactly 7 heads? C(10, 7) = 120 and 0.510 = 1/1024, so P = 120/1024 = 11.72%. At least 7 heads: (120 + 45 + 10 + 1)/1024 = 176/1024 = 17.19%.
The calculator works with logarithms, so it stays accurate for up to 10,000 trials.
Dice probabilities
Every face of a fair die is equally likely, so the probability of a sum is the number of combinations that produce it divided by the total number of combinations, sides^dice. Two six-sided dice have 36 combinations, and six of them add up to 7 (1+6, 2+5, 3+4, 4+3, 5+2, 6+1), giving 6/36 = 16.67% — the most likely total. Sums of 2 and 12 have only one combination each (2.78%).
For more dice the calculator builds the full distribution by convolution, adding one die at a time, so the counts are exact. As the number of dice grows the distribution approaches the familiar bell curve.
| Sum (2d6) | Ways | Probability |
|---|---|---|
| 2 or 12 | 1 | 2.78% |
| 4 or 10 | 3 | 8.33% |
| 6 or 8 | 5 | 13.89% |
| 7 | 6 | 16.67% |
Percent, fraction and odds
The same probability can be written several ways. 0.25 = 25% = 1/4 = "1 in 4". Bookmakers' odds compare successes with failures instead: a 25% chance is odds of 1 : 3 in favour (or 3 : 1 against). The calculator shows the percentage, the simplest matching fraction and the "1 in N" form so you can pick whichever is easiest to communicate. Remember that probability describes the long run: an event with a 1 in 6 chance can still happen twice in a row or not at all in 20 tries. For counting arrangements without probability, see the permutation and combination calculator.
Frequently asked questions
What if my events are not independent?
Then P(A and B) = P(A) × P(B given A), which needs the conditional probability. Drawing two cards without replacement is a typical dependent case: the second draw depends on the first.
How do I find the chance of at least one success in n tries?
Choose Repeated trials and set k = 1, then read P(at least 1). It equals 1 − (1 − p)^n. For example, rolling at least one six in four rolls is 1 − (5/6)4 = 51.77%.
Can probability be more than 100%?
No. Probabilities run from 0 (impossible) to 1 or 100% (certain). If you get more than 100% you have probably added probabilities of events that overlap without subtracting the overlap.
Why is 7 the most common sum with two dice?
Because it can be made in more ways (six) than any other total. Every value of the first die has exactly one partner on the second die that makes 7.
Last reviewed: