Skip to main content

Enter values

Integers only, with 0 ≤ k ≤ n.

Show:

Binomial probability (optional):

Chips prefill fields; click Calculate to see visuals.

Result:

No results yet. Enter inputs and click Calculate.

How this calculator works

  • We compute C(n,k) exactly using a reduced product with per-step GCD cancellations (no giant factorials).
  • Magnitude is shown as log₁₀ C and scientific notation if very large.
  • If enabled, we also compute P(X=k) = C(n,k)p^k(1−p)^{n−k} for the binomial distribution.

Formula & Equation Used

Binomial coefficient (definition): ( n k ) = n! k!(nk)!

Multiplicative form: ( n k ) = (nk+i) / i ,i=1k

Binomial probability (optional): P(X=k) = ( n k ) pk (1p) nk

Example Problems & Step-by-Step Solutions

Example 1 — Poker hands: C(52, 5)

Using the reduced product with cancellations gives the exact integer: 2,598,960.

Example 2 — Symmetry: C(10, 3) = C(10, 7)

Compute the shorter side (k = min(k, n−k) = 3) for speed; result: 120.

Example 3 — Binomial probability with p = 0.5

For n = 30, k = 15, p = 0.5, we get P(X=15) ≈ 0.144 (via log-space).

Frequently Asked Questions

Q: How large can n be?

This tool computes exact integers with BigInt and is comfortable up to n≈500 (often beyond) thanks to GCD reductions.

Q: Why not use factorials directly?

Factorials explode in size. The reduced product with cancellations keeps numbers manageable and exact.

Q: Is the result rounded?

No. The main result is an exact integer. For readability, we also show scientific notation and log₁₀ magnitude.

Combinatorics
10. Combinatorics & Probability
4 problems
Topic
Callie
Factorials
10. Combinatorics & Probability
5 problems
Topic
Justin
10. Combinatorics & Probability
3 topics 5 problems
Chapter
Justin
Factorials
21. Combinatorics and Probability
3 problems
Topic
Combinatorics
21. Combinatorics and Probability
5 problems
Topic
21. Combinatorics and Probability
3 topics 5 problems
Chapter
Fundamental Counting Principle
4. Probability
6 problems
Topic
Ernest
Counting
4. Probability
6 problems
Topic
Ernest
Binomial Distribution
5. Binomial Distribution & Discrete Random Variables
7 problems
Topic
Ernest
Hypergeometric Distribution
5. Binomial Distribution & Discrete Random Variables
5 problems
Topic
Laura
4. Probability - Part 1 of 3
3 topics 9 problems
Chapter
Ernest
4. Probability - Part 2 of 3
4 topics 12 problems
Chapter
Ernest
4. Probability - Part 3 of 3
2 topics 6 problems
Chapter
Ally
5. Binomial Distribution & Discrete Random Variables
4 topics 12 problems
Chapter
Ernest
Review of Factorials
14. Sequences & Series
5 problems
Topic
Ernest
14. Sequences & Series
4 topics 12 problems
Chapter
Ernest
14. Sequences & Series
3 topics 9 problems
Chapter
Ernest
Counting
4. Probability
10 problems
Topic
Ernest
Fundamental Counting Principle
4. Probability
10 problems
Topic
Ernest
Binomial Distribution
5. Binomial Distribution & Discrete Random Variables
10 problems
Topic
Ernest
Hypergeometric Distribution
5. Binomial Distribution & Discrete Random Variables
Topic
4. Probability
9 topics 14 problems
Chapter
Ernest
5. Binomial Distribution & Discrete Random Variables - Part 1 of 2
3 topics 15 problems
Chapter
Ernest
5. Binomial Distribution & Discrete Random Variables - Part 2 of 2
1 topic
Chapter
Back to all calculatorsAll calculators