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.
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.
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.
Mean = np, standard deviation = √(np(1−p)). For n = 10, p = 0.5: mean 5, SD ≈ 1.58.
Enter it as a decimal between 0 and 1 (50% = 0.5). Values outside that range are rejected rather than guessed at.
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).
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%.
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.