How to use this calculator
- 1 Choose the type of problem: two events, or repeated trials.
- 2 For two events, enter the probability of A and of B as percentages. For repeated trials, enter the chance per trial, the number of trials and the number of successes.
- 3 Read the combined probabilities. The working line shows the formula used.
- 4 Check that the events are independent, as the two-events mode assumes.
What is probability?
Probability measures how likely an event is. It is a number from 0 to 1, where 0 means impossible and 1 means certain. Percentages are the same idea scaled to 0 to 100%, so 0.3 is 30%. The percentage calculator converts between the two.
A fair coin gives heads with probability 0.5. A fair six-sided die gives a 6 with probability 1/6, which is about 0.1667. The probabilities of all possible outcomes always add up to 1.
For example, if the chance of rain tomorrow is 30%, the chance of no rain is 70%. The two always add up to 100%, because one of them must happen.
Two events: and, or, and not
If events A and B are independent, the chance that both happen is the product of their chances. For example, with P(A) = 0.30 and P(B) = 0.50, both happen with probability 0.30 × 0.50 = 0.15.
The chance that either happens is found by adding the two probabilities and subtracting the overlap, so you do not count the overlap twice. Here that gives 0.30 + 0.50 − 0.15 = 0.65.
The chance that A happens without B is P(A) × (1 − P(B)), because B must fail to happen. Complement rules, such as “not A”, come from subtracting from 1.
| Event | Calculation | Probability |
|---|---|---|
| A and B | 0.30 × 0.50 | 0.15 |
| A or B | 0.30 + 0.50 − 0.15 | 0.65 |
| A but not B | 0.30 × (1 − 0.50) | 0.15 |
| Neither A nor B | (1 − 0.30) × (1 − 0.50) | 0.35 |
Repeated trials and at least one success
When the same trial is repeated, and each trial has the same chance p of success, the number of successes follows a binomial distribution. The chance of exactly k successes in n trials is C(n, k) × pᵏ × (1 − p)ⁿ⁻ᵏ.
A common question is “at least one success”. It is easier to find the chance of no success and subtract it from 1. For 5 trials at 10% each, the chance of no success is 0.9⁵ = 0.59049, so the chance of at least one is 1 − 0.59049 = 0.40951, or about 41%.
The calculator also shows the expected number of successes, which is n × p. For 5 trials at 10%, that is 0.5. The expected value is an average over many repeats, so it does not tell you what will happen in one set of trials. To judge whether observed results differ from what chance predicts, see the p-value calculator.
Tips for correct probabilities
Probability mistakes often come from assuming independence when events are linked. Keep these points in mind:
- Check independence. Two draws from a bag without replacement are not independent, because the first draw changes the second.
- Use the same units. Enter percentages and check that the answers match, or convert everything to decimals first.
- Count the overlap. When events can happen together, subtract the overlap in the “or” rule.
- Use complements for “at least”. Find the chance of none and subtract it from 1.
- Count the outcomes first. When outcomes are equally likely, the permutation and combination calculator counts the favourable and total results.
The formula
Both events (independent)
P(A and B) = P(A) × P(B)
- P(A)
- the probability that A happens
Either event
P(A or B) = P(A) + P(B) − P(A and B)
- P(A and B)
- the overlap, counted once
Repeated trials
P(k successes) = C(n, k) × pᵏ × (1 − p)ⁿ⁻ᵏ
- n
- number of trials
- k
- number of successes wanted
- p
- probability of success in one trial
Expected successes
E = n × p
- E
- the long-run average number of successes
Worked example
A = 30% and B = 50%, two independent events
- 1.Both: 0.30 × 0.50 = 0.15.
- 2.Either: 0.30 + 0.50 − 0.15 = 0.65.
- 3.A but not B: 0.30 × (1 − 0.50) = 0.15.
P(A and B) is 15%, and P(A or B) is 65%.
Frequently asked questions
How do I calculate the probability of two events both happening?
If the events are independent, multiply their probabilities. For 30% and 50%, the answer is 0.30 × 0.50 = 0.15, or 15%. If they are not independent, you need the conditional probability instead.
What does “at least one” mean in probability?
It means one or more successes. Find the probability of zero successes, then subtract it from 1. For 5 trials at 10% each, the answer is 1 − 0.9⁵ = 0.40951.
What is the difference between “and” and “or”?
“And” means both events happen, so the chance is usually smaller. “Or” means at least one happens, so the chance is larger, but you must not count the overlap twice.
Can a probability be more than 100%?
No. A probability is always between 0% and 100%. If your working gives a larger number, check the formula, because one of the inputs or steps is likely wrong.
Why does the expected value not match what happens in a few trials?
The expected value is a long-run average. In a small number of trials, the actual count can vary a lot from it, so it is best read as the average over many repeats.
Sources
Last reviewed by the GridCalculators team.