Probability Calculator
A probability is favourable outcomes divided by all equally likely outcomes: one head from a fair coin is 1 ÷ 2 = 0.5. For two events, P(A or B) = P(A) + P(B) − P(A and B), and P(A given B) = P(A and B) ÷ P(B). Choose a calculation type and enter its values.
Last updated by Ultra Calculator
Probability
How to calculate it
P(A) = favourable outcomes ÷ total outcomes P(A | B) = P(A ∩ B) ÷ P(B) P(A ∪ B) = P(A) + P(B) − P(A ∩ B) P(X = k) = C(n, k) × p^k × (1 − p)^(n − k)
- P(A), P(B)
- the probabilities of events A and B, as decimals from 0 to 1
- P(A ∩ B)
- the probability that A and B both happen
- P(A ∪ B)
- the probability that A or B (or both) happens
- P(A | B)
- the probability of A given that B has happened
- n, k, p
- binomial trials, successes wanted and the chance of success on each trial
- C(n, k)
- combinations: n! ÷ (k! × (n − k)!)
- P(X = k)
- the binomial probability of exactly k successes
Permutations use P(n, r) = n! ÷ (n − r)!. The both-events option assumes A and B are independent, so it multiplies: P(A ∩ B) = P(A) × P(B).
Worked example
Fair coin flip
One favourable outcome (heads) out of two equally likely outcomes gives a probability of 0.5, or 50%, with odds of 1:1.
| Calculation Type | Basic probability (favourable ÷ total) |
|---|---|
| Favourable Outcomes | 1 |
| Total Outcomes | 2 |
| Calculation | Basic Probability |
|---|---|
| Probability | 0.5 |
| As a Percentage | 50.0000% |
| Favourable Outcomes | 1 |
| Total Outcomes | 2 |
| Odds (Favourable : Unfavourable) | 1:1 |
| Complement (Not Happening) | 0.5 |
How to use this calculator
- Choose a Calculation Type.
- Fill in the boxes that appear for that type.
- Enter probabilities as decimals from 0 to 1, for example 0.25 rather than 25%.
- Read the result, shown as a decimal and, for most types, as a percentage.
- For two events, check the message if one appears: the calculator tells you when P(A and B) can't fit with P(A) and P(B).
Frequently asked questions
How do you calculate probability?
Divide the number of favourable outcomes by the total number of equally likely outcomes. The chance of rolling a 5 or a 6 on a fair die is 2 ÷ 6 = 1/3, or about 0.333.
How do you work out the probability of two events both happening?
If the events are independent, multiply: two heads in a row is 0.5 × 0.5 = 0.25. If one affects the other, multiply by the conditional probability instead: P(A and B) = P(A) × P(B given A). The both-events option here assumes independence.
How do you find the probability of A or B?
Add the two probabilities and subtract the chance of both, so the overlap is not counted twice: P(A or B) = P(A) + P(B) − P(A and B). If A and B cannot happen together, P(A and B) is 0 and you simply add.
How do you calculate conditional probability?
Divide the probability of both events by the probability of the condition: P(A | B) = P(A and B) ÷ P(B). With P(A and B) = 0.1 and P(B) = 0.4, P(A | B) = 0.25. P(B) must be greater than 0.
How do I work out the probability of three or more events?
For independent events, multiply all the probabilities: three heads in a row is 0.5 × 0.5 × 0.5 = 0.125. For "at least one", work out 1 − P(none happen). This calculator takes two events at a time. Chaining results works for independent events, but for dependent events you also need the joint probabilities.
When can I use the binomial formula?
When there is a fixed number of trials, each trial has two outcomes, the chance of success p is the same every time, and the trials are independent. Counting heads in 10 coin flips fits; drawing cards without putting them back does not.
Learn more
Independent and dependent events
Events are independent when one happening doesn't change the chance of the other, as with two coin flips. Drawing two cards without replacement is dependent: the second draw depends on the first. The conditional option reports Independent? as Yes when the P(A and B) you enter equals P(A) × P(B). That checks the figures you supplied, not real data.
Mutually exclusive is not the same as independent
Mutually exclusive events can't happen together, so P(A and B) = 0. Two such events with non-zero probabilities are dependent, because one happening rules the other out.
Combinations and permutations
Combinations count selections where order doesn't matter, such as lottery numbers or a five-card hand. Permutations count arrangements where order matters, such as a race podium or a PIN with no repeated digits. For the same n and r, there are r! times as many permutations as combinations.
The complement rule
The chance that something doesn't happen is 1 minus the chance that it does. It is often the quickest route to "at least one" questions: the chance of at least one six in four rolls is 1 − (5/6)⁴, about 0.518.
- Working through probability questions for GCSE, A-level or university statistics
- Counting possible hands, teams or selections with combinations
- Working out the chance of a set number of defects in a batch with the binomial option
- Checking whether given probabilities for two survey answers satisfy the independence rule
- Combining the chances of two events in a game or a risk assessment
Adding probabilities that overlap
P(A or B) is not P(A) + P(B) unless the events can't happen together. Subtract P(A and B), or you count the overlap twice.
Multiplying probabilities of dependent events
P(A) × P(B) only works for independent events. For dependent events use P(A) × P(B | A).
Typing percentages
The probability boxes take decimals from 0 to 1. Enter 0.35, not 35.
Entering a P(A and B) that is too large
The chance of both can never exceed the smaller of P(A) and P(B), and can't be below P(A) + P(B) − 1. The calculator checks both limits and says which one an impossible value breaks.
Using combinations when order matters
If ABC and CBA count as different outcomes, you need permutations. Combinations treat them as the same.
- For dice and card questions, the dice probability and card probability calculators handle the counting for you.
- The combination calculator also counts selections with repeats allowed.
- Write each probability as a decimal before you start, and keep full precision until the final answer.
Methodology and sources
Basic probability is favourable ÷ total, with odds shown as favourable : unfavourable. Conditional probability divides P(A and B) by P(B), and by P(A) for P(B | A). The either option uses P(A) + P(B) − P(A and B), and the both option multiplies P(A) by P(B), which assumes independence. For two events, P(A and B) must lie between P(A) + P(B) − 1 and the smaller of P(A) and P(B). Independent? is Yes when P(A and B) matches P(A) × P(B) to within rounding, compared in proportion to their size so that very rare events are judged fairly, and two events that can both happen but never together are reported as mutually exclusive. Combinations and permutations are exact whole numbers up to 10^15. Above that they are shown in powers of ten to 5 significant figures, for n up to 1,000,000. Binomial probabilities use logarithms of the binomial coefficient, so large numbers of trials don't overflow, and a success probability of 0 or 1 gives an exact answer.