Probability Calculator
With probability of a 20 percent, probability of b 30 percent, number of independent tries 10, probability comes to 6.0000 % — both happen. It is reached in 7 steps, the last of which is 0.2 * 0.3 * 100, and each one is printed on the page with its numbers filled in. The formula is the one published by NIST/SEMATECH e-Handbook of Statistical Methods, not an approximation fitted to it.
Two events combined every way — both, either, neither, exactly one — plus the chance of at least one occurrence over many tries.
Formula and sources checked · How we check
Probability of A 20, Probability of B 30, Number of independent tries 10
6.0000 %
Both happen for the example below. Editing a field recomputes the calculator below; this figure holds the answer the page was loaded with.
It is written into the HTML rather than drawn by a script, so a search engine reading this page without running JavaScript still finds an answer.
- Both happen, A and B
0.2 * 0.3 * 1006 %- At least one happens, A or B
(0.2 + 0.3 - 0.2 * 0.3) * 10044 %- Neither happens
(1 - 0.2) * (1 - 0.3) * 10056 %- Exactly one happens
(0.2 * (1 - 0.3) + 0.3 * (1 - 0.2)) * 10038 %- A does not happen
(1 - 0.2) * 10080 %- A happens at least once in the tries
(1 - pow(1 - 0.2, 10)) * 10089.263 %- Expected number of times A happens
0.2 * 102
Worked example
A 20% event and a 30% event, independent: both at 6%, either at 44% — not 50%, because adding them double-counts the overlap. And a 20% event tried ten times happens at least once 89.3% of the time.
How to work it out yourself
- 1.Enter the two probabilities as percentages. They do not have to add to 100 — these are separate events, not alternatives.
- 2.Check whether the events are actually independent before trusting the "both" line. Rain today and rain tomorrow are not.
- 3.Use the "at least once" line for repeated exposure: a small risk taken often is a large risk, and that line is where the intuition usually fails.
The formula
- Both happen, A and B
0.2 * 0.3 * 100 - At least one happens, A or B
(0.2 + 0.3 - 0.2 * 0.3) * 100 - Neither happens
(1 - 0.2) * (1 - 0.3) * 100 - Exactly one happens
(0.2 * (1 - 0.3) + 0.3 * (1 - 0.2)) * 100 - A does not happen
(1 - 0.2) * 100 - A happens at least once in the tries
(1 - pow(1 - 0.2, 10)) * 100 - Expected number of times A happens
0.2 * 10
Source: NIST/SEMATECH e-Handbook of Statistical Methods — probability
Questions people actually ask
- Why is "A or B" not just A plus B?
- Because adding them counts the overlap twice. 20% plus 30% is 50%, but the 6% where both happen has been included in each, so the answer is 44%. Subtracting the overlap is the inclusion-exclusion rule, and it is why probabilities added carelessly can exceed 100%.
- What does independent mean?
- That one event happening tells you nothing about the other. Two dice are independent; two flights on the same day in the same weather are not. Every line on this page assumes independence, and where it fails the "both" figure can be far wrong in either direction — correlated risks cluster.
- How likely is a rare event over many tries?
- Far likelier than people expect. A 1% chance repeated 100 times comes to 63.4%, not 100% and not 1%. The arithmetic is one minus the chance of it never happening, and it is the reason a small per-flight or per-year risk becomes a substantial lifetime one.
- What is the complement rule?
- The chance something does not happen is one minus the chance it does. It sounds trivial and it is the most useful trick in elementary probability: "at least one" questions are almost always easier solved as "one minus none", which is exactly how the line above is computed.
Related
- Confidence Interval CalculatorThe confidence interval around a sample mean, with the margin of error and what the interval does and does not claim.
- Z-Score to P-Value CalculatorExact p-value from a z-score, one-tailed or two-tailed, with the percentile the score sits at.
- Percentage CalculatorWhat X% of a number is, plus the discounted price, the marked-up price and the remainder.
- Number Sequence CalculatorThe nth term and the running total of an arithmetic or geometric sequence, and whether an infinite geometric one converges.
- Factorial Calculatorn factorial for n up to 170, with the number of digits, the previous factorial and what the figure counts: the orderings of n distinct things.
- Grade CalculatorYour weighted course grade from up to eight categories, by percentage or by points, or the score you need on the final to reach the grade you want.
Where this one stops
Put this calculator on your site
Free, no attribution required beyond the link.
<iframe src="https://rulecalculators.com/embed/probability" width="100%" height="420" style="border:1px solid #e7e4de;border-radius:12px" title="Probability Calculator"></iframe>