Skip to content

Binomial Distribution Calculator

Type the number of trials, the chance of success and the number of successes to get…

Type the number of trials, the chance of success and the number of successes to get the probability, with every outcome drawn as a bar.

Successes

ExampleP(at least 8)

5.47%

The chance of at least 8 successes in 10 trials, each succeeding with probability 0.5, is 0.0547, about 1 in 18.

Type your own trials and chance, or drag along the bars.

Each bar is one possible number of successes; the highlighted bars add up to the answer. Drag to change k.

Expected successes (np)
5
Standard deviation
1.5811
P(exactly 8)
0.0439
How this works: 9 sources,

How this works

Method

A binomial count is the number of successes in n independent trials that each succeed with the same probability p: heads in coin flips, defective parts in a batch, patients who respond to a treatment. The chance of exactly k successes is C(n, k) · pᵏ · (1 − p)ⁿ⁻ᵏ: the number of ways to place the k successes among the n trials, times the chance of any one such sequence. Full method

How it’s tested

2 worked examples for this page are checked by automated tests before every release: given the inputs, the tool must show the expected answer.

Privacy

On your device. Nothing you enter or open leaves this browser. About privacy labels

Changes

  • First published: live curves with draggable cut-offs, and tests on pasted data (t-tests, ANOVA, chi-square, Fisher’s exact, correlation, regression, A/B), checked against SciPy.

Every change on What’s new

How we make toolsReport a mistake

How the binomial distribution works

A binomial count is the number of successes in n independent trials that each succeed with the same probability p: heads in coin flips, defective parts in a batch, patients who respond to a treatment. The chance of exactly k successes is C(n, k) · pᵏ · (1 − p)ⁿ⁻ᵏ: the number of ways to place the k successes among the n trials, times the chance of any one such sequence.

For 10 flips of a fair coin, exactly 8 heads has C(10, 8) = 45 sequences, each with probability (1/2)¹⁰, so P = 45/1,024 ≈ 0.0439. At least 8 heads adds the cases for 9 and 10: (45 + 10 + 1)/1,024 = 56/1,024 ≈ 0.0547. “At most” and “between” add up the bars the same way.

On average you expect np successes, give or take √(np(1 − p)). For 100 trials at p = 0.3 that is 30 ± 4.58. When np and n(1 − p) are both above about 10, the bars take the shape of a normal curve, which is why polls and quality checks can use z-scores.

P(X = k) = C(n, k) · pᵏ · (1 − p)ⁿ⁻ᵏ · mean np · SD √(np(1 − p))

Ten flips of a fair coin

The probability of exactly, at most and at least k heads in 10 flips of a fair coin.

The probability of exactly, at most and at least k heads in 10 flips of a fair coin.
Heads (k)Exactly kAt most kAt least k
00.0010.0011
10.00980.01070.999
20.04390.05470.9893
30.11720.17190.9453
40.20510.3770.8281
50.24610.6230.623
60.20510.82810.377
70.11720.94530.1719
80.04390.98930.0547
90.00980.9990.0107
Show all 11 rows
100.00110.001

Common questions

When is a situation binomial?

When there is a fixed number of trials, each is a yes or no, the trials don’t affect each other, and the chance of yes is the same every time. Drawing cards without putting them back fails the last test; that is the hypergeometric distribution.

What is the chance of at least one success?

1 minus the chance of none: 1 − (1 − p)ⁿ. Rolling at least one six in four throws of a die is 1 − (5/6)⁴ ≈ 0.518.

Why does “at least 8” include 8?

Because “at least” means 8 or more. For more than 8, ask for at least 9. The highlighted bars on the chart show exactly which counts are included.