UtilityToolsLab

© 2026 UtilityToolsLab. Built and maintained by the UtilityToolsLab Team.

About·Changelog·Privacy Policy·Terms of Service·Contact
HomeProbability & DistributionsBinomial Distribution

Related Tools

Probability CalcNormal Distribution

Binomial Distribution Calculator

Calculate binomial probabilities for exactly, at most, at least or between k successes in n trials. Includes mean, variance and an interactive PMF bar chart.

You Might Also Like

All Probability & Distributions

Probability Calc

Calculate P(E), complement, odds ratio and log-odds from any event count and sample space. Shows fraction, decimal, and binomial trial stats instantly.

Normal Distribution

Compute z-score, CDF, PDF and tail probabilities for any normal distribution. Enter mean, standard deviation and a query value to get instant results.

Wei/ETH Converter

Convert between all 10 Ethereum denominations — Wei, Gwei, Szabo, Finney, ETH and more — with BigInt precision and instant copy for every result.

Gas Fee Calculator

How much will an Ethereum transaction cost? Enter gas units and fees to get the cost in Gwei, ETH and USD, in EIP-1559 or legacy mode, with 6 presets.

Flip a fair coin ten times. How likely is it to land heads exactly six times? What about at least eight? Guessing on a 20-question quiz with four options each, what are the odds of passing by luck? These are binomial questions. Each has a fixed number of independent tries, each try either succeeds or fails, and the chance of success stays the same every time.

Enter the number of trials n, the probability of success p and the count you care about. Then choose the question: exactly, at most, fewer than, at least, more than, or between two values. You get the probability as a decimal and a percentage, the chance of the opposite outcome, the mean, standard deviation and most likely count. A bar chart highlights exactly which outcomes were added up. p can be typed as 0.25, 25% or 1/4.

Worked Example: Six Heads in Ten Coin Flips

The page opens with n = 10, p = 0.5 and Exactly k with k = 6:

  • P(X = 6) = C(10, 6) × 0.5⁶ × 0.5⁴ = 210 ÷ 1,024 = 0.205078, which is 20.508%, about 1 in 4.9.
  • The opposite outcome (any count other than 6) has probability 0.794922.
  • The mean is np = 5, the variance np(1 − p) = 2.5, the standard deviation 1.58114, and the most likely count is 5.
  • Press Load Sample for a quiz guessed at random: at least 10 of 20 right with p = 0.25 has probability 0.0138644, about 1 in 72.1. Later samples cover defects in a batch, free throws between 8 and 10, and at least one six in six rolls (0.665102).

The Formula, Term by Term

  • Each outcome has probability P(X = k) = C(n, k) · pᵏ · (1 − p)ⁿ⁻ᵏ. “At most”, “at least” and “between” add up the terms in their range, the orange bars on the chart.
  • Terms are computed with logarithms, so n can be as large as 100,000 without overflowing. A small tail is added up over its own terms rather than taken as 1 minus everything else, because the subtraction loses the digits that matter. 1,000 fair flips giving at least 900 heads shows as 6.70172 × 10⁻¹⁶², not 0.
  • Checked against exact fractional arithmetic on 400 random cases (n up to 2,000), and every result agreed to nine significant figures or better.

Hover any bar to see that outcome's exact probability. The table under Show lists P(X = k), P(X ≤ k) and P(X ≥ k) for every k in view, with the asked-about rows shaded. For large n, the chart and table centre on the mean, within about five standard deviations, where nearly all the probability lies.

Edge Cases: k Above n, Certain Events and Commas

  • k cannot exceed the number of trials. Asking for 11 successes in 10 trials gives: “k can't be more than n: there are only 10 trials, so at most 10 successes.”
  • With p = 0 or p = 1 the outcome is certain, so the answer is exactly 0 or 1, and the mode is 0 or n.
  • When (n + 1)p is a whole number, two counts tie as most likely. For 9 flips of a fair coin both 4 and 5 are shown.
  • “Fewer than 0” and “more than n” are empty ranges and return 0, not an error.
  • A probability with a decimal comma (0,25) is refused with a message suggesting 0.25, 25% or 1/4, rather than being misread. Counts accept thousands commas such as 1,000.

Probability of

P(X = 6)

0.205078

20.508%

The probability of exactly 6 successes in 10 trials, each succeeding with p = 0.5 — about 1 in 4.9. The opposite outcome has probability 0.794922.

Mean (np)

5

Std deviation

1.58114

Variance

2.5

Most likely k

5

P(X = 0) = 0.0009765630P(X = 1) = 0.009765631P(X = 2) = 0.04394532P(X = 3) = 0.1171883P(X = 4) = 0.2050784P(X = 5) = 0.2460945P(X = 6) = 0.2050786P(X = 7) = 0.1171887P(X = 8) = 0.04394538P(X = 9) = 0.009765639P(X = 10) = 0.00097656310

Orange bars are the outcomes being added up. Hover a bar for its exact probability.

Probability table (k = 0 to 10)