Statistics & Probability

Binomial Probability Calculator

Enter the number of trials n, the number of successes k and the success probability p. Choose exactly k, at most k or at least k, and see the nCk × pᵏ × qⁿ⁻ᵏ working.

Decimal, fraction or percent
Try an example:
Answer P(X = 6) = 0.205078
  • 20.5078%
Step-by-step working 3 steps
  1. 1
    Binomial model
    n = 10 trials, success probability p = 0.5, q = 1 − p = 0.5

    Assumes independent trials with the same chance of success each time.

  2. 2
    Binomial formula
    P(X = k) = nCk × pᵏ × qⁿ⁻ᵏ
    P(X = 6) = 10C6 × 0.5^6 × 0.5^4 = 0.205078
  3. 3
    Mean and standard deviation of X
    μ = np = 5
    σ = √(npq) = 1.581139

How to use the binomial probability calculator

  1. Enter n, k and p.
  2. Choose exactly, at most or at least.
  3. Follow each nCk × pᵏ × qⁿ⁻ᵏ term.
  4. Read the probability, mean and standard deviation.

Binomial formulas

P(X = k) = nCk × pᵏ × (1 − p)ⁿ⁻ᵏ
P(X ≤ k) = Σ P(X = i) for i = 0 to k
Mean μ = np
Standard deviation σ = √(np(1 − p))

Requires a fixed number of independent trials, each with the same success probability.

Worked examples

Each example below is generated by the same calculator you used above, so the working always matches the answer.

6 heads in 10 flips
Answer P(X = 6) = 0.205078
  • 20.5078%
Step-by-step working 3 steps
  1. 1
    Binomial model
    n = 10 trials, success probability p = 0.5, q = 1 − p = 0.5

    Assumes independent trials with the same chance of success each time.

  2. 2
    Binomial formula
    P(X = k) = nCk × pᵏ × qⁿ⁻ᵏ
    P(X = 6) = 10C6 × 0.5^6 × 0.5^4 = 0.205078
  3. 3
    Mean and standard deviation of X
    μ = np = 5
    σ = √(npq) = 1.581139
At most 3 of 10
Answer P(X ≤ 3) = 0.171875
  • 17.1875%
Step-by-step working 3 steps
  1. 1
    Binomial model
    n = 10 trials, success probability p = 0.5, q = 1 − p = 0.5

    Assumes independent trials with the same chance of success each time.

  2. 2
    Add the probabilities for 0 up to k
    P(X = 0) = 10C0 × 0.5^0 × 0.5^10 = 0.000977
    P(X = 1) = 10C1 × 0.5^1 × 0.5^9 = 0.009766
    P(X = 2) = 10C2 × 0.5^2 × 0.5^8 = 0.043945
    P(X = 3) = 10C3 × 0.5^3 × 0.5^7 = 0.117188
    Total = 0.171875
  3. 3
    Mean and standard deviation of X
    μ = np = 5
    σ = √(npq) = 1.581139
At least 8 of 10
Answer P(X ≥ 8) = 0.054688
  • 5.4688%
Step-by-step working 3 steps
  1. 1
    Binomial model
    n = 10 trials, success probability p = 0.5, q = 1 − p = 0.5

    Assumes independent trials with the same chance of success each time.

  2. 2
    Add the probabilities for k up to n
    P(X = 8) = 10C8 × 0.5^8 × 0.5^2 = 0.043945
    P(X = 9) = 10C9 × 0.5^9 × 0.5^1 = 0.009766
    P(X = 10) = 10C10 × 0.5^10 × 0.5^0 = 0.000977
    Total = 0.054688
  3. 3
    Mean and standard deviation of X
    μ = np = 5
    σ = √(npq) = 1.581139
2 sixes in 12 rolls
Answer P(X = 2) = 0.296094
  • 29.6094%
Step-by-step working 3 steps
  1. 1
    Binomial model
    n = 12 trials, success probability p = 0.166667, q = 1 − p = 0.833333

    Assumes independent trials with the same chance of success each time.

  2. 2
    Binomial formula
    P(X = k) = nCk × pᵏ × qⁿ⁻ᵏ
    P(X = 2) = 12C2 × 0.1667^2 × 0.8333^10 = 0.296094
  3. 3
    Mean and standard deviation of X
    μ = np = 2
    σ = √(npq) = 1.290994

Where you will use this

  • Coin, dice and free-throw probability questions
  • AP Statistics binomial-distribution problems
  • Quality-control style “how many defective?” questions

Common mistakes to avoid

Using the binomial for dependent trials

Drawing cards without replacement changes p each time; the binomial does not apply.

Mixing up “at most” and “at least”

At most k includes 0 to k; at least k includes k to n.

Forgetting nCk

There are many orders in which k successes can occur; nCk counts them.

Frequently asked questions

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

C(10,6) × 0.5¹⁰ = 210/1024 ≈ 0.2051, or about 20.5%.

What is the formula for binomial probability?

P(X = k) = nCk × pᵏ × (1 − p)ⁿ⁻ᵏ.

What are the conditions for a binomial distribution?

A fixed number of trials, two outcomes per trial, constant success probability and independent trials.

Related calculators

Browse everything in Statistics & Probability or the full calculator list.