Probability Calculator: And, Or, Binomial, Bayes and Normal Areas
By FindMySum · Last reviewed
This probability calculator covers the four situations that come up most in coursework and everyday decisions: two independent events, a run of repeated trials, a probability updated by evidence, and the share of a normal distribution that falls between two values. Each mode shows the formula with your numbers so you can check the reasoning, not just the answer. Below, each one is explained with the calculator's default inputs as the worked example.
Probabilities as numbers from 0 to 1
A probability is a number from 0 (impossible) to 1 (certain). The calculator takes inputs as decimals, so a 5% chance is 0.05 and a one-in-six chance is about 0.16667, and it shows every result both as a decimal and as a percentage. The complement rule underlies almost everything else: the chance that an event does not happen is 1 minus the chance that it does.
Two independent events
Two events are independent when one tells you nothing about the other: two dice, two coin tosses, rain in two distant cities on the same day (roughly). For independent events the multiplication rule gives the chance that both happen, and the addition rule, with the overlap removed, gives the chance that at least one happens.
With the defaults, P(A) = 0.5 and P(B) = 0.4:
- Both: 0.5 × 0.4 = 0.2
- At least one: 0.5 + 0.4 − 0.2 = 0.7
- Neither: 0.5 × 0.6 = 0.3
- Exactly one: 0.7 − 0.2 = 0.5
Check that the last three add to 1 together with "both": 0.2 + 0.5 + 0.3 = 1. That kind of sanity check catches most mistakes in hand calculations. If the events are not independent, P(A and B) is P(A) × P(B | A) instead, and the conditional probability has to come from the problem itself.
Three independent events
The same rules extend to three events A, B and C that don't affect each other. The chance that all three happen is the product P(A) × P(B) × P(C), and the chance that none happens is the product of the complements, (1 − P(A))(1 − P(B))(1 − P(C)). The chance that at least one happens is 1 minus that. With the calculator's values of 0.5, 0.4 and 0.3, all three happen with probability 0.06, none with 0.21 and at least one with 0.79.
"Exactly one" and "exactly two" add up one product for each way it can happen. Exactly one is P(A)(1 − P(B))(1 − P(C)) + (1 − P(A))P(B)(1 − P(C)) + (1 − P(A))(1 − P(B))P(C) = 0.21 + 0.14 + 0.09 = 0.44, and exactly two is 0.14 + 0.09 + 0.06 = 0.29. All three, exactly two, exactly one and none always add up to 1, which the breakdown table shows. When all three probabilities are equal this is the binomial distribution with three trials: three fair coins give all heads 1/8 of the time and exactly one head 3/8.
Repeated trials: the binomial distribution
When the same experiment is repeated n times, each trial is independent, and each has the same probability p of success, the number of successes follows a binomial distribution. The probability of exactly k successes is
P(X = k) = C(n, k) × p^k × (1 − p)^(n − k)
C(n, k), read "n choose k", counts the different orders in which the k successes can occur. The default example is ten fair coin tosses and exactly five heads: C(10, 5) = 252, and each particular sequence has probability 0.5^10 = 1/1024, so P(X = 5) = 252/1024 ≈ 0.2461. Most people guess higher; exactly half is the single most likely result, but there are ten other possible counts.
The calculator also adds up terms for the cumulative questions: five or fewer heads has probability 638/1024 ≈ 0.6230, and so does five or more, because the distribution is symmetric when p = 0.5. For n up to 60 the full distribution is listed with a bar for each count, so you can see its shape. The mean is np = 5 and the standard deviation √(np(1 − p)) ≈ 1.58.
The "at least one success" figure, 1 − (1 − p)^n, answers a different and very common question. It explains why a 1% daily risk becomes a 30% chance over 36 days (1 − 0.99^36 ≈ 0.30), and why the seventeenth-century gambler Chevalier de Méré found that betting on at least one six in four rolls of a die paid off: 1 − (5/6)^4 ≈ 0.518.
Updating with evidence: Bayes' theorem
Bayes' theorem turns "how likely is the evidence if the hypothesis is true" into "how likely is the hypothesis given the evidence". With A the hypothesis and B the evidence:
P(A | B) = P(B | A) × P(A) ÷ P(B), where P(B) = P(B | A) × P(A) + P(B | not A) × (1 − P(A))
The defaults describe a screening test: 5% of people have the condition (the prior), the test detects 90% of them (sensitivity), and it wrongly flags 20% of people without it. P(B), the chance of a positive result, is 0.9 × 0.05 + 0.2 × 0.95 = 0.235. The chance that a positive result is a true one is 0.045 ÷ 0.235 ≈ 19.1%.
The calculator also shows the same numbers as counts out of 10,000 people: 450 true positives against 1,900 false positives. Counting people rather than multiplying probabilities is the easiest way to see why the answer is so much lower than the test's 90% sensitivity suggests.
Normal distribution areas
Many measurements, from heights to test scores to manufacturing tolerances, are close to normally distributed. The share of values between two limits is an area under the bell curve. The calculator converts each limit to a z-score, z = (x − μ) ÷ σ, and reads the area from the standard normal cumulative distribution Φ.
With the default mean of 100 and standard deviation of 15 (the scale used for IQ scores), the limits 85 and 115 are exactly one standard deviation either side: z = −1 and z = +1. Φ(1) − Φ(−1) = 0.6827, so about 68.27% of values lie between them and 15.87% in each tail. This is the first figure of the familiar 68–95–99.7 rule; limits at two and three standard deviations give about 95.45% and 99.73%.
The standard normal CDF has no closed form, so the calculator evaluates it with a series that is accurate to about 15 decimal places, and with a continued fraction far out in the tails, where the probabilities become tiny. The results agree with the NIST e-Handbook table to every digit it prints.
Choosing the right mode
If your question is about two separate things happening, use two events. If it is about counting successes in a fixed number of identical attempts, use binomial. If you know how likely some evidence is under each possibility and want to know what the evidence implies, use Bayes. If the quantity is a measurement with a known mean and spread, use the normal distribution.
More questions
What is the difference between odds and probability?
Probability compares the favourable outcomes with all outcomes; odds compare favourable with unfavourable. A probability of 0.2 is odds of 1 to 4 (0.2 ÷ 0.8). To turn odds of a to b into a probability, divide a by a + b: odds of 3 to 1 are a probability of 0.75. Betting odds also include the bookmaker's margin, so the implied probabilities on a betting slip add up to more than 1.
Why don't the binomial results match my textbook's table?
Printed binomial tables round to three or four decimal places and usually list cumulative probabilities P(X ≤ k) only. The calculator shows more digits and both tails, so compare like with like: a table entry for n = 10, p = 0.5, k = 5 of 0.623 is the calculator's P(X ≤ 5) = 0.623046875. Some tables also list P(X ≥ k), which is the complement of P(X ≤ k − 1).
When can I use the normal distribution instead of the binomial?
A common rule of thumb is when both np and n(1 − p) are at least 10; the binomial's shape is then close to a normal curve with mean np and standard deviation √(np(1 − p)). The approximation works best with a continuity correction (P(X ≤ 5) becomes the area below 5.5). The calculator's binomial mode is exact for n up to 10,000, so you rarely need the approximation here.
Does the gambler's fallacy affect these calculations?
No, and that is the point of independence. After five heads in a row the chance of heads on the next fair toss is still 0.5. What is unlikely is the whole run of six: 0.5^6 ≈ 1.6%. The binomial and at-least-once results describe a sequence planned in advance, not the next trial after a streak.
How do I combine more than two independent events?
Multiply for 'all of them': three independent events with probabilities 0.9, 0.8 and 0.95 all happen with probability 0.9 × 0.8 × 0.95 = 0.684. For 'at least one', subtract the chance that none happens from 1: 1 − (0.1 × 0.2 × 0.05) = 0.999. The calculator's two-event mode handles two at a time, so you can chain it by entering the first result as P(A).
What is a base rate and why does it matter so much?
The base rate, or prior, is how common something is before you look at the evidence. In the Bayes mode it is P(A). A low base rate means that even a small false positive rate produces many false alarms, which is why screening tests for rare conditions are usually followed by a second, more specific test. Ignoring the base rate is a well-documented reasoning error called base-rate neglect.
What is the chance that at least one of three things goes wrong?
One minus the chance that none of them does. If three independent parts work 90%, 80% and 70% of the time, all three work with probability 0.9 × 0.8 × 0.7 = 0.504, so at least one fails 49.6% of the time; all three fail only 0.1 × 0.2 × 0.3 = 0.6% of the time.
Sources
This article explains how the calculator works and is general information, not financial, tax, legal or medical advice. Rules change; check the sources above or a qualified professional before you act.