Binomial Sum Calculator

Binomial expansion sums, partial sums of Pascal's rows and binomial probability sums.

  1. Enter valuesUse your own inputs or an example
  2. CalculateApply your selected settings
  3. View resultExplore the answer and explanation

Enter the binomial sum

Enter your values below to get started.

Examples:
Type of sum
Power, row number or number of trials.
0 to 1, fractions work: 1/6.
Reset restores the default values.

Tips for this calculator

A full row adds to 2ⁿ; with a = 1 and b = 1 the expansion gives the same 2ⁿ.

With a = 1 and b = −1 the alternating sum is 0 for every n ≥ 1.

For “at least k” set To k₂ = n; for “at most k” set From k₁ = 0.

Type p as a fraction, such as 1/6 for a die.

A binomial sum calculator adds terms built from binomial coefficients C(n, k), the numbers in Pascal's triangle. It handles 3 kinds of sums: the binomial expansion Σ C(n, k)·aⁿ⁻ᵏ·bᵏ = (a + b)ⁿ, partial sums of a Pascal row Σ C(n, k) from k₁ to k₂, and binomial probability sums P(k₁ ≤ X ≤ k₂) for n trials with success probability p.

What is a Binomial Sum?

A binomial sum is a sum whose terms contain binomial coefficients C(n, k) = n!/(k!(n − k)!), the number of ways to choose k items from n. The simplest binomial sum adds a whole row of Pascal's triangle: C(4, 0) + C(4, 1) + C(4, 2) + C(4, 3) + C(4, 4) = 1 + 4 + 6 + 4 + 1 = 16 = 2⁴.

∑k=0n(nk)an−kbk=(a+b)n\sum_{k=0}^{n} \binom{n}{k} a^{n-k} b^{k} = (a + b)^{n}

The triangle carries the name of Blaise Pascal, who studied the triangle in his 1654 Treatise on the Arithmetical Triangle; Chinese mathematician Yang Hui and Persian mathematician Omar Khayyam knew the same triangle centuries earlier.

InteractivePascal's triangle: pick a row and add it

How Does the Binomial Sum Calculator Work?

The binomial sum calculator builds the row C(n, 0), C(n, 1), …, C(n, n) with exact big-integer arithmetic, multiplies each coefficient by its weight and adds the terms in the chosen range. Each coefficient comes from the previous one: C(n, k) = C(n, k − 1)·(n − k + 1)/k, so no factorial is ever computed in full.

InteractiveBuild (a + b)ⁿ term by term
  1. Build the row

    Row n of Pascal's triangle, exact up to n = 10,000 (C(10000, 5000) has 3,009 digits).

  2. Apply the weights

    Expansion: aⁿ⁻ᵏbᵏ. Partial sum: weight 1. Probability: pᵏ(1 − p)ⁿ⁻ᵏ.

  3. Add the range

    Terms from k₁ to k₂ are added; the expansion always adds k = 0 to n.

  4. Check

    The expansion is checked against (a + b)ⁿ and the row against 2ⁿ.

Binomial Sum Formulas

The main binomial sum formula is the binomial theorem, Σ C(n, k)aⁿ⁻ᵏbᵏ = (a + b)ⁿ, and 4 well-known identities follow from it. Each identity below holds for every whole number n ≥ 1.

Binomial Theorem

(a+b)n=∑k=0n(nk)an−kbk(a+b)^n = \sum_{k=0}^{n} \binom{n}{k} a^{n-k} b^{k}

Row Sum and Alternating Sum

∑k=0n(nk)=2n,∑k=0n(−1)k(nk)=0\sum_{k=0}^{n} \binom{n}{k} = 2^{n}, \qquad \sum_{k=0}^{n} (-1)^{k}\binom{n}{k} = 0

Weighted Sum and Sum of Squares

∑k=0nk(nk)=n 2n−1,∑k=0n(nk)2=(2nn)\sum_{k=0}^{n} k\binom{n}{k} = n\,2^{n-1}, \qquad \sum_{k=0}^{n} \binom{n}{k}^{2} = \binom{2n}{n}

Binomial Probability Sum

P(k1≤X≤k2)=∑k=k1k2(nk)pk(1−p)n−kP(k_1 \le X \le k_2) = \sum_{k=k_1}^{k_2} \binom{n}{k} p^{k} (1-p)^{n-k}
InteractiveCheck 5 binomial identities for any n

Types of Binomial Sums

There are 5 common types of binomial sums: full row sums, partial row sums, alternating sums, weighted expansion sums and binomial probability sums. Partial row sums have no closed form, so a calculator adds them term by term.

InteractivePick a range of a Pascal row

Full row sum

