Binomial Probability Calculator
Find the exact, at-least, and at-most probabilities for a fixed number of successes across repeated independent trials, plus the expected value and standard deviation.
- P(exactly 5 successes)
- 24.6094%
- P(at least 5 successes)
- 62.3047%
- P(at most 5 successes)
- 62.3047%
- Expected number of successes
- 5
- Standard deviation
- 1.581
How it works
The binomial distribution gives the probability of getting exactly k successes in n independent trials that each succeed with the same probability p: P(X = k) = C(n,k) × pᵏ × (1−p)ⁿ⁻ᵏ, where C(n,k) is the number of ways to choose which k of the n trials succeed. This calculator evaluates that formula in log space (summing log-factorials rather than multiplying raw factorials) so it stays numerically accurate even for a large number of trials, rather than overflowing.
"At least k" and "at most k" sum that exact-probability formula across every outcome from k to n, or from 0 to k respectively — the standard cumulative binomial probability. The expected number of successes is n × p, and the standard deviation is √(n × p × (1−p)), both closed-form properties of the distribution rather than separate calculations.
This applies to any fixed-probability repeated trial with only two outcomes per trial — coin flips, pass/fail quality checks, free-throw attempts — as long as each trial is independent and shares the same success probability. It's a different question from a dice-sum calculator, which convolves multiple dice faces rather than counting successes across repeated identical trials.
FAQ
What counts as a valid 'trial' for this calculator?
Any repeated event with exactly two outcomes (success/failure) where every trial has the same success probability and trials don't influence each other — like independent coin flips or manufacturing units off the same production line. If the probability changes trial to trial, or trials aren't independent, the binomial model no longer applies exactly.
Why do the exact and at-least/at-most probabilities use log-space math internally?
For a large number of trials, C(n,k) and pᵏ can individually become far too large or far too small for standard floating-point numbers to represent, even though the final probability is a normal, well-behaved value. Working in log space avoids that overflow/underflow before converting back to a plain probability at the end.
Related calculators
- Percentage Calculator
- Quadratic Equation Solver
- GCD & LCM Calculator
- Circle Area & Circumference Calculator
- Right Triangle Calculator (Pythagorean Theorem)
- Ratio Simplifier
- Exponent & Root Calculator
- Oblique Triangle Solver (Law of Cosines)
- Distance, Midpoint & Slope Calculator
- Permutations & Combinations Calculator (nPr, nCr)
- Arithmetic & Geometric Sequence Calculator
- Regular Polygon Calculator
- Z-Score & Percentile Calculator
- Cubic Equation Solver
- Prime Factorization Calculator
- System of Linear Equations Solver (2 Equations)
- Half-Life Decay Calculator
- Vector Calculator (Dot Product, Cross Product, Angle)
- Ohm's Law Calculator
- Projectile Motion Calculator
- Matrix Determinant & Inverse Calculator (2x2 / 3x3)
- Ideal Gas Law Calculator (PV = nRT)
- Snell's Law Calculator (Refraction Angle)
- Wire Resistance Calculator
- Clock Angle Calculator
- Pythagorean Means Calculator (AM, GM, HM)
- Number Base Converter (Decimal to Binary, Octal, Hex)
- Dice Probability Calculator
- Pythagorean Triple Generator
- Torque Calculator
- Law of Sines Triangle Solver
- Modular Exponentiation Calculator
- Simple Pendulum Period Calculator
- Kinetic Energy Calculator
- Complex Number Calculator
- Circular Sector & Arc Length Calculator
- System of 3 Linear Equations Solver
- Reynolds Number Calculator
- Coulomb's Law Calculator
- Speed of Sound in Air Calculator
- Thin Lens Equation Calculator
- Centripetal Force Calculator
- Resistors in Series and Parallel Calculator
- RC Circuit Time Constant Calculator
- Escape Velocity Calculator
- Doppler Effect Calculator
- Birthday Paradox Calculator
- Ellipse Area, Circumference & Eccentricity Calculator
- Hyperbola Calculator
- Hooke's Law Spring Calculator
- Molarity (Molar Concentration) Calculator
- Momentum & Impulse Calculator
- Kepler's Third Law Orbital Period Calculator
- Triangle Area from Coordinates Calculator
- Beer-Lambert Law Absorbance Calculator
- LC Circuit Resonant Frequency Calculator