Probability Calculator

Probability of two independent events: P(A and B), P(A or B), P(not A), exactly one, neither, and the chance of at least one success in n trials.

%
As a percentage. A 1-in-4 chance is 25%.
%
The two events are assumed to be independent: one happening does not change the chance of the other.
How many times you repeat the event, each time independently.

Results

P(A and B): both happen
12.50 %
P(A or B): at least one happens
62.50 %
P(exactly one of A, B)
50.00 %
P(neither A nor B)
37.50 %
P(not A)
50.00 %
P(not B)
75.00 %
P(A at least once in 3 trials)
87.50 %
P(B at least once in 3 trials)
57.8125 %

How it’s calculated

For two independent events, the chance of both happening is the product of their chances. The chance of at least one comes from the addition rule, which subtracts the overlap so it is not counted twice. The chance of something not happening is the complement, 1 minus its probability.

P(A and B) = P(A) × P(B) P(A or B) = P(A) + P(B) − P(A and B) P(not A) = 1 − P(A) P(exactly one) = P(A)(1 − P(B)) + (1 − P(A))P(B) P(neither) = (1 − P(A))(1 − P(B)) P(A at least once in n trials) = 1 − (1 − P(A))^n

Example: P(A) = 50% and P(B) = 25%. Both: 0.5 × 0.25 = 12.5%. Either: 0.5 + 0.25 − 0.125 = 62.5%. Neither: 0.5 × 0.75 = 37.5%. Exactly one: 0.5 × 0.75 + 0.5 × 0.25 = 50%. A at least once in 3 trials: 1 − 0.5³ = 87.5%.

These formulas only hold when the events are independent. For events that influence each other (such as drawing cards without replacement) you need conditional probabilities.

Frequently asked questions

What does independent mean?

Two events are independent if knowing that one happened does not change the chance of the other, like two separate coin flips.

How do I find the chance of at least one success?

Work out the chance that it never happens, (1 − p)^n, and subtract it from 1. For a 10% chance repeated 5 times that is 1 − 0.9^5 = 40.95%.

Why is P(A or B) not just P(A) + P(B)?

Adding them counts the case where both happen twice. Subtracting P(A and B) corrects that. If the events cannot happen together (mutually exclusive), P(A and B) is 0 and the two formulas agree.

Can I enter odds instead of percentages?

Convert first. A 1-in-6 chance is 1 ÷ 6 = 16.67%.

Embed this calculator

Add this free calculator to your own website. Copy the code below into your page’s HTML:

Need this calculator branded, changed or built around your own prices?See custom business solutions →

Sources

Formulas are taken from the free public references above. Results are provided “as is” for informational and educational purposes only. See our disclaimer.

Added · Last updated · How we check our calculators

Spotted a mistake or missing option? Report a problem· Suggest a calculator