---
slug: binomial-distribution-calculator
title: "Binomial Distribution Calculator"
category: math
updated: 2026-11-19
canonical: https://calcseed.com/c/math/binomial-distribution-calculator/
html: /c/math/binomial-distribution-calculator/
---

# Binomial Distribution Calculator

Compute the probability of exactly k successes in n binomial trials.

## Quick answer

**Quick answer:** with the default inputs (10, 3, 0.5), the probability is **0.12**. At these inputs: mean = **5**, variance = **2.5**. Change any input to update the result.

## Default calculation

Values computed by this calculator at exactly the default inputs listed below.

### Inputs (defaults)

| Input | Value | Unit |
| --- | --- | --- |
| n (trials) | 10 |  |
| k (successes) | 3 |  |
| p (probability) | 0.5 |  |

### Outputs at these defaults

| Output | Value | Unit |
| --- | --- | --- |
| Probability | 0.117188 |  |
| Mean | 5 |  |
| Variance | 2.5 |  |

## Formula

```text
P(X = k) = C(n, k) × p^k × (1 − p)^n − k
```

## Inputs

| Variable | Type | Unit | Default |
| --- | --- | --- | --- |
| n (trials) | number |  | 10 |
| k (successes) | number |  | 3 |
| p (probability) | number |  | 0.5 |

## Outputs

| Result | Format |
| --- | --- |
| Probability | primary |
| P(X = k) | number |
| Mean | number |
| Variance | number |

## How it works

### What this calculator does

The binomial distribution gives the probability of exactly k successes in n independent trials when each trial succeeds with the same probability p. Enter n = 10, k = 3 and p = 0.5 — the defaults — and it returns P(X = 3) ≈ 0.1172, an 11.72% chance of exactly 3 heads in 10 fair coin flips. It also reports the distribution&rsquo;s mean of 5 and variance of 2.5, which summarize what to expect across many repetitions.

### How the formula works

The formula has three parts. C(n, k) counts the number of distinct arrangements of k successes among n trials. p^k is the probability that the k successes occur, and (1 − p)^n − k is the probability that the remaining n − k trials fail. Multiplying them works because the trials are independent: each of the C(n, k) arrangements carries the same probability, and the arrangements are disjoint, so their probabilities add up to exactly this product.

#### Computing C(n, k) by hand

The binomial coefficient C(n, k) = n! ÷ (k!(n − k)!) can be built without factorials using a running product: C(10, 3) = (10 ÷ 1) × (9 ÷ 2) × (8 ÷ 3) = 10 × 4.5 × 2.667 = 120. Symmetry also helps: C(n, k) = C(n, n − k), so C(10, 7) equals C(10, 3) = 120, which is why the table below rises and falls symmetrically around the middle.

### Worked example at the defaults

n = 10 trials, k = 3 successes, p = 0.5. Step 1: C(10, 3) = 120 arrangements. Step 2: p^3 = 0.5^3 = 0.125. Step 3: (1 − p)^7 = 0.5^7 = 0.0078125. Step 4: multiply — 120 × 0.125 = 15, and 15 × 0.0078125 = 0.1171875. The calculator reports 0.1172, so exactly 3 heads in 10 flips has about an 11.72% chance. Sanity check: the two powers multiply to 0.5^10 = 0.000977, the probability of one specific outcome pattern, and 120 such patterns share it.

The same inputs give the distribution&rsquo;s center and spread directly: mean = n × p = 10 × 0.5 = 5 expected successes, and variance = n × p × (1 − p) = 10 × 0.5 × 0.5 = 2.5, so the standard deviation is &radic;2.5 ≈ 1.58. Across many repeats of 10 flips you expect around 5 heads, typically within about 1.6 of that figure.

### The whole distribution for 10 fair flips

| k (heads) | P(X = k) | As a percent |
| --- | --- | --- |
| 0 | 0.000977 | 0.10% |
| 1 | 0.009766 | 0.98% |
| 2 | 0.043945 | 4.39% |
| 3 | 0.117188 | 11.72% |
| 4 | 0.205078 | 20.51% |
| 5 | 0.246094 | 24.61% |
| 7 | 0.117188 | 11.72% |
| 10 | 0.000977 | 0.10% |

