Loona Calculators
Loona Calculators › Maths › Binomial Distribution Calculator

🎯 Binomial Distribution Calculator

Enter the number of trials n, the success probability p, and the count k to get the exact binomial probabilities: exactly k successes, k or fewer, and k or more — with the mean and standard deviation of the distribution.

Quick answer: Binomial: P(X = k) = C(n, k) × p^k × (1−p)^(n−k). For 10 fair coin flips, P(exactly 5 heads) = 252 ÷ 1024 = 24.61%, and P(2 or fewer) = 5.47%.

How to use the Binomial Distribution Calculator

  1. Enter n (trials) and p (probability of success on one trial, 0–1).
  2. Enter k (successes).
  3. Read P(X = k), P(X ≤ k) and P(X ≥ k).
Example: Quality control: 10 items sampled, each with a 0.5 chance in a fair test — exactly 5 successes has probability 24.61%; 8 or more has probability 5.47%.

Frequently Asked Questions

When is the binomial model right?

When there are a fixed number of independent trials, each with two outcomes and the same success probability — coin flips, dice counts, defect counts in a sample, survey yes/no counts.

How is P(X ≥ k) worked out?

As 1 − P(X ≤ k − 1): everything except the cases below k. The calculator sums the exact terms rather than using a normal approximation, so small-n results are exact.

What are the mean and standard deviation?

Mean = np, standard deviation = √(np(1−p)). For n = 10, p = 0.5: mean 5, SD ≈ 1.58.

Can p be entered as a percentage?

Enter it as a decimal between 0 and 1 (50% = 0.5). Values outside that range are rejected rather than guessed at.

Related Calculators

%

Percentage Calculator

Maths

📊

Statistics Calculator

Maths

½

Fraction Calculator

Maths

🧮

Equation Solver

Maths

🔬

Scientific Calculator

Maths

📐

Average Calculator

Maths

🔔

Z-Score Calculator

Maths

🎲

Probability Calculator

Maths

How it works — the formula

P(X = k) = C(n, k) p^k (1−p)^(n−k), computed in log form for stability at large n. Cumulative probabilities are exact sums of these terms. Mean = np; variance = np(1−p).

Worked example

Inputs: n = 10, p = 0.5, k = 5.

Steps: C(10, 5) = 252. P(X = 5) = 252 × 0.5^10 = 252 ÷ 1024 = 0.2461. P(X ≤ 2) = (C(10,0) + C(10,1) + C(10,2)) ÷ 1024 = (1 + 10 + 45) ÷ 1024 = 56 ÷ 1024 = 0.0547. By symmetry P(X ≥ 8) is also 0.0547.

Result: P(X = 5) = 24.61%; P(X ≤ 2) = 5.47%.

Embed this calculator on your website — free

Add this calculator to your own website or blog — it is completely free, needs no sign-up, and always shows the latest version. Copy the code below and paste it into your page where you want the calculator to appear. Keeping the small “Powered by Loona Automation” credit line under the embed helps keep this tool free — but you are free to style or remove it; the tool works either way.