calculator.onl
Categories50

Binomial probability calculator

Calculate exact, cumulative or interval probabilities for a fixed number of independent trials.

A worked example

Toss four fair coins. Compare the chances of exactly one or exactly two heads.

Event probability17.62%Complement probability82.38%Expected successes10Standard deviation2.2361
Number of trials: 0–10000.

Success probability, 0–1.

Event. Check the assumptions and the selected options.

Successes k / lower bound: 0 ≤ k ≤ n.

Updates as you type

Use a dot or comma for decimals. No thousands separators.

YOUR RESULT

Event probability

17.62%

Calculated from your inputs

Expected successes10
Standard deviation2.2361
Complement probability82.38%
The numbers, at a glance

Calculations run in your browser.
UNDERSTAND THE RESULT

A little context. A clearer answer.

↑ Back to calculator

When this calculator is useful

Check the assumptions and the selected options. Every trial must have two outcomes and the same success probability. Bounds include their endpoints. Up to 10000 trials are supported; very tiny tails may underflow to zero. The chart groups large distributions into at most 61 bars; green shows the selected event. For a related calculation, try Test score with negative marking.

What to enter

InputWhat it meansExample value
Number of trialsNumber of trials: 0–10000.20
Success probability, 0–1Success probability, 0–1.0.5
EventEvent. Check the assumptions and the selected options.Exactly k
Successes k / lower boundSuccesses k / lower bound: 0 ≤ k ≤ n.10
Upper boundUpper bound: k ≤ k₂ ≤ n.—

How the calculation works

  1. Enter the values shown below. Number of trials, Success probability, 0–1, Event, Successes k / lower bound, Upper bound.
  2. Check the assumptions and the selected options.
  3. Read the result and compare it with the diagram.
The formulaP(X=k) = n!/[k!(n−k)!] × pᵏ(1−p)ⁿ⁻ᵏ; μ = np; σ = √(np(1−p)); [Inclusive interval]: Σ P(X=k)

A worked example

Change “Successes k / lower bound” from 10 to 5 and keep the other inputs from the worked example. The value for “Event probability” goes from 17.6197% to 1.4786%.

Example you can load

What to enter
Result for this example · Event probability17.62%

This is a fixed example; changing the form above does not change these numbers.

Assumptions & limits

Every trial must have two outcomes and the same success probability. Bounds include their endpoints. Up to 10000 trials are supported; very tiny tails may underflow to zero. The chart groups large distributions into at most 61 bars; green shows the selected event.

Reference ·

Frequently asked questions

How is the result calculated?

Calculate exact, cumulative or interval probabilities for a fixed number of independent trials. P(X=k) = n!/[k!(n−k)!] × pᵏ(1−p)ⁿ⁻ᵏ.

How should I enter the values?

Enter the values shown below. Number of trials, Success probability, 0–1, Event, Successes k / lower bound, Upper bound.

What are the limits?

Every trial must have two outcomes and the same success probability. Bounds include their endpoints. Up to 10000 trials are supported; very tiny tails may underflow to zero. The chart groups large distributions into at most 61 bars; green shows the selected event.