Simple combination: C(5, 2)
How many two-person teams from five distinct people?
- Multiply: 5 × 4 = 20.
- Divide: 20 ÷ 2 = 10.
Result: C(5, 2) = 10
Combinatorics notebook
Count how many ways you can choose k items from n without order. Type non-negative integers and read C(n, k) as an exact whole number.
Built for probability sets, Pascal rows, and quick homework checks when factorials get unwieldy.
Use whole numbers only. The tool updates as you type and keeps exact integer arithmetic for results.
Binomial coefficient
-
This is C(n, k), the number of unordered selections of size k from n distinct items.
Enter both n and k to see C(n, k).
Using this calculator
A binomial coefficient counts how many ways you can choose k items from n distinct items when order does not matter. Standard notations include C(n, k), (n k), and "n choose k" or "n choose r" when the selected count is written as r.
The coefficient answers a combination question: how many different subsets of size k exist inside a set of size n? It does not count arrangements. ABC and CBA are the same combination of three letters even though they are different permutations.
You use binomial coefficients in combinatorics, discrete mathematics, algebra, probability, statistics, and computer science whenever you model unordered selections, expand binomials, or read coefficients from Pascal's triangle.
C(n, k) is the size of the collection of all k-element subsets you can form from an n-element set.
Writers may use (n k), C(n,k), or nCk. In probability texts, r often replaces k: "n choose r."
Committees, lottery lines, sampling without replacement, and the binomial probability formula all lean on the same counting idea.
C(n, k) = n! / (k! × (n − k)!)
Same idea with r instead of k:
(n r) = n! / (r! × (n − r)!)
Symmetry property:
C(n, k) = C(n, n − k)
Product form (stable for hand and computer work):
C(n, k) = (n × (n − 1) × … × (n − k + 1)) / (k × (k − 1) × … × 1)
The factorial formula is the definition most textbooks print first. The numerator counts ordered selections if you kept going for k picks; dividing by k! removes reorderings inside the chosen group.
Symmetry matters because C(20, 18) is easier as C(20, 2). Always check whether k is larger than n/2 before you multiply long chains.
Our calculator at the top of this page uses the product form with exact integer division so you do not lose precision on large n.
Pick the method that matches your tools. All valid routes should agree when 0 ≤ k ≤ n and n, k are integers.
Step 1: Confirm you have a combination problem (order ignored). Step 2: Identify n and k. Step 3: Apply the formula or a shortcut. Step 4: Sanity-check with symmetry or a smaller case you know by heart.
Write the product of k descending factors from n, then divide by k!. Example: C(8, 3) = (8×7×6)/6 = 56.
Many calculators expose nCr or COMB(n,k). Enter n, then k, and read the integer result. Watch for overflow on large n.
Excel and Google Sheets use COMBIN(n, k). Build a small table of n and k pairs when you audit homework or lab data.
Use symmetry, Pascal's triangle, or recursive identities such as C(n,k) = C(n−1,k−1) + C(n−1,k) when they speed your workflow.
Each example states n, k, and the count. Scroll to the calculator at the top to verify any pair instantly.
How many two-person teams from five distinct people?
Result: C(5, 2) = 10
Classic "pick 6 from 49" without regard to order.
Result: C(49, 6) = 13,983,816
Choose four reviewers from twelve candidates.
Result: C(12, 4) = 495
Count success patterns before attaching probabilities.
Result: C(10, 3) = 120
The coefficient is C(7, 3) by the binomial theorem.
Result: 35
"n choose r" is another name for the binomial coefficient when r denotes how many items you select. On this page, the calculator labels are n (total) and k (chosen); mathematically k and r play the same role.
Permutation problems count ordered lists: P(n, r) = n! / (n − r)!. Combination problems count unordered subsets: C(n, r) = n! / (r! × (n − r)!). If order matters, do not use the binomial coefficient.
C(n, r) = (n r) = n! / (r! (n − r)!)
P(n, r) = n! / (n − r)! (permutations, order matters)
Relationship: P(n, r) = r! × C(n, r)
Pascal's triangle lists binomial coefficients by row. Row n (starting at n = 0) contains C(n, 0), C(n, 1), …, C(n, n).
Each interior entry equals the sum of the two entries directly above it. That recursion is the same identity behind row generation in combinatorics courses.
Row 5 reads 1, 5, 10, 10, 5, 1 because those are C(5,0) through C(5,5).
C(n, k) = C(n − 1, k − 1) + C(n − 1, k) for 0 < k < n.
The triangle encodes how many paths reach each cell if you only move down-left or down-right, linking counting to lattice paths.
In a binomial experiment you repeat n independent trials with two outcomes (success/failure). The number of ways to arrange exactly k successes among n trials is C(n, k).
Once you have the count, multiply by p^k (1 − p)^(n − k) for the binomial probability mass function when success probability is p.
P(X = k) = C(n, k) p^k (1 − p)^(n − k) for k = 0, 1, …, n.
Hypergeometric models replace C(n,k) with adjusted counts when draws change the pool; use the right model for your story.
List outcomes, count favorable subsets with C(n,k), then divide by total equally likely outcomes when the sample space is uniform.
(a + b)^n = Σ C(n, k) a^(n−k) b^k for k = 0 to n
Special case (a + x)^n:
Coefficient of x^k is C(n, k).
Expanding (a + b)^n produces n + 1 terms. Each term picks k copies of b and n − k copies of a; the coefficient counts how many sign patterns produce that split.
Polynomial exercises often ask for a single coefficient without full expansion. Identifying k and reading C(n, k) is faster than multiplying everything out.
The tool at the top of this page accepts two non-negative integers: n (total items) and k (chosen items). It returns C(n, k) using exact integer arithmetic.
Results update as you type. Invalid input (decimals, k > n, or values above the safety cap) shows a clear message instead of a misleading number.
Example checks you can run now: C(10, 3) = 120, C(7, 2) = 21, C(0, 0) = 1.
Most errors come from using the combination formula on a permutation story, or from factorial overflow on calculators.
Ranking problems need permutations. Seating arrangements are not C(n, k) unless order is explicitly ignored.
You cannot choose more distinct items than exist. The count is zero, not undefined, in standard combinatorics.
C(100, 98) should be computed as C(100, 2) to save effort.
Splitting objects into three or more labeled groups needs multinomial coefficients, not a single C(n, k).
Use integer tools or the product formula. Floating approximations break on moderate n.
Both count selections from n, but permutations track order while combinations (binomial coefficients) do not.
| Question | Permutation | Combination (binomial coefficient) |
|---|---|---|
| Order matters? | Yes | No |
| Typical formula | P(n, r) = n! / (n − r)! | C(n, r) = n! / (r! (n − r)!) |
| Example: pick 2 from {A,B,C} | 6 ordered pairs: AB, BA, AC, CA, BC, CB | 3 subsets: {A,B}, {A,C}, {B,C} |
| Relationship | Multiply combination count by r! | Divide permutation count by r! |
If a problem says "arrange" or "rank," start with permutations. If it says "choose," "select," or "form a committee," start with C(n, k).
Deeper guides live in our blog cluster on formulas, examples, and Pascal's triangle; start with the articles linked from the blog index when you want topic-by-topic study paths.
They name the same quantity. k and r both stand for how many items you select; n is the pool size.
There is exactly one way to choose nothing: the empty subset. Likewise C(n, n) = 1 because you must take all items.
When k > n or when k is negative in combinatorial contexts. There is no valid k-subset of an n-set if k > n.
Entry k of row n equals C(n, k). Each interior cell is the sum of the two cells above it.
Yes. C(n, k) counts success arrangements before you attach probability p to each success pattern.
No. Calculation runs locally in your browser.
The tool allows n and k up to 1000 for responsiveness. Very large values may take longer but still use exact integers.
Use the product formula, symmetry, or Pascal's triangle for small n, then confirm with the calculator.