ADVERTISEMENT
Responsive Leaderboard Banner (728 × 90 or Auto)

Binomial Probability Calculator

Compute exact P(X = x), cumulative left-tail P(X ≤ x), and right-tail P(X ≥ x) probabilities, expected mean (μ), and standard deviation (σ) using exact BigInt combinatorics and a live SVG PMF histogram.

Enter Binomial Distribution Parameters (n, x, p) Formula: P(X = x) = nCx · px · (1 − p)n−x • Supports decimal (0–1) or percentage (e.g. 50%)
Integer: 1 to 1,000 trials
Integer: 0 ≤ x ≤ 10
Parsed: p = 0.5000 (50.00%)
ADVERTISEMENT
Responsive In-Content Banner (728 × 90 or 336 × 280)

How the Binomial Distribution Works (BINS Conditions)

The Binomial probability distribution X ~ B(n, p) models the discrete probability of observing exactly x successes across a fixed number of n independent repeated trials, where each trial shares a constant probability of success p. Before applying the binomial formula to real-world data, statisticians verify the four BINS assumptions:

  • B — Binary Outcomes: Every single trial has only two mutually exclusive categories: Success (outcome of interest, probability p) or Failure (probability q = 1 − p). Examples include heads/tails, pass/fail, click/no-click, or defective/acceptable units.
  • I — Independent Trials: Knowing the outcome of one trial provides zero information about any subsequent trial. In finite sampling without replacement, independence holds approximately via the 10% rule when sample size n ≤ 0.10 × Population.
  • N — Number of Trials Fixed: The total count of trials n is fixed in advance before collecting observations (unlike a negative binomial or geometric process that stops only after reaching a target number of successes).
  • S — Success Probability Constant: The single-trial probability p remains completely unchanged from the first trial through the n-th trial.

Binomial PMF & Combinatorial Formula

Exact probability of x successes in n trials

P(X = x) = n! x! · (n − x)! · px(1 − p)n−x

The binomial coefficient nCx counts all distinct arrangements of x successes and n − x failures, while px(1 − p)n−x computes the probability of any single arrangement.

Expected Mean, Variance & Standard Deviation

Location and dispersion of B(n, p)

μ = np   |   σ = √ np(1 − p)

Variance is σ² = n · p · (1 − p). When both n·p ≥ 10 and n(1−p) ≥ 10, the discrete binomial histogram closely resembles a continuous normal bell curve.

Worked Quality-Control Example: Manufacturing Defect Rate

Suppose a microchip assembly line has a historical defect rate of p = 0.02 (2%). An inspector randomly samples a batch of n = 50 chips. What is the probability of finding x = 1 defective chip, and what is the expected average?

Step 1

Count Combinations (50C1): Compute 50! / (1! × 49!) = 50 possible positions for the single defective chip.

Step 2

Evaluate Exact PMF P(X = 1): Multiply 50 × (0.02)1 × (0.98)49 ≈ 50 × 0.02 × 0.371602 = 0.371602 (37.16%).

Step 3

Compute Cumulative Risk P(X ≤ 1): Add P(X = 0) = (0.98)50 = 0.364170 + P(X = 1) = 0.371602 = 0.735772 (73.58%).

Step 4

Calculate Mean & Spread: Mean μ = 50 × 0.02 = 1.00 chip, variance σ² = 0.98, and standard deviation σ = √0.98 = 0.9899 chips.

Exact vs. Cumulative Binomial Probability Notations

Because the binomial distribution is discrete over integers 0, 1, …, n, strict inequalities (<, >) and inclusive inequalities (≤, ≥) differ by the boundary term P(X = x). Use this reference table to match word-problem wording to exact formulas and spreadsheet syntax:

Notation Mathematical Definition Common Word Phrasing Complement Identity Excel / Sheets Formula
P(X = x) nCx · px · (1 − p)n−x "Exactly x successes" 1 − [P(X < x) + P(X > x)] =BINOM.DIST(x, n, p, FALSE)
P(X ≤ x) Σk=0..x P(X = k) "At most x" / "x or fewer" / "No more than x" 1 − P(X > x) =BINOM.DIST(x, n, p, TRUE)
P(X < x) Σk=0..x−1 P(X = k) "Fewer than x" / "Strictly less than x" 1 − P(X ≥ x) =BINOM.DIST(x-1, n, p, TRUE)
P(X ≥ x) Σk=x..n P(X = k) "At least x" / "x or more" / "No fewer than x" 1 − P(X ≤ x − 1) =1 - BINOM.DIST(x-1, n, p, TRUE)
P(X > x) Σk=x+1..n P(X = k) "More than x" / "Exceeding x" / "Strictly greater" 1 − P(X ≤ x) =1 - BINOM.DIST(x, n, p, TRUE)

Frequently Asked Questions

A random variable follows a Binomial model only if all four BINS conditions hold: Binary outcomes (only Success or Failure), Independent trials, fixed Number of trials set before observing results, and constant Success probability p on every single trial.

P(X = x) is the exact point probability of obtaining precisely x successes. P(X ≤ x) is the cumulative left tail ("at most x" successes, summing outcomes 0 to x), whereas P(X ≥ x) is the cumulative right tail ("at least x" successes, summing x to n).

Standard 64-bit floating-point arithmetic overflows n! above 170!, returning NaN when computing n! / (x!(n−x)!). CobaltCalc computes exact BigInt combinations via multiplicative cancellation alongside log-space probability summation (ln(nCk) + k·ln(p) + (n−k)·ln(1−p)) before exponentiating, eliminating overflow up to n = 1,000.

By the De Moivre–Laplace theorem, when both expected successes and failures satisfy the rule of thumb n·p ≥ 10 and n·(1 − p) ≥ 10, the Binomial PMF is closely approximated by a Normal distribution with mean μ = np and standard deviation σ = √(np(1−p)) using a continuity correction of ±0.5.

No—never. All Binomial calculations, BigInt combinatorics, and SVG histogram graphics run 100% locally in your browser memory using client-side JavaScript. Zero user inputs or results are ever transmitted or stored on any server.

Explore Our Free Calculator Series

Fast, privacy-first math & statistical utilities running 100% in your browser.

ADVERTISEMENT
Responsive Bottom Banner (728 × 90 or Auto)