Works on this device
Probability Calculator
Find the chance of an event. Choose a calculation, type the probabilities you know as decimals, fractions or percentages, and get the answer as an exact fraction, a decimal, a percentage and odds. The steps show the rule that was used with your numbers in it.
Enter your values
Check these values
Your values are worked out in this browser. They are not sent to a server.
Your result will show here
Fill in the values, then choose the button below them.
Your result
How it was worked out
How to use this calculator
- Choose what you want to work out in the first menu. For a plain question about two events, keep Two events.
- Type each probability as a decimal such as
0.25, a fraction such as1/4or a percentage such as25%. - Choose Calculate. The result gives every related probability, a table in all forms and the working in steps.
- If the numbers cannot be true together, the tool says why. For example, P(A and B) cannot be larger than P(A).
- Use Download CSV, Copy or Print to keep the result.
The rules for events
- One event: probability = outcomes that count ÷ all outcomes that are equally likely. The complement is 1 − P(A).
- And (both happen): P(A and B) = P(A) × P(B given A). For independent events this is P(A) × P(B).
- Or (at least one happens): P(A or B) = P(A) + P(B) − P(A and B). For three events: add the three, take away the three overlaps of two, and add the overlap of all three.
- Given (conditional): P(A given B) = P(A and B) ÷ P(B).
- Independent means P(A and B) = P(A) × P(B). Mutually exclusive means P(A and B) = 0.
- Bayes’ rule: P(A given B) = P(A) × P(B given A) ÷ P(B), where P(B) = P(A) × P(B given A) + P(not A) × P(B given not A).
- At least once in n tries: 1 − (1 − p)^n.
- Odds: odds in favour of a to b mean a probability of a ÷ (a + b).
- Expected value: E(X) = sum of x × P(X = x). Variance = E(X²) − E(X)².
The distributions
C(n, k) is the number of ways to choose k things out of n. For each distribution you get the chance of exactly k, at most k, at least k and a range, the mean and the variance, a table and a chart.
| Distribution | It counts | P(X = k) | Mean |
|---|---|---|---|
| Binomial | successes in n independent trials | C(n, k) × p^k × (1 − p)^(n − k) | n × p |
| Geometric | the trial of the first success | (1 − p)^(k − 1) × p | 1 ÷ p |
| Negative binomial | the trial of success number r | C(k − 1, r − 1) × p^r × (1 − p)^(k − r) | r ÷ p |
| Hypergeometric | marked things in n draws without replacement | C(K, k) × C(N − K, n − k) ÷ C(N, n) | n × K ÷ N |
| Poisson | events at a steady mean rate λ | e^(−λ) × λ^k ÷ k! | λ |
| Normal | a measured value around a mean | an area under the bell curve, from z = (x − μ) ÷ σ | μ |
Worked examples
Two events. P(A) = 0.4 and P(B) = 0.5, independent. P(A and B) = 0.4 × 0.5 = 0.2. P(A or B) = 0.4 + 0.5 − 0.2 = 0.7. P(neither) = 0.3.
A test (Bayes’ rule). 1% of people have a condition. The test finds 90% of them, and it is positive for 9% of the people without it. Out of 10,000 people, 90 have a true positive and 891 a false positive. So P(condition given positive) = 90 ÷ 981 = 10/109, about 9.2%.
Dice. The chance of at least one six in 4 rolls is 1 − (5/6)^4 = 671/1,296, about 51.8%.
A coin. The chance of exactly 5 heads in 10 tosses is C(10, 5) ÷ 2^10 = 63/256, about 24.6%.
Cards. A hand of 5 cards from 52 holds at least one ace with a chance of 18,472/54,145, about 34.1%.
A lottery. Matching 6 numbers out of 49 has a chance of 1 in 13,983,816. As a decimal that is 0.0000000715112384202: small, but not 0.
The normal distribution. For a standard normal value, P(Z < 1.96) = 0.9750021049.
A birthday. In a group of 23 people the chance that two share a birthday is about 50.7%.
Limits you should know
- Probabilities of events and of the binomial, geometric, negative binomial and hypergeometric distributions are exact fractions. A decimal is rounded to 12 significant digits and a percentage to 10. A fraction of more than 60 digits is not written out.
- Sizes: a binomial distribution takes up to 10,000 trials, and trial numbers go up to 20,000. A probability typed with many digits lowers these limits. The hypergeometric distribution takes up to 1,000,000 things as long as the numbers stay below 20,000 digits. Larger tasks are refused with a message.
- Poisson probabilities (mean up to 700) and normal probabilities hold the numbers e and π. They are decimals, right to about 12 digits and shown with 10.
- A tree has two steps, with up to 12 branches at each point. A tree of draws shows up to 1,500 paths. Trees are shown as text, not as drawings.
- The tool does not read a problem written in words. You choose the calculation and type the numbers.
- It has no t, chi-square or F distributions, no p-values of tests, no Markov chains and no option pricing.
- The lottery and betting calculations show chances only. They cannot predict a draw, and betting odds include the margin of the bookmaker.
- Bayes’ rule for a medical test is arithmetic only. It is not medical advice.