Probability calculator
Probability, odds, combinations and permutations, independent events, and the chance of at least one success across several tries.
Probability
Probability
-
- As a fraction
- -
- Odds for
- -
- Odds against
- -
- Probability it does not happen
- -
Combinations and permutations
How many ways to choose or arrange r items from n.
- Combinations C(n,r), order does not matter
- -
- Permutations P(n,r), order matters
- -
C(n,r) = n! / (r!(n−r)!) P(n,r) = n! / (n−r)!
Independent events
Two events where one does not affect the other, such as two separate coin flips.
- Both happen, A and B
- -
- Either happens, A or B
- -
At least one success
The chance that an event with a fixed probability happens at least once across several independent tries.
At least one success
-
How it works
Probability is the mathematical measure of how likely an event is to occur, expressed as a number between 0 (impossible) and 1 (certain), calculated as favorable outcomes divided by total outcomes.
- Enter the outcomes
How many outcomes count as a win, and how many are possible.
- Read the probability
Shown as a percent, a fraction, and as odds.
- Use the sections below
Combinations, independent events, or several tries in a row.
Combinations, permutations and odds
A combination C(n,r) counts selections where order does not matter; a permutation P(n,r) counts arrangements where order matters. Choosing 3 people from 10 for a committee gives C(10,3) = 120 combinations, but assigning them to president, vice president and treasurer gives P(10,3) = 720 permutations.
Odds versus probability
Probability is favorable outcomes divided by total outcomes. Odds compare favorable outcomes to unfavorable ones. Rolling a 1 on a die has probability 1/6, about 16.67%, but odds for are 1:5 (one favorable against five unfavorable) and odds against are 5:1.
Independent and combined events
For independent events, multiply the individual probabilities for both to happen: P(A and B) = P(A) × P(B). For the probability that at least one of several events happens, use P(A or B) = P(A) + P(B) − P(A and B), the inclusion-exclusion formula, or for many identical tries, 1 − (1 − p)n.
Large numbers
Factorials grow fast: 20! already exceeds 2 quadrillion. This calculator handles n and r up to 170, the limit of standard floating-point numbers, and switches to scientific notation for very large results. For n and r both large, combinations can still be small because the factorial division cancels most of the growth.
Frequently asked questions
What is the difference between combinations and permutations?
A combination C(n,r) = n! / (r!(n-r)!) counts selections where order does not matter. A permutation P(n,r) = n! / (n-r)! counts arrangements where order matters. For example, choosing 3 people from 10 for a committee gives C(10,3) = 120 combinations, but assigning them to president, vice president and treasurer gives P(10,3) = 720 permutations.
How do you calculate the probability of two independent events both occurring?
Multiply the individual probabilities: P(A and B) = P(A) × P(B). For two 50% events, both occurring has probability 0.5 × 0.5 = 25%. The calculator also computes P(A or B) = P(A) + P(B) − P(A and B), known as the inclusion-exclusion formula.
How are odds different from probability?
Probability is favorable divided by total, while odds compare favorable to unfavorable outcomes. Rolling a 1 on a die has probability 1/6, about 16.67%, but odds for are 1:5, one favorable against five unfavorable. Odds against are 5:1. When favorable outcomes are 0, odds for are shown as 0 to the total, not left blank.
What happens when r is greater than n in C(n,r) or P(n,r)?
If r is greater than n, both C(n,r) and P(n,r) equal 0 because you cannot choose or arrange more items than exist. For example, choosing 5 people from a group of 3 is impossible, so C(3,5) = 0. This is the correct mathematical result, not an error.
How do you find the probability of at least one success in several tries?
It is easier to work out the chance every try fails, then subtract from 1: P(at least one) = 1 − (1 − p)^n, where p is the probability of success on one try and n is the number of tries. Rolling a die 4 times, the chance of at least one 1 is 1 − (5/6)^4, about 51.77%.