Σ C(n, k) for k = 0 to n = 2ⁿ, the number of subsets of an n-element set.

Partial row sum

Σ C(n, k) for k = k₁ to k₂. Example: C(10, 0) + … + C(10, 3) = 176.

Alternating sum

Σ (−1)ᵏ C(n, k) = 0 for n ≥ 1: even-size and odd-size subsets are equal in number.

Expansion sum

Σ C(n, k)aⁿ⁻ᵏbᵏ = (a + b)ⁿ, such as (1 + 2)⁴ = 81.

Probability sum

Σ C(n, k)pᵏ(1 − p)ⁿ⁻ᵏ over a range of k: the cumulative binomial distribution.

How to Calculate a Binomial Sum by Hand

To calculate a binomial sum by hand, write row n of Pascal's triangle, multiply each entry by its weight, and add the entries in the range. The process takes 4 steps. Here is (1 + 2)⁴.

  1. Row 4: 1, 4, 6, 4, 1.
  2. Weights 1⁴⁻ᵏ·2ᵏ: 1, 2, 4, 8, 16.
  3. Terms: 1, 8, 24, 32, 16.
  4. Sum: 1 + 8 + 24 + 32 + 16 = 81 = 3⁴.
InteractiveStep through a binomial sum by hand

    Binomial Sums and the Binomial Distribution

    The cumulative binomial distribution P(X ≤ k) is a binomial sum: the sum of C(n, j)pʲ(1 − p)ⁿ⁻ʲ for j = 0 to k. X counts the successes in n independent trials that each succeed with probability p. Swiss mathematician Jacob Bernoulli described these trials in Ars Conjectandi (1713).

    The distribution has mean np and standard deviation √(np(1 − p)). For 20 fair coin flips the mean is 10 heads and the standard deviation is about 2.24. The full probability sum from k = 0 to n is 1, the binomial theorem with a = 1 − p and b = p.

    In 1654 the gambler Chevalier de Méré asked Blaise Pascal why betting on at least one 6 in 4 rolls of a die won. The binomial sum answers it: P(X ≥ 1) = 1 − (5/6)⁴ ≈ 0.5177, slightly above 50%.

    InteractiveBinomial distribution: shade P(X ≤ k)

    Common Mistakes with Binomial Sums

    • Starting at k = 1: a full row starts at C(n, 0) = 1; leaving it out gives 2ⁿ − 1.
    • Swapping the exponents: the term is C(n, k)aⁿ⁻ᵏbᵏ; the powers of a and b always add to n.
    • Counting rows from 1: the top row 1 of Pascal's triangle is row 0, so row 4 is 1, 4, 6, 4, 1.
    • Mixing “at least” and “more than”: P(X ≥ 3) includes k = 3; P(X > 3) starts at k = 4.
    • Dropping (1 − p)ⁿ⁻ᵏ: each probability term needs both the success and the failure factor.
    InteractiveTrue or false: binomial sums
    1. The sum of row 10 of Pascal's triangle is 1,024.

    2. Σ (−1)ᵏ C(6, k) = 64.

    3. C(10, 3) = C(10, 7).

    4. In (a + b)⁵ the term with b² is 10a³b².

    5. P(X ≥ 1) for 4 rolls of a die (X = number of sixes) is 4/6.

    Score: 0 / 5

    How to Use the Binomial Sum Calculator

    Pick the type of sum, enter n and the values for that type, and press Calculate. The result shows the exact sum or probability, the step-by-step working, a table of every C(n, k) and a bar chart of the row or distribution.

    InteractiveLoad a ready-made binomial sum

    Each button fills the calculator and runs it.

    1. Choose the type

      Expansion, partial row sum or probability sum.

    2. Enter n

      Up to 1,000 for expansions, 10,000 for rows and 100,000 for probabilities.

    3. Enter a and b, or k₁, k₂ and p

      Fractions work: 1/2, 1/6.

    4. Read the chart

      Dark bars mark the terms inside your range.

    Real-Life Applications of Binomial Sums

    Binomial sums count combinations and add up probabilities of repeated yes/no trials. There are 5 common applications:

    • Games of chance: the probability of at least 7 heads in 10 flips is 176/1,024 ≈ 17.2%.
    • Quality control: acceptance sampling plans such as ANSI/ASQ Z1.4 accept a lot when a sample shows at most c defects.
    • Menus and options: the number of ways to pick up to 3 of 8 toppings is 1 + 8 + 28 + 56 = 93.
    • Medicine: the number of responders out of n patients in a trial follows a binomial distribution.
    • Computing: the number of n-bit strings with at most k ones is a partial row sum, used in error-correcting codes.
    InteractiveBinomial sums in real life: pick a scenario

    Binomial Sum Examples

    Common binomial sums and probabilities with their exact values.

    Binomial Sum Examples
    SumTypeValueCalculator
    ∑k=04(4k)2k\sum_{k=0}^{4} \binom{4}{k} 2^{k}Expansion (1 + 2)⁴81
    (2+12)3\left(2 + \tfrac12\right)^{3}Expansion125/8 = 15.625
    ∑k=010(10k)\sum_{k=0}^{10} \binom{10}{k}Full row1,024
    ∑k=03(10k)\sum_{k=0}^{3} \binom{10}{k}Partial row176
    ∑k=010(20k)\sum_{k=0}^{10} \binom{20}{k}Partial row616,666
    P(X≤3), n=10, p=12P(X \le 3),\ n=10,\ p=\tfrac12Probability0.171875
    P(X≥1), n=4, p=16P(X \ge 1),\ n=4,\ p=\tfrac16Probability0.517747

    Popular Binomial Sum Problems

    Try each one, then reveal the answer or solve it in the calculator.

    1. Add every entry of row 8 of Pascal's triangle.

      \sum_{k=0}^{8} \binom{8}{k}
      Show answer256
    2. Find C(12, 0) + C(12, 1) + C(12, 2).

      \sum_{k=0}^{2} \binom{12}{k}
      Show answer79
    3. Find C(7, 3) + C(7, 4) + C(7, 5).

      \sum_{k=3}^{5} \binom{7}{k}
      Show answer91
    4. Expand (2 + 3)⁴ with the binomial theorem and add the terms.

      \sum_{k=0}^{4} \binom{4}{k} 2^{4-k} 3^{k}
      Show answer625
    5. A machine makes 10% defective parts. Find the probability of at most 2 defective parts in a sample of 10.

      P(X \le 2),\ n = 10,\ p = 0.1
      Show answer\approx 0.9298
    6. Find the probability of at least 8 heads in 10 fair coin flips.

      P(X \ge 8),\ n = 10,\ p = 0.5
      Show answer\frac{56}{1024} \approx 0.0547

    Explore More Sum Calculators

    Discover 67 free sum calculators across different categories. Find the right calculator for your needs.

    Browse All 67 Calculators
    Questions and answers

    Frequently Asked Questions

    What is a binomial sum calculator?

    A binomial sum calculator is an online tool that adds terms containing binomial coefficients C(n, k). It returns binomial expansion sums Σ C(n, k)aⁿ⁻ᵏbᵏ, partial sums of Pascal's rows and cumulative binomial probabilities, with steps.

    What is the sum of binomial coefficients?

    The sum of the binomial coefficients in row n is 2ⁿ. For n = 5: 1 + 5 + 10 + 10 + 5 + 1 = 32.

    Is there a formula for a partial sum of binomial coefficients?

    No, a partial sum Σ C(n, k) for k = 0 to m has no simple closed form for general m. The exception is half a row: for even n, the sum to n/2 equals (2ⁿ + C(n, n/2))/2.

    What is the alternating sum of binomial coefficients?

    The alternating sum Σ (−1)ᵏ C(n, k) equals 0 for every n ≥ 1. The binomial theorem gives (1 − 1)ⁿ = 0.

    How do you calculate P(X ≤ k) for a binomial distribution?

    Add C(n, j)pʲ(1 − p)ⁿ⁻ʲ for j = 0 to k. For n = 10, p = 0.5 and k = 3 the sum is 176/1,024 = 0.171875.

    What is C(n, k)?

    C(n, k), read “n choose k”, is the number of ways to choose k items from n without regard to order: C(n, k) = n!/(k!(n − k)!). C(5, 2) = 10.

    Can a or b be negative or a fraction?

    Yes, a and b can be negative or fractions. The calculator keeps fractions exact, so (2 + 1/2)³ returns 125/8.

    What is the sum of the squares of binomial coefficients?

    The sum of the squares of row n is C(2n, n), a case of the Vandermonde identity. For n = 4: 1 + 16 + 36 + 16 + 1 = 70 = C(8, 4).

    Who discovered Pascal's triangle?

    Pascal's triangle was known to Indian, Persian and Chinese mathematicians, including Omar Khayyam and Yang Hui, centuries before Blaise Pascal published his Treatise on the Arithmetical Triangle in 1654.

    Conclusion

    A binomial sum adds terms built from C(n, k), and the binomial sum calculator returns expansion sums, partial Pascal-row sums and binomial probability sums with exact big integers and full steps. Full rows give 2ⁿ, expansions give (a + b)ⁿ, and probability sums give the chance of k₁ to k₂ successes.

    Not sure which mode fits your problem? Answer the questions below.

    InteractiveWhich binomial sum do you need?