Every row uses the same formula with a different k, and the probabilities are symmetric because p = 0.5: P(X = 3) equals P(X = 7), and P(X = 0) equals P(X = 10). The peak sits at the mean, k = 5, whose 24.61% is about twice the default k = 3 probability. For skewed cases the peak shifts toward n × p — with p = 0.2, the most likely outcome of 10 trials is k = 2, not 5.

### P(X = k) versus P(X ≤ k)

This calculator answers the exactly question, which is one of several questions exams ask about the same distribution. At-least questions need a sum: P(X &ge; 4) for the defaults equals 1 − P(0) − P(1) − P(2) − P(3) ≈ 1 − 0.171875 = 0.828125, about 82.8%. Between questions add the individual probabilities over the range. Mixing up exactly with at-least is the most common reading error on binomial problems, so check which phrase the question uses before computing anything.

### Common mistakes

Binomial errors cluster around a few identifiable slips, most of which the calculator&rsquo;s three outputs expose immediately.

- Forgetting the failures: using p^k alone ignores the (1 − p)^n − k factor and overstates the chance of rare successes.
- Counting arrangements twice: multiplying by n! instead of C(n, k) inflates the answer by a factor of k!(n − k)!.
- Dependent trials: drawing cards without replacement breaks independence, so the binomial model no longer applies.
- k beyond n: P(X = 12) in 10 trials is 0, not an error.
- Changing p mid-problem: the formula requires one constant p across all n trials.

#### When the binomial model applies

Four conditions must hold: a fixed number of trials n, two outcomes per trial, constant probability p, and independence between trials. Coin flips, defect sampling from a large lot, and click-through on many independent visitors all qualify. A warehouse audit checking 50 items from a batch of 10,000 with a 4% defect rate has n = 50, p = 0.04, an expected 2 defective items and variance 50 × 0.04 × 0.96 = 1.92 — the same arithmetic as the coin example, only the labels change.

### Where you will meet it in 2026

Binomial questions dominate introductory statistics courses and data-analysis interviews: pass/fail testing, A/B experiments and quality sampling all reduce to this model. In an A/B test with 10 impressions and a 20% conversion rate, P(X = 3) = C(10, 3) × 0.2^3 × 0.8^7 = 120 × 0.008 × 0.2097 ≈ 0.2013, so landing exactly 3 conversions is roughly a 20% event. The same model sizes acceptance sampling plans and backs the normal approximation used for large n, where the mean of 5 and standard deviation of 1.58 become the sketch of a bell curve.

## FAQ

### What is the probability of exactly 3 heads in 10 flips?

C(10, 3) × 0.5^10 = 120 × 0.000977 ≈ 0.1172, about an 11.72% chance. This is the calculator&rsquo;s default case.

### What is the mean of a binomial distribution?

The mean is n × p, the expected number of successes. For 10 trials at p = 0.5 the mean is 5; at p = 0.2 it would be 2.

### What is the variance and standard deviation?

Variance is n × p × (1 − p), which is 10 × 0.5 × 0.5 = 2.5 at the defaults, giving a standard deviation of about 1.58.

### What if p is 0 or 1?

Every trial fails or succeeds with certainty, so the distribution concentrates on one outcome: P(X = 0) = 1 when p = 0, and P(X = n) = 1 when p = 1.

### What if k is greater than n?

The probability is 0, because you cannot have more successes than trials. The calculator handles this case rather than returning a nonsense number.

### How do I find the probability of at least k successes?

Sum P(X = j) for j from k to n, or subtract the probabilities below k from 1. For the defaults, P(X &ge; 4) ≈ 1 − 0.172 = 0.828.

### Why is the distribution symmetric when p = 0.5?

Because success and failure are equally likely, P(X = k) equals P(X = n − k): exactly 3 heads has the same 11.72% probability as exactly 7 heads. The symmetry breaks as soon as p moves away from 0.5.

### When can I approximate the binomial with a normal curve?

When n is large and p is near 0.5 — a common rule is that n × p and n × (1 − p) both exceed 10. Then use the mean n × p and the standard deviation &radic;(n p (1 − p)), here 5 and 1.58.

## Method and sources

Methodology: Results follow exact mathematical definitions; the arithmetic is deterministic and can be verified by hand from the steps shown.

Last updated: 2026-11-19.
- Binomial probability mass function P(X=k) = C(n,k) p^k (1-p)^(n-k).
