Skip to content

Probability Calculator

Probability calculator for two or three events (and, or, neither), binomial trials, Bayes’ theorem and normal distribution areas, with the formula and steps.

Calculator Details

P(A and B):0.2 (20%)See results ↓

Two independent events, repeated trials (binomial), Bayes’ theorem or a normal distribution

Probability of event A, from 0 to 1 (0.5 = 50%)

Probability of event B, from 0 to 1

Your Results

P(A and B): 0.2 (20%)

P(A and B)

0.2 (20%)

Two independent events (and / or / neither)

P(A or B)

0.7 (70%)

At least one happens

P(neither)

0.3 (30%)

Neither A nor B

P(exactly one)

0.5 (50%)

A or B but not both

P(A but not B)

0.3 (30%)

P(B but not A)

0.2 (20%)

P(not A) · P(not B)

0.5 · 0.6

Complements

The chance that both A and B happen is 20%; at least one happens 70% of the time and neither 30%.

Compare scenarios

Save these inputs as a scenario, change them, and compare the results side by side.

Loading, available in a moment

Detailed Breakdown

Every combination of A and B
EventProbability
A and B0.2 (20%)
A or B (at least one)0.7 (70%)
Exactly one0.5 (50%)
A but not B0.3 (30%)
B but not A0.2 (20%)
Neither0.3 (30%)

How This Calculator Works

How the Probability Is Calculated

Formulas for two independent events (and / or / neither), with your numbers. Results are calculated in double precision; the normal distribution uses a series accurate to about 15 decimal places.

P(A and B) = P(A) × P(B) = 0.5 × 0.4 = 0.2

P(A or B) = P(A) + P(B) − P(A and B) = 0.5 + 0.4 − 0.2 = 0.7

P(neither) = (1 − 0.5) × (1 − 0.4) = 0.3

P(exactly one) = 0.7 − 0.2 = 0.5

Frequently Asked Questions

What is the difference between "and" and "or" probability?

P(A and B) is the chance that both events happen; for independent events it is P(A) × P(B), so 0.5 and 0.4 give 0.2. P(A or B) is the chance that at least one happens: P(A) + P(B) − P(A and B) = 0.7. The overlap is subtracted once because outcomes where both happen would otherwise be counted twice.

How do I find the probability of three events?

For independent events, multiply: P(A and B and C) = P(A) × P(B) × P(C), so 0.5, 0.4 and 0.3 give 0.06. The chance that at least one happens is 1 minus the chance that none does: 1 − (1 − P(A))(1 − P(B))(1 − P(C)) = 0.79. Exactly one or exactly two add up the products for each combination (0.44 and 0.29 here).

What does "independent" mean, and what if my events are not independent?

Events are independent when one happening does not change the chance of the other, like two coin tosses or two dice. The two-event mode assumes independence. If one event affects the other (drawing cards without putting them back, a test result and a disease), use conditional probability instead: the Bayes mode takes P(B | A) and P(B | not A) directly.

How is the binomial probability calculated?

For n independent trials with the same success probability p, the chance of exactly k successes is C(n, k) × p^k × (1 − p)^(n − k), where C(n, k) = n! ÷ (k!(n − k)!) counts the ways to arrange the successes. Cumulative answers such as "k or fewer" add these terms. Ten fair coin tosses give exactly 5 heads with probability 252 ÷ 1024 ≈ 0.246.

What is the chance of something happening at least once?

It is 1 minus the chance it never happens: 1 − (1 − p)^n. With a 1 in 6 chance per roll, the chance of at least one six in four rolls is 1 − (5/6)^4 ≈ 51.8%, slightly better than even. The binomial mode shows this as "At least one success" whatever k you enter.

Why is P(A | B) so low even with an accurate test?

Because the condition is rare, false positives from the large healthy group outnumber the true positives. With 5% prevalence, 90% sensitivity and a 20% false positive rate, out of 10,000 people 450 are true positives and 1,900 false positives, so only 450 ÷ 2,350 ≈ 19% of positive results are real. Raising the prior or lowering the false positive rate changes the answer far more than improving sensitivity.

How does the normal distribution mode work?

Each value is converted to a z-score, z = (x − μ) ÷ σ, the number of standard deviations from the mean. The area to the left of z is read from the standard normal cumulative distribution Φ(z), calculated to about 15 digits. The area between two values is Φ(z₂) − Φ(z₁). For μ = 100 and σ = 15, the values 85 and 115 are z = −1 and 1, and 68.27% of the distribution lies between them.

Should I enter probabilities as decimals or percentages?

As decimals from 0 to 1: 0.5 for 50%, 0.05 for 5%, 0.16667 for one in six. The results are shown both ways. A probability above 1 or below 0 is not possible, and the calculator rejects it.

Can a probability be exactly 0 or 1?

Yes: 0 means the event cannot happen and 1 means it is certain. They are useful edge cases (P(A) = 1 and P(B) = 0 gives P(A or B) = 1 and P(A and B) = 0). In the normal distribution any single exact value has probability 0, which is why the calculator only reports areas below, above or between values.

Included: independent two- and three-event rules (and, or, neither, exactly one or two), binomial probabilities with cumulative tails and the at-least-once rule, Bayes’ theorem for one binary event, and normal distribution areas from z-scores (Φ to about 15 digits).

Left out: dependent events other than through Bayes’ theorem, more than three events, permutations and combinations on their own, Poisson, geometric and other distributions, and continuity corrections.

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.

Spotted a wrong result or a bug? Report a problem

May we count your visits with Invoker Analytics? It keeps a random visitor number in your browser. Your calculator inputs are never sent. Privacy policy