1. Home
  2. Calculators
  3. Binomial Distribution Calculator

Binomial Distribution Calculator

For statistics students and quality checkers who count successes in a fixed number of independent trials.

Free, no sign-up. Runs in your browser: nothing is uploaded.

Free workspace included. Docs, spreadsheets, notes and tasks that save on your device. No sign-up.Take a look

How to use Binomial Distribution Calculator

  1. Enter your numbers, or press a sample to see an example.
  2. Read the results and the table under them.
  3. Copy the results or download the table.

Features

  • P(X = k), P(X ≤ k) and P(X ≥ k)
  • Mean, variance and standard deviation of the count
  • A table of the probabilities around the mean
  • Exact binomial coefficients
  • Trials up to 1,000

Supported formats

Input

  • Typed numbers

You get

  • On-screen results
  • Copyable text
  • CSV table

Private by design

Everything you enter is processed by your browser on this device. Nothing is sent to openWorkstand or anyone else, so the Binomial Distribution Calculator is safe for private and work data. After you have used it once while online, it also works without an internet connection. How local processing works

Good to know

  • It handles 1 to 1,000 trials and needs the same chance of success on every independent trial.
  • Sampling without replacement from a small group is not binomial.
  • Everything runs in your browser; nothing you type is sent anywhere.

Guide

Calculating binomial probabilities: exactly k, at most k and at least k successes

The binomial distribution describes how many successes you get in a fixed number of independent tries when each try has the same chance of success. Counting heads in coin tosses, defective parts in a box or correct guesses on a quiz all follow it. This calculator gives the probability of an exact number of successes, the cumulative probabilities on either side, and the mean and spread of the count.

How it works

With n trials, a chance p of success on each and k successes wanted, the probability is the number of ways to choose which k trials succeed, times p multiplied by itself k times, times the chance of failure multiplied by itself n minus k times. The number of ways is the binomial coefficient, which is computed with exact big integers so that nothing is lost for large n. The cumulative values add up the exact probabilities, so at most k adds every term from 0 to k, and at least k adds every term from k to n.

What each line means

The page lists P(X = k), P(X at most k), P(X less than k), P(X at least k) and P(X greater than k). The strict and non-strict versions differ by exactly the probability of k, which is a common source of off-by-one mistakes in homework. The mean is n times p, the variance is n times p times the chance of failure, and the standard deviation is its square root. A table below shows the probability of each count in a window around the mean, so you can see the whole shape without leaving the page.

Edge cases

The number of trials must be a whole number from 1 to 1,000, and k must be a whole number from 0 to n. The chance p can be typed as a decimal between 0 and 1 or as a percent above 1. If p is 0 or 1 the result is certain and the table has a single entry. The model needs the same chance on every try and independent tries: drawing without replacement from a small group violates this, and the hypergeometric distribution is the right model there.

A worked example

For 10 fair coin tosses and k = 3, the chance of exactly 3 heads is 0.1171875, about 11.7187%. The chance of 3 or fewer is 0.171875, of fewer than 3 is 0.0546875, of 3 or more is 0.9453125 and of more than 3 is 0.828125. The mean is 5, the variance 2.5 and the standard deviation 1.58113883008. A second case, 100 fair tosses, gives a 98.24% chance of 60 or fewer heads. A third, a box of 50 parts with a 5% defect rate, gives a 26.11% chance of exactly 2 defects and a 54.05% chance of 2 or fewer, with a mean of 2.5.

Limits

The page gives exact probabilities, so very large n with extreme p can produce numbers that are tiny but correct, shown in scientific notation. It does not give confidence intervals for a proportion or test a hypothesis, and it does not use a normal approximation. The chance on each try must be known; if you only have data, estimate it first.

Checked against the current version of the Binomial Distribution Calculator on .

Frequently asked questions

How do I find the chance of at least one defect in a batch?

Enter the batch size as n, the defect rate as p and 1 as k, then read the at least line. For 50 items at 5%, the chance of at least one defect is 1 minus 0.95 to the 50th power, about 92.3%.

What is the difference between P(X < k) and P(X at most k)?

P(X < k) leaves out the case of exactly k successes, while P(X at most k) includes it. With 10 fair tosses and k = 3, the first is 0.0546875 and the second 0.171875, and the difference is the 0.1171875 chance of exactly 3.

What is the chance of 3 heads in 10 fair coin tosses?

P(X = 3) is 0.1171875, and the chance of 3 or fewer is 0.171875. The expected number of heads is 5.

When does the binomial model apply?

You need a fixed number of trials, each with the same chance of success, and the trials must be independent. Drawing without replacement from a small group breaks this.

Keep working with the result

openWorkstand also includes a free workspace with documents, spreadsheets, tasks, projects and a calendar that save to a folder on your computer.