Mathematics · Formula

Binomial probability

The probability of exactly k successes in n independent yes/no trials.

Mathematics librarySymbols definedWorked example
Formula
P(X = k) = C(n, k) pk (1 − p)n − k

The probability of exactly k successes in n independent yes/no trials.

What the symbols mean

  • n — the number of trials
  • k — the number of successes
  • p — the success probability per trial

What it means

Each sequence with k successes has probability pᵏ(1−p)ⁿ⁻ᵏ, and C(n, k) counts the arrangements. The model requires fixed n, constant p and independent trials.

Worked example

Example

The chance of exactly 2 heads in 5 fair flips is C(5, 2)/32 = 10/32 = 0.3125.

Related formulas

These relationships often appear alongside the binomial probability in the same problems.

Frequently asked questions

What is the binomial probability formula?

The relationship is P(X = k) = C(n, k) pk (1 − p)n − k. The probability of exactly k successes in n independent yes/no trials.

When should I use the binomial probability formula?

Each sequence with k successes has probability pᵏ(1−p)ⁿ⁻ᵏ, and C(n, k) counts the arrangements. The model requires fixed n, constant p and independent trials.

How do I avoid unit mistakes?

Write each quantity with its unit before substituting, convert to the units the formula expects, and check that the result's unit matches the quantity you are solving for. Angles must be in radians for calculus-based expressions unless the page says degrees.

Sources and standards

The equation form, symbols and expected units on this page are checked against the reference works below.

How these are used: sources and standards.

Reviewed November 2026 · Educational reference. See the disclaimer and methodology.