Hypergeometric Distribution Calculator
Find the probability of drawing exactly, at least, or at most a given number of successes from a finite population, sampling without replacement.
- P(exactly 2)
- 27.428%
- P(at least 2)
- 36.7047%
- P(at most 2)
- 90.7233%
- Expected number of successes
- 1.25
- Standard deviation
- 0.9295
How it works
The hypergeometric distribution models drawing a fixed-size sample of n items, without replacement, from a finite population of N items that contains exactly K "successes" — the classic example is dealing a 5-card hand from a 52-card deck and asking how many of the 13 hearts it contains. The exact probability of getting precisely k successes is the combinatorial ratio P(X = k) = C(K, k) × C(N − K, n − k) ÷ C(N, n): choose k successes from the K available, choose the rest of the sample from the N − K non-successes, divided by the number of ways to draw any sample of size n from the whole population.
This is distinct from the site's binomial-probability calculator, whose success probability p stays fixed on every trial because items are effectively replaced (or the population is treated as infinite). Here, every item drawn changes what's left to draw from, so the chance of success shifts as the sample is taken — which is exactly why card hands, lottery draws, and quality-control sampling from a finite lot all need the hypergeometric model rather than the binomial one. The mean number of successes is n × K ÷ N, and the variance, n × (K/N) × ((N − K)/N) × ((N − n)/(N − 1)), includes that extra (N − n)/(N − 1) "finite population correction" factor the binomial distribution doesn't need.
FAQ
How is this different from the Binomial Probability calculator?
Binomial probability assumes each trial has the same fixed success probability p, which is only true if you're sampling with replacement (or from an effectively infinite population). Hypergeometric probability is for sampling without replacement from a finite, countable population — every draw changes the composition of what's left, so the probability isn't fixed trial to trial. As the population size N grows very large relative to the sample size n, the hypergeometric distribution converges to the binomial with p = K/N, since removing items from a huge population barely changes the remaining proportion.
Why does asking for an impossible number of successes return 0% instead of an error?
If the population only contains K successes, or the sample only draws n items, it's mathematically impossible to see more successes than min(n, K) — but that's a perfectly valid question with a real answer (0%), not an invalid input. This calculator returns 0% for exact/at-least probabilities and 100% for "at most" in that case, the same way it would for any other value outside the distribution's support.
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)
- 2x2 Matrix Eigenvalues Calculator
- 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
- Binomial Probability Calculator
- 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
- Musical Note Frequency Calculator
- Dipole & Monopole Antenna Length Calculator
- Decibel (dB) Converter
- Elo Rating Calculator
- Beam Deflection Calculator
- Stellar Parallax Distance Calculator
- pH & pOH Calculator
- Poker Outs Odds Calculator (Texas Hold'em)
- Flywheel Kinetic Energy Calculator
- Voltage Divider Calculator (with Loading Effect)
- Wind Turbine Power Output Calculator
- Compound Gear Train Calculator
- Column Buckling Calculator (Euler's Critical Load)
- Henderson-Hasselbalch Buffer pH Calculator
- Capacitor Energy Storage Calculator
- CNC Speeds & Feeds Calculator
- Battery Runtime Calculator (Peukert's Law)
- Inductor Energy Storage Calculator
- Engine Compression Ratio Calculator
- Terminal Velocity Calculator
- Brewster's Angle Calculator (Polarizing Angle)
- Wheatstone Bridge Calculator
- Wien's Displacement Law Calculator
- Stefan–Boltzmann Law Calculator
- Young's Modulus (Elastic Modulus) Calculator
- Horizontal Cylindrical Tank Volume Calculator
- Solenoid Inductance Calculator
- Force Between Parallel Wires Calculator
- Pulley Belt Length & Speed Ratio Calculator
- 555 Timer Astable Frequency & Duty Cycle Calculator
- Buoyancy Calculator (Archimedes' Principle)
- Hydrostatic Pressure Calculator
- Tank Drain Time Calculator
- Op-Amp Slew Rate / Full-Power Bandwidth Calculator
- RL Circuit Time Constant Calculator
- Reverberation Time Calculator (Sabine Equation)
- Schwarzschild Radius Calculator
- Helmholtz Resonator Frequency Calculator
- Rayleigh Criterion (Diffraction Limit) Calculator
- Spring-Mass Oscillation Period Calculator
- Venturi Meter Flow Rate Calculator
- Darcy-Weisbach Pipe Friction Loss Calculator
- Critical Angle Calculator (Total Internal Reflection)
- Transformer Turns Ratio Calculator
- Area Moment of Inertia Calculator (Second Moment of Area)
- Numerical Aperture Calculator (Optical Fiber)
- Diffraction Grating Calculator
- Confidence Interval Calculator
- Arrhenius Equation Calculator
- Hagen-Poiseuille Flow Rate Calculator
- Shaft Torsion Calculator (Angle of Twist & Shear Stress)
- Series RLC Circuit Resonance Calculator
- Parallel RLC Circuit Resonance Calculator
- Projectile Motion on an Incline Calculator
- Parallel-Plate Capacitor Calculator
- Rocket Equation Calculator (Tsiolkovsky Delta-v)
- Photoelectric Effect Calculator
- Op-Amp Gain Calculator (Inverting & Non-Inverting)
- Stokes' Law Settling Velocity Calculator
- Bolt Preload Calculator (Torque to Clamp Force)
- Gravitational Force Calculator (Newton's Law of Gravitation)
- Banking Angle Calculator (Curve Superelevation)
- Springs in Series and Parallel Calculator
- Freezing Point Depression / Boiling Point Elevation Calculator
- Redshift to Velocity Calculator
- Lensmaker's Equation Calculator
- Combined Gas Law Calculator
- Angular Momentum Conservation Calculator
- LED Series Resistor Calculator
- Sample Size Calculator (Margin of Error)
- Lorentz Force Calculator (Magnetic Force on a Moving Charge)
- Drag Force Calculator (Aerodynamic / Fluid Drag)
- Exposure Value (EV) & Equivalent Exposure Calculator
- Hydraulic Press Calculator (Pascal's Law)
- Clausius-Clapeyron Equation Calculator
- Modular Inverse Calculator
- Specific Heat (Q = mcΔT) Calculator
- Bayes' Theorem Calculator (Diagnostic Test Accuracy)
- Euler's Totient Function Calculator
- Graham's Law of Effusion Calculator
- Wye-Delta (Y-Δ) Transformation Calculator
- Chinese Remainder Theorem Calculator
- Synodic Period Calculator
- Mach Number Calculator
- Cable Sag Calculator
- Linear Thermal Expansion Calculator
- Lever Mechanical Advantage Calculator
- Quartic Equation Solver
- Nernst Equation Calculator
- Linear Diophantine Equation Solver
- Free Fall Calculator (Time & Impact Velocity)
- Projectile Motion From a Height Calculator
- Paper Folding Limit Calculator (Gallivan's Equation)
- 555 Timer Monostable Pulse Width Calculator
- Poisson Distribution Probability Calculator
- Water Hammer Surge Pressure Calculator (Joukowsky Equation)
- Heatsink Thermal Resistance Calculator
- Percent Yield Calculator (Chemistry)
- Wind Turbine Tip Speed Ratio (TSR) Calculator
- Dew Point Calculator
- Torque to Horsepower Calculator