Binomial Probability

Also known as exactly k successes

P(X=k)=(nk)pk(1−p) n−kP(X = k) = \binom{n}{k} p^{k} (1 - p)^{\,n-k}

Worked example: Exactly 2 heads in 5 tosses → P = 0.3125 — press Try an example to run it live, then adjust anything.

Enter your known values, leave one input blank, and solves for the missing one. Tap a variable’s symbol to see what it means, with a typical value. Try different units for next level excitement!

Here the solver did the work — could you?

The binomial distribution →

Grade 12Grade 12 Math

Test your skills in the Exam Room: new numbers every attempt — free lessons for students, no sign-up, just pure learning.

See your Report Card
Compete with your friends
share your results
Learning zone

Binomial Probability explained

kPnp

Three ideas multiply here: pkp^k for the successes, (1−p)n−k(1-p)^{n-k} for the failures, and the binomial coefficient for the number of orders in which they can occur. Exactly two heads in five fair tosses: C(5,2) × 0.5² × 0.5³ = 10 × 0.03125 = 0.3125. The distribution is Jacob Bernoulli's, worked out before his death in 1705 and published in Ars Conjectandi in 1713 by his nephew Nicolaus, together with the first law of large numbers.

Enter p as a decimal from 0 to 1, or switch that input to %. Three conditions must hold or the answer is meaningless: fixed n, independent trials, and a constant p — sampling without replacement from a small population violates the last two, and that is the hypergeometric distribution's job instead. There is no closed form for n, k or p given the probability, so this calculator solves only for P. And read the question carefully: "exactly k" is one term, while "at least k" means summing several. Three sixes in ten rolls of a fair die: C(10,3) × (1/6)³ × (5/6)⁷ ≈ 0.155.

Binomial Probability formula

P(X=k)=(nk)pk(1−p) n−kP(X = k) = \binom{n}{k} p^{k} (1 - p)^{\,n-k}
Where
  • P(X=k)P(X = k)= Probability of exactly k successes
  • nn= Number of trials
  • kk= Number of successes
  • pp= Probability of success per trial

Missing one of these? Work it out first, then come back