Probability Calculator

Work out the chance of getting k successes in n tries, or the chance of two independent events happening together, either one, or neither.

Runs in your browser; nothing you type is sent anywhere. · Updated

Binomial probability

Use the binomial setting when you repeat the same yes/no trial a fixed number of times, each trial is independent, and the chance of success stays the same: coin flips, free throws, defective parts in a batch, survey answers.

P(exactly k) = C(n, k) × p^k × (1 − p)^(n − k)

where C(n, k) = n! ÷ (k! × (n − k)!) is the number of ways to choose which k trials succeed. The calculator adds up these terms for "at most," "at least," "fewer than" and "more than."

You want Means Calculator row
Exactly 3 X = 3 Exactly
At most 3 0, 1, 2 or 3 ≤
At least 3 3 or more ≥
Fewer than 3 0, 1 or 2 <
More than 3 4 or more >

Mean = n × p and standard deviation = √(n × p × (1 − p)).

Example: 10 coin flips

Heads Probability
0 0.0010
1 0.0098
2 0.0439
3 0.1172
4 0.2051
5 0.2461

The table is symmetric, so 6 heads matches 4, 7 matches 3, and so on. The chance of at least 6 heads is 0.3770.

A 70% free-throw shooter making exactly 8 of 10: 0.2335; at least 8 of 10: 0.3828.

Two independent events

For events that don't affect each other:

Question Formula
Both A and B P(A) × P(B)
A or B (at least one) P(A) + P(B) − P(A) × P(B)
Exactly one P(A)(1 − P(B)) + P(B)(1 − P(A))
Neither (1 − P(A)) × (1 − P(B))
Not A 1 − P(A)

You can type probabilities as decimals (0.25), percents (25%) or fractions (1/4).

"At least one" over several tries is easiest as 1 minus the chance of none: the chance of at least one six in 4 rolls of a die is 1 − (5/6)⁴ ≈ 0.518. For dice odds in detail, see the dice probability tables.

Common mistakes

  • Adding probabilities that can both happen. P(A or B) isn't P(A) + P(B) unless they can't happen together.
  • Multiplying dependent events. Drawing cards without putting them back changes the odds each time; the binomial and the "and" formula assume independence.
  • Mixing up "at least" and "more than." At least 3 includes 3; more than 3 doesn't.

Frequently asked questions

When can I use the normal approximation?

When n × p and n × (1 − p) are both at least about 10, the binomial is close to a normal curve with the same mean and SD. The calculator computes the exact binomial anyway, for up to 10,000 trials. For normal-curve probabilities, see the z-score calculator.

What's the difference between odds and probability?

Probability is chances out of all outcomes (1 in 4 = 0.25); odds compare chances for against chances against (1 to 3).