Probability Calculator
Calculate probabilities: favorable outcomes, two independent events (and, or, neither) and combinations and permutations of n choose r.
Check your input: whole numbers for outcomes, probabilities between 0 and 1 (or 0% and 100%).
Runs in your browser. What you enter is kept for 30 days to improve Toolgrid, then deleted.
How to use the Probability Calculator
- 1 Choose what you want to calculate: outcomes, two events or combinations.
- 2 Enter the numbers: favorable and total outcomes, the probabilities of A and B, or n and r.
- 3 Read the probabilities, odds or number of combinations.
About the Probability Calculator
For equally likely outcomes, the probability of an event is favorable outcomes divided by total outcomes. Rolling a 6 with a die: 1/6 ≈ 16.67%. The odds compare favorable to unfavorable outcomes, here 1:5. The complement, the probability that the event does not happen, is 1 − p.
For two independent events A and B the multiplication rule applies: P(A and B) = P(A) × P(B). The chance that at least one happens is P(A or B) = P(A) + P(B) − P(A) × P(B), and the chance that neither happens is (1 − P(A)) × (1 − P(B)). Independent means that one event does not affect the other, such as two separate coin flips.
Combinatorics counts possibilities. Combinations C(n, r) = n! / (r! (n − r)!) count the ways to choose r items from n when the order does not matter, like lottery numbers: C(49, 6) = 13,983,816. Permutations P(n, r) = n! / (n − r)! count ordered selections, like a podium. Results are exact, even with hundreds of digits.
Frequently asked questions
How do you calculate a probability?
Divide the number of favorable outcomes by the total number of equally likely outcomes. Drawing a heart from a deck: 13/52 = 1/4 = 25%.
What is the difference between probability and odds?
Probability compares favorable outcomes to all outcomes (1 in 6); odds compare favorable to unfavorable outcomes (1 to 5).
How do I calculate the probability of two events?
If they are independent, multiply for "both" (0.5 × 0.3 = 0.15) and use P(A) + P(B) − P(A)P(B) for "at least one".
What is the difference between combinations and permutations?
In combinations the order does not matter (a team of 3 out of 10: 120), in permutations it does (gold, silver and bronze out of 10: 720).
What are the chances of winning the lottery?
For picking 6 numbers out of 49: 1 in 13,983,816. Enter n = 49 and r = 6 to see the number of combinations.