CalcWisp

Probability Calculator

Enter two probabilities to combine them, or a chance per try and a number of tries to get the odds of exactly, at least or at most k successes.

Free, no sign-upRuns in your browserHow we calculate

25%, 0.25, 1/4 or 1:3

A and B are treated as independent

P(A and B), both happen
2.778%
1 in 36 · decimal 0.027778
P(A or B), at least one
30.56%
P(exactly one of A, B)
27.78%
P(neither A nor B)
69.44%
P(A but not B)
13.89%
P(B but not A)
13.89%
P(not A)
83.33%
P(not B)
83.33%
Odds of both (for : against)
1 : 35
How this was calculated
  1. P(A) = 0.16667, P(B) = 0.16667.
  2. Both: P(A) × P(B) = 0.16667 × 0.16667 = 0.027778 (2.778%).
  3. At least one: P(A) + P(B) − P(A and B) = 0.16667 + 0.16667 − 0.027778 = 0.30556.
  4. Neither: (1 − 0.16667) × (1 − 0.16667) = 0.69444, which is 1 − 0.30556.
  5. Exactly one: P(A)(1 − P(B)) + P(B)(1 − P(A)) = 0.13889 + 0.13889 = 0.27778.

Probability Calculator · free on CalcWisp

How this probability calculator works

The probability calculator has two modes. Two events takes the chance of A and the chance of B and returns every combination: both, at least one, exactly one, neither, and each one without the other. Repeated trials takes a chance of success per try, a number of tries and a number of successes, and returns the binomial probabilities: exactly k, at least k, at most k, and the chance of at least one success. You can type a probability as a percentage (25%), a decimal (0.25), a fraction (1/4) or odds in favor (1:3).

The formulas

For independent events, the chance that both happen is the product: P(A and B) = P(A) × P(B). The chance that at least one happens is P(A) + P(B) − P(A and B); you subtract the overlap so it is not counted twice. The chance that neither happens is (1 − P(A)) × (1 − P(B)), which is always 1 minus the "at least one" result.

For repeated independent trials the number of successes follows the binomial distribution: P(X = k) = C(n, k) × pk × (1 − p)n − k, where C(n, k) counts the ways to choose which k of the n trials succeed. "At least one" is easiest from the complement: 1 − (1 − p)n.

Worked examples

Two dice, both sixes. Each die shows a six with probability 1/6. Both: 1/6 × 1/6 = 1/36 = 2.78%. At least one six: 1/6 + 1/6 − 1/36 = 11/36 = 30.56%. Neither: 25/36 = 69.44%. Exactly one: 10/36 = 27.78%.

Ten coin flips. The chance of exactly 5 heads is C(10, 5) / 210 = 252 / 1,024 = 24.61%. Seven or more heads: (120 + 45 + 10 + 1) / 1,024 = 176 / 1,024 = 17.19%.

At least one six in four rolls. 1 − (5/6)4 = 1 − 625/1,296 = 671/1,296 = 51.77%. Four rolls is the fewest that gives better than even odds; thirteen rolls are needed for a 90% chance.

Chance of at least one success

How likely is something to happen at least once if you keep trying? The table applies 1 − (1 − p)n to common per-try chances. A 1% risk taken 100 times is not a sure thing: it happens at least once 63.4% of the time.

Chance per try1 try2 tries5 tries10 tries20 tries50 tries100 tries
1%1.0%2.0%4.9%9.6%18.2%39.5%63.4%
5%5.0%9.8%22.6%40.1%64.2%92.3%99.4%
10%10.0%19.0%41.0%65.1%87.8%99.5%>99.9%
1/6 (one die face)16.7%30.6%59.8%83.8%97.4%>99.9%>99.9%
25%25.0%43.8%76.3%94.4%99.7%>99.9%>99.9%
50%50.0%75.0%96.9%99.9%>99.9%>99.9%>99.9%

Common mistakes

Adding chances across tries. Six rolls of a die do not give a 6/6 = 100% chance of a six; the real figure is 1 − (5/6)6 = 66.51%. Adding only works for events that cannot happen together. Assuming independence that is not there. Drawing cards without putting them back, or two outcomes driven by the same cause (rain and traffic), are dependent; multiplying their probabilities gives the wrong answer. The gambler's fallacy. After five tails in a row the next fair flip is still 50% heads; past independent trials do not change the next one.

Frequently asked questions

How do you calculate the probability of two events both happening?

Multiply them if they are independent: P(A and B) = P(A) × P(B). Two sixes on two dice is 1/6 × 1/6 = 1/36, or 2.78%.

How do you calculate the probability of A or B?

Add the two probabilities and subtract the chance of both: P(A or B) = P(A) + P(B) − P(A and B). At least one six on two dice is 1/6 + 1/6 − 1/36 = 11/36, or 30.56%.

What is the probability of something happening at least once in n tries?

1 − (1 − p)^n. With a 1/6 chance per roll, at least one six in four rolls is 1 − (5/6)^4 = 51.77%.

What is the probability of getting exactly 5 heads in 10 coin flips?

252 / 1,024 = 24.61%. There are C(10, 5) = 252 ways to choose which five flips are heads, and each sequence has probability 1/2^10.

How do I convert odds to a probability?

Odds of 1:3 in favor mean 1 success for every 3 failures, so the probability is 1 / (1 + 3) = 25%. You can type odds like 1:3 straight into the calculator.

Related tools