Updated on April 21st, 2026

Binomial Distribution Calculator

Created By Jehan Wadia


Probability Results
P(X = x) 0.24609375
P(X < x) 0.37695313
P(X ≤ x) 0.62304688
P(X > x) 0.37695313
P(X ≥ x) 0.62304688
Distribution Summary Statistics
Mean (μ)
5.0000
Variance (σ²)
2.5000
Std Deviation (σ)
1.5811
Skewness
0.0000
Kurtosis (excess)
−0.2000
Formula Used
P(X = x) = C(n, x) · px · (1 − p)n − x
P(X = 5) = C(10, 5) · 0.55 · 0.55 = 252 · 0.03125 · 0.03125 = 0.24609375
Probability Distribution Chart
Full Probability Distribution Table
x P(X = x) P(X ≤ x) P(X ≥ x)
Input Error

Please correct the highlighted errors before calculating.


Introduction

A binomial distribution tells you the probability of getting a certain number of successes in a fixed number of trials, where each trial has only two outcomes — success or failure. For example, if you flip a coin 10 times, what are the chances you get exactly 7 heads? That's the kind of question a binomial distribution answers.

This Binomial Distribution Calculator makes it easy to find exact and cumulative probabilities without doing the math by hand. Enter the number of trials (n), the probability of success (p), and the number of successes (x) you want to evaluate. You can calculate an exact probability like P(X = x), or switch to cumulative range mode to find the probability that the number of successes falls between two values. The calculator instantly shows results for P(X = x), P(X ≤ x), P(X ≥ x), P(X < x), and P(X > x), along with summary statistics like the mean, variance, standard deviation, skewness, and kurtosis. It also displays the step-by-step formula, a full probability distribution table, and an interactive bar chart so you can see the shape of the distribution at a glance.

How to use our Binomial Distribution Calculator

Enter the details of your binomial experiment below, and this calculator will give you exact and cumulative probabilities, summary statistics, a distribution chart, and a full probability table.

Number of Trials (n): Enter the total number of independent trials in your experiment. This must be a whole number that is zero or greater. For example, if you flip a coin 10 times, enter 10.

Probability of Success (p): Enter the chance that a single trial results in a success. This value must be between 0 and 1. For example, a fair coin has a probability of 0.5 for landing on heads. If you need to convert a percentage to a decimal, simply divide by 100.

Calculation Mode: Choose how you want to calculate your probability. Select "Exact Value — P(X = x)" to find the probability of getting exactly a certain number of successes. Select "Cumulative Range — P(x₁ ≤ X ≤ x₂)" to find the probability that the number of successes falls within a range you define.

Number of Successes (x): This field appears when you choose Exact Value mode. Enter the specific number of successes you want to find the probability for. It must be a whole number between 0 and n. For example, enter 5 if you want to know the chance of getting exactly 5 heads in 10 flips.

Min Successes (x₁) and Max Successes (x₂): These fields appear when you choose Cumulative Range mode. Enter the lowest and highest number of successes for your range. Both must be whole numbers, and x₁ must be less than or equal to x₂, with both values between 0 and n. For example, set x₁ to 3 and x₂ to 7 to find the probability of getting between 3 and 7 successes.

What Is a Binomial Distribution?

A binomial distribution describes the probability of getting a specific number of successes in a fixed number of independent trials, where each trial has only two possible outcomes: success or failure. Think of it like flipping a coin 10 times and asking, "What are the chances I get exactly 6 heads?" Every flip is one trial, heads is a success, and the probability stays the same each time.

The Three Key Inputs

To use the binomial distribution, you need three pieces of information:

  • n (number of trials): How many times you repeat the experiment. For example, rolling a die 20 times means n = 20.
  • p (probability of success): The chance of success on any single trial, expressed as a decimal between 0 and 1. A fair coin has p = 0.5, while rolling a six on a standard die has p = 1/6 ≈ 0.1667.
  • x (number of successes): The specific count of successful outcomes you want to find the probability for.

The Binomial Formula

The probability of getting exactly x successes in n trials is calculated using this formula:

P(X = x) = C(n, x) · px · (1 − p)n − x

Here, C(n, x) is the binomial coefficient, sometimes written as "n choose x." It counts how many different ways you can arrange x successes among n trials — you can calculate this value directly with our combination calculator. The term px accounts for the probability of the successes, and (1 − p)n − x accounts for the probability of the failures. If you need help computing powers, our exponent calculator can assist.

Exact vs. Cumulative Probabilities

Sometimes you need more than just the exact probability. That's where cumulative probabilities come in:

  • P(X = x): The chance of getting exactly x successes.
  • P(X ≤ x): The chance of getting x or fewer successes. This is the cumulative distribution function (CDF).
  • P(X ≥ x): The chance of getting x or more successes.
  • P(x₁ ≤ X ≤ x₂): The chance of getting between x₁ and x₂ successes, inclusive. This is a cumulative range.

