Calculate the probability of A and B, A or B, neither or exactly one, or the chance of k successes in n repeated trials, with odds and full working.
Working
Enter probabilities as decimals (0.25), percentages (25%) or fractions (1/4). Repeated trials use the binomial distribution, which assumes independent trials with the same probability each time.
A probability calculator works out the chance of combined events, such as both of two events happening, at least one happening or neither happening, and the chance of a given number of successes in repeated trials using the binomial distribution. You can enter probabilities as decimals, percentages or fractions, and the calculator shows each result as a percentage along with the working, the odds and the expected number of successes.
For example, if two independent events have probabilities of 0.5 and 0.3, the chance that both happen is 15% and the chance that at least one happens is 65%. When you roll a die 10 times, the chance of getting exactly two sixes is about 29.07%.
Probability measures how likely something is to happen, on a scale from 0 (impossible) to 1 (certain). It can be written as a decimal, a percentage or a fraction: a probability of 0.25 is the same as 25% or 1/4. When all outcomes are equally likely, the probability of an event is the number of favourable outcomes divided by the total number of outcomes. A fair die has six equally likely faces, so the probability of rolling a 4 is 1/6, about 16.67%.
| Question | Formula |
|---|---|
| A does not happen | P(not A) = 1 − P(A) |
| Both A and B (independent) | P(A and B) = P(A) × P(B) |
| A or B or both | P(A or B) = P(A) + P(B) − P(A and B) |
| Exactly one of A and B | P(A) + P(B) − 2 × P(A and B) |
| Neither A nor B | 1 − P(A or B) |
The subtraction in the “or” rule stops you counting the overlap twice. If the events are mutually exclusive, they can’t both happen, so P(A and B) = 0 and the rule becomes P(A or B) = P(A) + P(B).
Independent events don’t affect each other. Tossing a coin and rolling a die are independent: the coin result tells you nothing about the die. For independent events, multiply the probabilities to find the chance that both happen.
Mutually exclusive events can’t happen at the same time. Rolling a 2 and rolling a 5 on a single throw of a die are mutually exclusive. For these events, add the probabilities to find the chance that one or the other happens.
Events can’t be both independent and mutually exclusive unless one has a probability of zero. If two events are mutually exclusive, knowing that one happened tells you the other definitely didn’t, which is the opposite of independence.
The chance of rain on Saturday is 30% and on Sunday is 40%, and we’ll treat the days as independent. The chance it rains on both days is 0.3 × 0.4 = 0.12, or 12%. The chance it rains on at least one day is 0.3 + 0.4 − 0.12 = 0.58, or 58%. The chance of a dry weekend is 1 − 0.58 = 42%.
What’s the chance of rolling at least one six in four rolls of a die? It’s easier to find the chance of no sixes and subtract from 1: 1 − (5/6)⁴ ≈ 1 − 0.4823 = 0.5177, or about 51.8%. With six rolls, the chance rises to about 66.5%, not 100% as many people expect.
Flip a fair coin 10 times. The probability of exactly 5 heads is C(10, 5) × 0.5⁵ × 0.5⁵ = 252 ÷ 1,024 ≈ 24.61%. So even the most likely result happens less than a quarter of the time.
When you repeat the same trial n times, each trial is independent, and each has the same probability of success p, the number of successes follows a binomial distribution. The probability of exactly k successes is:
P(X = k) = C(n, k) × pk × (1 − p)n − k
C(n, k) is the number of ways to choose which k of the n trials are the successes, calculated as n! ÷ (k! × (n − k)!). The calculator also adds up the individual probabilities to give “at most k”, “at least k”, “fewer than k” and “more than k”. The expected number of successes is n × p, and the standard deviation is √(n × p × (1 − p)).
Odds compare the chance of something happening with the chance of it not happening. A probability of 0.2 means 1 in 5, or odds of 4 to 1 against. To convert a probability p to odds against, calculate (1 − p) ÷ p. To convert odds of a to b against into a probability, calculate b ÷ (a + b). Betting odds also include the bookmaker’s margin, so they don’t convert exactly to true probabilities.
| Event | Probability |
|---|---|
| Heads on a fair coin | 1/2 = 50% |
| A six on one die | 1/6 ≈ 16.67% |
| A total of 7 with two dice | 6/36 ≈ 16.67% |
| Drawing an ace from a 52-card deck | 4/52 ≈ 7.69% |
| Ten heads in ten coin flips | 1/1,024 ≈ 0.098% |
| Two people sharing a birthday in a group of 23 | about 50.7% |
Some events do affect each other. If you draw a card from a deck and don’t put it back, the second draw has different odds. The chance of drawing two aces in a row without replacement is 4/52 × 3/51 = 12/2,652, about 0.45%, compared with (4/52)² ≈ 0.59% if the first card were replaced. The probability of B once you know A has happened is written P(B | A) and read “the probability of B given A”. In general, P(A and B) = P(A) × P(B | A). For independent events, P(B | A) is simply P(B), which is why the plain multiplication rule works for them.
Probability underpins weather forecasts, insurance premiums, medical test results, quality control in factories, election polls, games and sports analysis. Engineers use it to estimate how often a system might fail, and doctors use it to weigh the risks and benefits of treatments.
You may also find the permutation and combination calculator useful to calculate permutations and combinations, while the random number generator lets you generate random numbers in any range.
If the events are independent, multiply their probabilities. With P(A) = 0.5 and P(B) = 0.3, P(A and B) = 0.15, or 15%.
Add the two probabilities and subtract the chance that both happen: P(A or B) = P(A) + P(B) − P(A and B).
Subtract the probability of no successes from 1: 1 − (1 − p)n. For a 1% chance repeated 100 times, that's about 63.4%.
Two events are independent if one happening doesn't change the chance of the other. Separate coin flips are independent.
The events can't happen at the same time, such as rolling a 1 and a 6 on the same throw of one die.
P(X = k) = C(n, k) × pk × (1 − p)n − k, where n is the number of trials, k the number of successes and p the chance of success in one trial.
Yes. Enter 25%, 0.25 or 1/4; they all mean the same thing.
(1/2)¹⁰ = 1/1,024, about 0.098%.
Odds against = (1 − p) ÷ p. A probability of 0.25 gives odds of 3 to 1 against.
Because each roll can miss independently. The chance of no six in six rolls is (5/6)⁶ ≈ 33.5%, so the chance of at least one is about 66.5%.
The average number of successes you'd get over many repetitions, equal to n × p. With 10 rolls of a die, you expect about 1.67 sixes.
There are 4 aces in a 52-card deck, so the chance is 4/52 = 1/13, about 7.69%.