Binomial Distribution Calculator

Calculate binomial probabilities: exactly k, at most k, at least k, fewer than k or more than k successes in n independent trials with success probability p. See the formula worked out and a live histogram of the distribution.

P(X = 6)
0.2051
P(X = 6)
0.2051
Mean (np)
5
SD √(np(1−p))
1.5811
012345678910
Yellow bars are the outcomes included in P(X = 6). Drag n and p to see the shape change: it gets more bell-shaped as n grows.

Step-by-step working

  1. Binomial formula for exactly k successesP(X = k) = C(n, k) · pᵏ · (1 − p)ⁿ⁻ᵏ
  2. Plug in n = 10, k = 6, p = 0.5C(10, 6) · 0.5^6 · 0.5^4 = 210 × 0.015625 × 0.0625 = 0.2051

Formula P(X = k) = C(n, k) · pᵏ · (1 − p)ⁿ⁻ᵏ mean = np SD = √(np(1 − p))

Ask the tutor about your result

An AI tutor reads your inputs and results above and explains them in plain English. The numbers come from the calculator; the explanation is AI-written, so check it against your notes.

When is a situation binomial?

Check the four conditions (often remembered as BINS): Binary outcomes (success/failure), Independent trials, a fixed Number of trials, and the Same probability of success each time. Ten coin flips, 20 multiple-choice guesses, and defective items in a batch of 50 (if the defect rate is stable) all qualify.

Worked example

A student guesses all 10 questions on a quiz with 4 options each (p = 0.25). P(exactly 3 right) = C(10, 3) × 0.25³ × 0.75⁷ = 120 × 0.015625 × 0.1335 ≈ 0.2503. P(at least 6 right) ≈ 0.0197, so passing by guessing is unlikely.

“At least” problems are often easiest via the complement: P(X ≥ 1) = 1 − P(X = 0).

Frequently asked questions

What is the difference between binompdf and binomcdf?

binompdf gives P(X = k), a single bar. binomcdf gives P(X ≤ k), the running total of bars from 0 to k. For P(X ≥ k) use 1 − binomcdf(n, p, k − 1).

When can I use the normal approximation?

A common rule is when np ≥ 10 and n(1 − p) ≥ 10. This calculator computes the exact binomial, so you don’t need the approximation.