Summary Statistics Explained

The binomial distribution also has useful summary numbers that describe its overall shape:

  • Mean (μ = n · p): The average number of successes you would expect over many repetitions of the experiment. For a deeper look at averages and central tendency, see our mean median mode calculator.
  • Variance (σ² = n · p · (1 − p)): A measure of how spread out the results are from the mean.
  • Standard Deviation (σ): The square root of the variance, which puts the spread in the same units as the data. You can explore this concept further with our standard deviation calculator.
  • Skewness: Tells you whether the distribution leans left or right. When p = 0.5, the distribution is perfectly symmetric and skewness equals zero.
  • Kurtosis (excess): Describes how peaked or flat the distribution is compared to a normal distribution.

When to Use the Binomial Distribution

The binomial distribution applies when four conditions are met: (1) you have a fixed number of trials, (2) each trial is independent of the others, (3) each trial has only two outcomes (success or failure), and (4) the probability of success stays the same on every trial. Common real-world examples include quality control testing (how many defective items in a batch), medical studies (how many patients respond to a treatment), survey analysis (how many people answer "yes" — where our sample size calculator can help determine how many respondents you need), and games of chance like dice or card draws with replacement.

If you're working on related statistical problems, you may also find our Z score calculator, p value calculator, confidence interval calculator, and chi square calculator helpful. For counting arrangements where order matters rather than combinations, try the permutation calculator. And when working with the binomial coefficient's underlying factorials, our factorial calculator can save time on large numbers.


Frequently Asked Questions

What is the difference between P(X = x) and P(X ≤ x)?

P(X = x) is the probability of getting exactly x successes. P(X ≤ x) is the probability of getting x or fewer successes. For example, if n = 10 and p = 0.5, P(X = 5) tells you the chance of exactly 5 heads, while P(X ≤ 5) tells you the chance of getting 5 or fewer heads.

Can I use this calculator if my probability is given as a percentage?

Yes, but you need to convert the percentage to a decimal first. Divide your percentage by 100. For example, if the probability of success is 30%, enter 0.3 in the probability field.

What happens if I set the probability (p) to 0 or 1?

If p = 0, every trial fails, so P(X = 0) = 1 and all other probabilities are 0. If p = 1, every trial succeeds, so P(X = n) = 1 and all other probabilities are 0. The calculator handles both of these edge cases correctly.

How large can the number of trials (n) be?

The calculator uses logarithmic math to handle large values of n without overflow errors. You can enter values well into the hundreds. However, very large values (like n = 10,000) may make the distribution table and chart slow to load since every row from 0 to n is displayed.

What does the highlighted row in the distribution table mean?

The highlighted row shows the value or values you asked the calculator to evaluate. In exact mode, the row for your chosen x is highlighted. In cumulative range mode, all rows from x₁ to x₂ are highlighted so you can easily see the range you selected.

What is the complement probability shown in range mode?

The complement is the probability that the number of successes falls outside your chosen range. It equals 1 minus the range probability. So if P(3 ≤ X ≤ 7) = 0.89, the complement P(X < 3) + P(X > 7) = 0.11.

Why does my skewness show as 0?

Skewness is 0 when the probability of success (p) equals 0.5. This means the distribution is perfectly symmetric — the left side mirrors the right side. When p is less than 0.5, skewness is positive (the distribution leans left), and when p is greater than 0.5, skewness is negative (the distribution leans right).

What does negative excess kurtosis mean?

Negative excess kurtosis means the distribution is flatter and has lighter tails than a normal distribution. The binomial distribution almost always has negative excess kurtosis. The closer p is to 0.5 and the smaller n is, the more negative it tends to be.

Can I use this calculator for sampling without replacement?

No. The binomial distribution requires that each trial is independent and the probability stays the same. If you are sampling without replacement, the probability changes after each draw. In that case, you would need a hypergeometric distribution instead.

What does C(n, x) mean in the formula?

C(n, x) stands for "n choose x" and is called the binomial coefficient. It counts the number of ways to pick x successes out of n trials. The formula is C(n, x) = n! / (x! · (n − x)!), where "!" means factorial.

How do I find P(X > x) using this calculator?

In exact mode, the calculator automatically shows P(X > x) along with the other results. It equals 1 minus P(X ≤ x). So you do not need to calculate it separately — just enter your values and read the result from the probability results section.

Why do my probabilities not add up to exactly 1 in the table?

This is due to floating-point rounding. Computers store numbers with limited precision, so tiny rounding differences can appear. The total will be extremely close to 1 (like 0.99999999 or 1.00000001). The calculator fixes the final CDF value to exactly 1.0 to keep results accurate.