Loading…

Combination Calculator

Math Probability • Combinatorics and Counting Techniques

View all topics

Combination Calculator – nCr (Binomial Coefficient) With Steps (Free)

Compute combinations (selections where order doesn’t matter): \(C(n,r)=\dfrac{n!}{r!(n-r)!}\). Use symmetry: \(C(n,r)=C(n,n-r)\).

Tip: Press Play after calculating to animate selecting \(r\) items from \(n\) and building the product form. Drag to pan and wheel to zoom the canvas.

Inputs

Accepted expressions: 1e-3, pi, e, sqrt(2), sin(), cos(), tan(), ln(), log(), abs(). Use * for multiplication. Inputs must evaluate to integers with \(n\ge0\), \(0\le r \le n\).

Output settings
For very large \(n\), the tool shows scientific notation using log-factorials and reports the digit count.
Animation
After a successful calculation, press Play to animate selecting items and building the product form \( \prod_{i=1}^{k}\frac{n-k+i}{i} \), where \(k=\min(r,n-r)\).
Ready
Interactive view — selection + product builder

Pan/zoom helps when \(n\) is large. The selection view caps at a readable number of dots, but computation uses the full \(n\).

Rate this calculator

0.0 /5 (0 ratings)
Be the first to rate.
Your rating
You can update your rating any time.

Frequently Asked Questions

What is a combination?

A combination counts selections where order does not matter. It is the number of ways to choose r items from n, written C(n,r) or (n choose r).

Why does C(n,r) equal n!/(r!(n-r)!)?

There are n!/(n-r)! ordered arrangements of r items, and each unordered set has r! orders, so dividing by r! removes the overcount.

What does symmetry C(n,r)=C(n,n-r) mean?

Choosing r items to include is equivalent to choosing n−r items to exclude, so both counts are the same. Using k=min(r,n-r) also speeds computation.

What if n and r are very large?

The calculator uses log-factorials to compute a scientific-notation approximation and a digit estimate. Exact integers are shown only when the digit count is manageable.