Statistics & probability

Binomial probability calculator

Find exact and cumulative success probabilities for independent trials.

Binomial probability calculator
Esc to restore

Your inputs

Results update as you type. Larger files run when you press Update result.

Your result

Your result will appear here.

More actions

Your inputs stay in this browser. Nothing is uploaded, and nothing is saved unless you choose “Save result”.

A clear answer. Here’s how.

Models independent trials with a constant success probability. Shows P(X=k), P(X≤k), P(X>k) and P(X≥k), plus the model mean and standard deviation. Supports 0–10,000 trials, including p=0 or p=1. Uses numerical beta functions and log probabilities; extremely small values can underflow to zero.

How this is checked

3 reference checks passed These 3 cases were run when this page was built, on 3 December 2026, and all reproduce within the stated tolerance. The same cases are part of the automated tests that run on every change to Toolmoz. Engine version 1.

See the checks and where each expected answer comes from
  1. Case 1

    Inputs
    Number of trials 10Success probability per trial (0–1) 0.5Success count k 5
    Expected, and what Toolmoz gave
    P(X = k) expected 0.24609375, Toolmoz 0.2460937500000009P(X ≤ k) expected 0.623046875, Toolmoz 0.6230468749999991P(X > k) expected 0.376953125, Toolmoz 0.37695312500000083P(X ≥ k) expected 0.623046875, Toolmoz 0.6230468749999991Model mean expected 5, Toolmoz 5Model standard deviation expected 1.5811388300841898, Toolmoz 1.5811388300841898
    Where the expected answer comes from
    Counting with binomial coefficients: C(10,5) = 252 of 2^10 = 1,024 outcomes; the cumulative counts are (1 + 10 + 45 + 120 + 210 + 252) ÷ 1,024 = 638/1,024; sd = √(10 × 0.5 × 0.5)
    Allowed difference
    ±1e-12 absolute
  2. Case 2

    Inputs
    Number of trials 5Success probability per trial (0–1) 0.3Success count k 2
    Expected, and what Toolmoz gave
    P(X = k) expected 0.3087, Toolmoz 0.3086999999999999P(X ≤ k) expected 0.83692, Toolmoz 0.8369199999999999P(X > k) expected 0.16308, Toolmoz 0.16307999999999997P(X ≥ k) expected 0.47178, Toolmoz 0.47178000000000103Model mean expected 1.5, Toolmoz 1.5Model standard deviation expected 1.02469507659596, Toolmoz 1.0246950765959597
    Where the expected answer comes from
    P(X = 2) = 10 × 0.3² × 0.7³ = 0.3087; P(X = 0) = 0.16807 and P(X = 1) = 5 × 0.3 × 0.7⁴ = 0.36015, so P(X ≤ 2) = 0.83692; sd = √(5 × 0.3 × 0.7)
    Allowed difference
    ±1e-12 absolute
  3. Case 3

    Inputs
    Number of trials 10Success probability per trial (0–1) 0Success count k 0
    Expected, and what Toolmoz gave
    P(X = k) expected 1, Toolmoz 1P(X ≤ k) expected 1, Toolmoz 1P(X > k) expected 0, Toolmoz 0P(X ≥ k) expected 1, Toolmoz 1Model mean expected 0, Toolmoz 0Model standard deviation expected 0, Toolmoz 0
    Where the expected answer comes from
    With a success probability of 0 every trial fails, so X = 0 with certainty
    Allowed difference
    exact

What this shows: the engine reproduces independently worked values for these cases. It does not prove every possible input is right. To test an answer you were given, see how to check a number; to see what is and is not checked across Toolmoz, see the accuracy ledger.

See a worked example

Worked example

A fixed demonstration, separate from the values you enter above.

Number of trials
10
Success probability per trial (0–1)
0.5
Success count k
5

Example result

P(X = k)
0.24609375
P(X ≤ k)
0.623046875
P(X > k)
0.376953125
P(X ≥ k)
0.623046875
Model mean
5
Model standard deviation
1.58113883008