Probability questions rarely come one event at a time. What is the chance that a shipment is late and the invoice is wrong? That a customer buys product A or product B? That a person really has a condition given a positive test? Each of these needs a different rule, and using the wrong one is the most common source of bad answers.
This guide walks through the handful of rules that cover almost every everyday probability problem: complements, AND, OR, conditional probability, Bayes' theorem and repeated trials. Every example below has been checked numerically, and at the end you will see how to get the same results, with steps, from a calculator.
The basic building blocks
A probability is a number from 0 (impossible) to 1 (certain). You can write it as a decimal, a fraction or a percentage: 0.25, 1/4 and 25% mean the same thing.
When every outcome is equally likely, probability is just counting:
P(event) = favourable outcomes ÷ total outcomes
Rolling a six on a fair die is 1 ÷ 6 ≈ 0.1667. The complement, the chance the event does not happen, is always 1 − P(event), so not rolling a six is 5/6.
Odds are a different way of expressing the same information: favourable to unfavourable. A six has odds of 1 : 5 for, or 5 : 1 against. Odds of 1 : 5 are not a probability of 1/5, which is a frequent mix-up.
The multiplication rule: P(A and B)
For two independent events, where one happening does not change the chance of the other, you multiply:
P(A and B) = P(A) × P(B)
Suppose a delivery is late 30% of the time and, separately, an invoice contains an error 20% of the time. If the two are unrelated, the chance that both go wrong on the same order is 0.3 × 0.2 = 0.06, or 6%.
If the events are not independent, multiplying the two probabilities gives the wrong answer. You need the general form:
P(A and B) = P(A) × P(B | A)
where P(B | A) means "the probability of B, given that A has happened".
The addition rule: P(A or B)
"A or B" in probability means at least one of them. The general rule is:
P(A or B) = P(A) + P(B) − P(A and B)
You subtract the overlap because adding P(A) and P(B) counts the "both" cases twice. With the delivery example: 0.3 + 0.2 − 0.06 = 0.44.
Two useful by-products:
- Neither happens: 1 − 0.44 = 0.56.
- Exactly one happens: P(A or B) − P(A and B) = 0.44 − 0.06 = 0.38.
If A and B are mutually exclusive (they cannot both happen, like rolling a 2 and a 5 on one die), the overlap is 0 and you can simply add. That shortcut is only valid for exclusive events.
Conditional probability and testing for independence
Conditional probability restricts attention to the cases where one event has already happened:
P(A | B) = P(A and B) ÷ P(B)
Say 60% of customers bought product A, 50% bought product B, and 35% bought both. Then:
| Quantity | Calculation | Result |
|---|---|---|
| P(A or B) | 0.6 + 0.5 − 0.35 | 0.75 |
| P(A | B) | 0.35 ÷ 0.5 | 0.70 |
| P(B | A) | 0.35 ÷ 0.6 | 0.5833 |
| Neither | 1 − 0.75 | 0.25 |
Are A and B independent? If they were, P(A and B) would equal 0.6 × 0.5 = 0.30. It is 0.35, so buying B makes buying A more likely (70% instead of 60%). That comparison, joint probability versus the product, is the standard test for independence.
Note that P(A | B) and P(B | A) are different numbers. Swapping them is a classic error, sometimes called the prosecutor's fallacy.
Bayes' theorem: turning P(B | A) into P(A | B)
Often you know how likely the evidence is when something is true, but you want the reverse. Bayes' theorem does the flip:
P(A | B) = P(B | A) × P(A) ÷ P(B)
P(B) = P(B | A) × P(A) + P(B | not A) × P(not A)
Take a screening test for a condition that affects 1% of people. The test is positive for 95% of people who have it and, wrongly, for 5% of people who do not.
- P(positive) = 0.95 × 0.01 + 0.05 × 0.99 = 0.059
- P(condition | positive) = 0.0095 ÷ 0.059 ≈ 0.161
A positive result means only about a 16% chance of having the condition. Counting people makes this intuitive: out of 10,000, 100 have it and 95 of them test positive; of the 9,900 without it, 495 also test positive. Only 95 of the 590 positives are true, which is 16.1%. When a condition is rare, false positives from the large healthy group swamp the true ones.
Repeated trials: "at least once" and the binomial model
The chance that something happens at least once in n independent tries is easiest via the complement:
P(at least once) = 1 − (1 − p)ⁿ
The chance of at least one six in four rolls is 1 − (5/6)⁴ ≈ 0.5177. Compare that with at least one double six in 24 rolls of two dice: 1 − (35/36)²⁴ ≈ 0.4914. These two bets famously puzzled 17th-century gamblers because "4 × 1/6" and "24 × 1/36" both look like 2/3. Multiplying p by n is never the right method; it can even exceed 1.
For an exact number of successes, use the binomial formula:
P(exactly k) = C(n, k) × pᵏ × (1 − p)ⁿ⁻ᵏ
If 20% of sales calls convert, the chance of exactly 3 conversions from 10 calls is C(10, 3) × 0.2³ × 0.8⁷ ≈ 0.2013, and the chance of at least 3 is about 0.3222. The expected number is n × p = 2. The C(n, k) part counts how many orders the successes could come in; our Permutation & Combination Calculator explains that piece.
How to work these out with the calculator
The Probability Calculator has four tabs, one for each type of problem above. Probability boxes accept decimals, fractions or percentages (0.25, 1/4 or 25%).
- Single event: enter the Favourable outcomes and Total possible outcomes. You get the probability, the reduced fraction, the complement and the odds for and against.
- Two events: enter P(A) and P(B), then answer How are A and B related? Choose Independent, Mutually exclusive or I know P(A and B). With the last option, type the joint probability and the tool also tells you whether the events are independent.
- Conditional (Bayes): fill in the prior P(A), P(B | A) and P(B | not A). The result is the posterior P(A | B), with P(B) and P(A | not B) alongside.
- Repeated trials: enter the probability per trial and the number of trials. Optionally add a number of successes k to get P(exactly k), P(at most k) and P(at least k).
Every result shows the formula with your numbers substituted. The tool also rejects impossible inputs, such as exclusive events whose probabilities add up to more than 1.
Other ways to calculate probabilities
- By hand: a tree diagram or a 2 × 2 table of counts (as in the screening example) is the most reliable way to avoid conditional-probability mistakes.
- Spreadsheets:
=1-(5/6)^4handles "at least once", andBINOM.DIST(k, n, p, FALSE)gives exactly k successes (TRUEfor "at most k"). This is the better route for a whole table of values. - Simulation: a quick experiment with a Random Number Generator gives an estimate to sanity-check a formula.
Common mistakes to avoid
Adding events that overlap
"30% chance of rain Saturday, 30% Sunday, so 60% this weekend" is wrong. If the days are independent, the chance of rain on at least one day is 1 − 0.7 × 0.7 = 51%.
Multiplying events that are not independent
Two machines on the same power supply do not fail independently. Use the conditional form, or real joint data, whenever a common cause links the events.
Confusing P(A | B) with P(B | A)
"95% of people with the condition test positive" is not "95% of positives have the condition". The screening example shows how far apart they can be.
The gambler's fallacy
Independent trials have no memory. After five tails in a row, the next fair coin toss is still 50/50; see Is a Coin Flip Really 50/50? for more on streaks.
Frequently asked questions
What is the difference between "and" and "or" in probability?
"A and B" means both events happen, and you multiply (for independent events). "A or B" means at least one happens, and you add, then subtract the overlap so it is not counted twice.
How do I know if two events are independent?
Check whether P(A and B) equals P(A) × P(B), or equivalently whether P(A | B) equals P(A). If knowing B changes the probability of A, the events are dependent.
Why is a positive test result often less certain than the test's accuracy?
When a condition is rare, even a small false-positive rate applied to the large healthy group produces more false positives than true ones. Bayes' theorem weighs the test's accuracy against how common the condition is.
How do I calculate the probability of something happening at least once?
Work out the chance it never happens, (1 − p)ⁿ, and subtract that from 1. Do not multiply p by the number of tries.
Can a probability be greater than 1?
No. If a calculation gives more than 1, a rule has been misapplied, usually adding overlapping events or multiplying p by n.