Binomial Calculator with Steps

This binomial with steps calculator works backwards from a probability to find a percentile k, the most likely outcome or the number of trials needed.

Checks on your data

  • Binomial trials must be independent, with the same p each time and a fixed n. If you sample without replacement from a small population, use the hypergeometric distribution. Hypergeometric probability →

Results

Smallest k with P(X ≤ k) ≥ 0.9
16
P(X ≤ 16)
0.936687
P(X ≤ 15)
0.884853
Mean np
12
Binomial probabilities (highlighted bars are k and below)
00.050.10: 0.00000063668101: 0.000010914512: 0.000091214223: 0.00049516334: 0.0019629745: 0.0060571656: 0.015142967: 0.031521978: 0.055726389: 0.0849162910: 0.1128171011: 0.1318641112: 0.1365741213: 0.1260681314: 0.1041991415: 0.07740511516: 0.05183381617: 0.03136161718: 0.01717421819: 0.008522541920: 0.003835142021: 0.001565372122: 0.0005793882223: 0.0001943292324: 0.000058992724
Probability table around the centre
kP(X = k)P(X ≤ k)
00.0000006366810.000000636681
10.00001091450.0000115512
20.00009121420.000102765
30.0004951630.000597928
40.001962970.0025609
50.006057160.00861805
60.01514290.0237609
70.03152190.0552829
80.05572630.111009
90.08491620.195925
100.1128170.308743
110.1318640.440607
120.1365740.577181
130.1260680.703249
140.1041990.807448
150.07740510.884853
160.05183380.936687
170.03136160.968049
180.01717420.985223
190.008522540.993745
200.003835140.997581
210.001565370.999146
220.0005793880.999725
230.0001943290.99992
240.00005899270.999979
Show step-by-step solution
  1. We add P(X = 0), P(X = 1), … until the running total first reaches 0.9.
  2. P(X ≤ 15) = 0.884853 is still below 0.9.
  3. P(X ≤ 16) = 0.936687 reaches it, so k = 16 is the 90th percentile.
Meannp
Variancenp(1−p)
Mode⌊(n+1)p⌋
At least 1 success1 − (1−p)ⁿ

What Is Binomial With Steps?

Most binomial calculators take n, p and k and return a probability. This one runs the other way: give it a target and it finds the k, the mode or the n that meets it.

Choose a percentile search to find the smallest k whose cumulative probability reaches your target. Choose the mode to find the most likely number of successes. Choose find n to get the fewest trials that give at least k successes with a chosen probability.

Every mode shows its steps, a highlighted chart and, where useful, a probability table around the centre.

How to Use the Binomial With Steps Calculator

  1. Choose what to find.
  2. Enter n, p and the target as needed.
  3. Read the answer and each step.
  4. Check the highlighted chart and the table.

Binomial With Steps Formula

Binomial probability

P(X=k)=(nk)pk(1−p)n−kP(X=k)=\binom{n}{k}p^k(1-p)^{n-k}

Mode

⌊(n+1)p⌋\lfloor (n+1)p\rfloor

Binomial With Steps Variables Explained

SymbolMeaningNotes
nNumber of trials
pProbability of success
kNumber of successes
P(X ≤ k)Cumulative probability

Binomial With Steps Worked Example

With n = 40 and p = 0.3, the mean is 12. The mode is ⌊41 × 0.3⌋ = 12. The 90th percentile is the smallest k where P(X ≤ k) reaches 0.9, which is 16. To get at least one success with probability 0.95 when p = 0.3, solve 1 − 0.7ⁿ ≥ 0.95, which gives n = 9.

With the example values loaded in the calculator above, the steps are:

  1. We add P(X = 0), P(X = 1), … until the running total first reaches 0.9.
  2. P(X ≤ 15) = 0.884853 is still below 0.9.
  3. P(X ≤ 16) = 0.936687 reaches it, so k = 16 is the 90th percentile.

Result: Smallest k with P(X ≤ k) ≥ 0.9 = 16.

How to Read These Inverse Results

These modes work backwards from a probability. With n = 40 and p = 0.3 the mean is 12 and the mode is ⌊41 × 0.3⌋ = 12. The 90th percentile is the smallest k with P(X ≤ k) ≥ 0.9, which is 16, because P(X ≤ 15) = 0.885 is still below 0.9.

Because the binomial is discrete, the cumulative probability usually overshoots the target a little, here 0.937 at k = 16. For the "how many trials" mode, the page gives the smallest n that meets the target and the probability at n − 1, which falls just short.

Where Binomial With Steps Is Used

Percentiles

Find the k that 90% or 95% of outcomes fall below.

Most likely outcome

Find the mode of a binomial.

Sample size for a target

Find the fewest trials to reach a chosen chance of at least k successes.

Checking steps

Follow the cumulative sums or the search for n.

Common Binomial With Steps Mistakes to Avoid

  • The percentile is a whole number.
  • If (n + 1)p is a whole number, two values tie for the mode.
  • "At least one success" needs n ≥ ln(1 − target) ÷ ln(1 − p).
  • Trials must be independent with constant p.

Binomial With Steps Terms and Definitions

Percentile (quantile)
The smallest k at which the cumulative probability reaches the target.

Binomial With Steps FAQs

How do you find the most likely binomial outcome?

Take the floor of (n + 1)p. If (n + 1)p is a whole number, both that value and the one below it are equally likely.

How many trials do I need for at least one success?

Solve 1 − (1 − p)ⁿ ≥ target, which gives n ≥ ln(1 − target) ÷ ln(1 − p).

What is the inverse binomial?

It is the k at which the cumulative probability first reaches a chosen level.

Related calculators

Last updated 2026-11-09. See our disclaimer.