For X, the number of successes in n independent trials with a constant success probability p, the binomial formula is P(X = k) = C(n, k) × pᵏ × (1 − p)ⁿ⁻ᵏ. Here C(n, k) = n! ÷ [k! × (n − k)!]. Cumulative events add the probabilities for all included whole-number counts. The complement is 1 minus the selected event probability, and the expected count is n × p.
The probability field uses percentages: 0.5 means 0.5%, while 50 means 50%. Enter up to 10 decimal places with a period; a percent sign, expressions, and scientific notation are not accepted. Probability input is limited to 64 characters and 15 integer digits before its 0–100 range is checked. Trial and success counts accept digits and correctly grouped thousands commas, up to 16 characters; they must be whole numbers from 0 to 1,000, with success counts no greater than n.
With zero trials, X equals 0 with probability 1. With a 0% success chance, every trial fails; with a 100% chance, every trial succeeds. These cases are evaluated directly, including the usual empty-product convention behind zero-trial probabilities.
Finite decimal inputs are converted to exact fractions. Integer binomial weights are summed before division, so very small probabilities are retained without subtracting rounded decimal values. The 1,000-trial limit keeps this exact calculation bounded in your browser. This calculator does not use a normal approximation or simulation.
Only the final display is rounded, with halfway values rounded up and trailing zeros omitted. ≈ indicates rounding. A value displayed as ≈ 0% can still be positive, and ≈ 100% can still be below certainty. In these cases, additional decimal scientific notation is shown to six significant figures; its own ≈ marker indicates rounding. Changing decimal places does not add a recent-calculation entry.
A mathematically exact calculation still depends on your assumed probability and independence. Drawing items without replacement from a small collection usually changes the chance after each draw and calls for a different model. This calculator does not estimate p from observations, produce confidence intervals, or model dependent outcomes.
Reference: NIST/SEMATECH e-Handbook — Binomial Distribution.