Binomial Quantile Calculator
The smallest success count whose binomial probability reaches the level you set, for n trials and success probability p.
What this page computes
Returns the smallest integer k with P(X ≤ k) ≥ level for a binomial distribution: the success count that covers the stated probability.
How to use it
Type the Trials n, Success probability p, Probability level and press Run. n ≥ 1 is the number of independent trials and 0 < p < 1 the success probability on each. The answer is an integer k in 0 … n. With n = 10, p = 0.2, a 90% success count, the page prints smallest k with P(X ≤ k) ≥ 0.9 is 4.
Running it
The CDF is I_{1−p}(n − k, k + 1), the regularized incomplete beta. The smallest k is found by bisection over 0 … n, so no table and no simulation is involved. Every figure is computed in this browser tab: nothing is uploaded and nothing is stored.
Returns the smallest integer k with P(X ≤ k) ≥ level for a binomial distribution: the success count that covers the stated probability. With n = 10, p = 0.2, a 90% success count, the page prints smallest k with P(X ≤ k) ≥ 0.9 is 4.
The CDF is I_{1−p}(n − k, k + 1), the regularized incomplete beta. The smallest k is found by bisection over 0 … n, so no table and no simulation is involved. The printed result is accurate to exact integer answer, checked against the incomplete-beta CDF; no table is read and nothing is simulated.
How to use this binomial distribution calculator
Type each value below and press Run. The page prints the quantile and the parameter line it used, so the answer can be checked against the formula rather than taken on trust.
The inputs this page reads are Trials n (whole number, 1 to 100000); Success probability p (strictly between 0 and 1); Probability level (strictly between 0 and 1).
The parameterisation
n ≥ 1 is the number of independent trials and 0 < p < 1 the success probability on each. The answer is an integer k in 0 … n.
The numeric method
The CDF is I_{1−p}(n − k, k + 1), the regularized incomplete beta. The smallest k is found by bisection over 0 … n, so no table and no simulation is involved.
The printed value is accurate to exact integer answer, checked against the incomplete-beta CDF. The page returns the quantile only; it does not also print a test statistic, a p-value or a decision.
What to Expect
Best for
- a binomial percentile or acceptance threshold
- the success count that covers a stated share
Not ideal for
- a probability at a given count, which is the binomial probability page
- trials that are not independent
What this tool keeps
- Double-precision arithmetic in your own browser
- The same inputs always produce the same output
Common errors
- Trials must be a whole number from 1 to 100 000, the success probability strictly between 0 and 1, and the level strictly between 0 and 1.
Example use cases
- acceptance sampling thresholds
- teaching discrete quantiles
Sample input
n = 10, p = 0.2, a 90% success count.
Sample output
smallest k with P(X ≤ k) ≥ 0.9 is 4.
Who this is for
- students
- quality engineers
Frequently asked questions
Which parameterisation does this page use?
n ≥ 1 is the number of independent trials and 0 < p < 1 the success probability on each. The answer is an integer k in 0 … n.
How is the result computed?
The CDF is I_{1−p}(n − k, k + 1), the regularized incomplete beta. The smallest k is found by bisection over 0 … n, so no table and no simulation is involved. The result is accurate to exact integer answer, checked against the incomplete-beta CDF.
What inputs are refused?
Trials must be a whole number from 1 to 100 000, the success probability strictly between 0 and 1, and the level strictly between 0 and 1.
Is anything uploaded?
No. Every number is computed by JavaScript in this page from the values you typed; nothing is posted, stored or logged.
Build custom tools for your store
Join the SDK program to create useful ecommerce utilities for your store.