Example 1
- n = 5
- k = 2
10
What is C(5,2)? 10.
Enter n and k. The combination C(n,k) counts ways to choose k elements from n when order does not matter. C(5,2) = 10. C(10,3) = 120. These are combinations without repetition — the binomial coefficient. The page does not compute combinations with repetition or ordered P(n,k).
Enter n and k (0 ≤ k ≤ n).
Combinations without repetition. Require 0 ≤ k ≤ n. C(n,0) = 1 and C(n,n) = 1. When k > n the calculator reports an error, not zero.
A combination C(n,k), also called the binomial coefficient or “n choose k”, counts ways to choose k items from an n-element set when order does not matter and items are not repeated. For n = 5 and k = 2 the result is 10: from five people you pick a pair for a shift, and Anna–Bartek is the same choice as Bartek–Anna.
The formula is C(n,k) = n! / (k! · (n−k)!) for 0 ≤ k ≤ n. Factorial n! sits in the numerator; k! and (n−k)! in the denominator strip the orders you do not distinguish. Equivalently C(n,k) = P(n,k) / k!, where P(n,k) = n!/(n−k)! counts ordered k-tuples. C(5,2) = 120 / (2 · 6) = 10. Symmetry: C(n,k) = C(n,n−k), so C(5,3) is also 10.
The calculator uses the numbers you enter in fields n (kombinacje-a) and k (kombinacje-b). It takes floor, requires non-negative n, k and k ≤ n. It computes via the multiplicative product with symmetry min(k,n−k), reducing each step by the GCD. When k > n it shows an error — that choice does not exist.
The result panel shows C(n,k), echoes of n and k, the symmetric value, P(n,k), the n!/(k!(n−k)!) breakdown, and — when k is interior — Pascal’s identity. For n ≤ 12 a bar chart draws Pascal’s triangle row C(n,0)…C(n,n) with k highlighted. Examples: C(5,2) = 10; C(10,3) = 120; C(8,0) = 1; C(6,6) = 1; C(7,3) = 35; C(5,3) = 10; C(6,2) = 15; when k > n — error.
A separate variations page counts ordered V(n,k) = P(n,k). Permutations P(n) = n! arrange the whole set. This calculator stays with unordered C(n,k) without repetition — it does not list subsets and does not count combinations with repetition.
C(n,k) = n! / (k! · (n−k)!) for 0 ≤ k ≤ n.
Equivalently: C(n,k) = P(n,k) / k!, where P(n,k) = n! / (n−k)!.
Pascal’s identity: C(n,k) = C(n−1,k−1) + C(n−1,k).
Symbols: n — set size (the “n” field); k — choice size (the “k” field). Mathematical model: binomial coefficient (NIST DLMF §26.3).
Let n and k be non-negative integers. The binomial coefficient C(n,k), also written \(\binom{n}{k}\) or “n choose k”, is the number of k-element subsets of an n-element set. Equivalently: the number of ways to choose k distinct items from n when order does not create a new outcome. The classical formula is C(n,k) = n! / (k! · (n−k)!) for 0 ≤ k ≤ n; outside that range the model without repetition has no legal selection (this calculator reports an error when k > n instead of returning 0).
The name “binomial coefficient” comes from the binomial theorem: (a + b)^n = Σ_{k=0}^{n} C(n,k) a^{n−k} b^k. NIST DLMF §26.3 collects identities; MathWorld (Binomial Coefficient) and Wikipedia use the same set-counting definition. Polish school texts often say “Newton’s symbol” for the same C(n,k).
This page does not multiply full factorials for large n directly: it computes ∏_{i=1}^{r} (n − r + i) / i with r = min(k, n − k), then round to the nearest integer. For typical school data the result matches the definition.
Counting unordered selections appears in Indian and Arabic mathematics earlier than the modern factorial form. Blaise Pascal (1623–1662) systematized the arithmetic triangle now called Pascal’s triangle: each entry is the sum of two entries above. Isaac Newton linked the coefficients to the binomial expansion, including non-integer exponents (binomial series). The notations C(n,k) and \(\binom{n}{k}\) spread with nineteenth- and twentieth-century combinatorics.
Conceptually, combinations sit beside permutations and variations. Permutations P(n) = n! arrange all items; variations without repetition V(n,k) = P(n,k) = n!/(n−k)! arrange k of n with order; combinations C(n,k) pick a set without order. Bridge identity: P(n,k) = C(n,k) · k!. In probability, C(n,k) counts ways to get exactly k successes in n Bernoulli trials. In computer science it counts k-subsets and drives combination-generation complexity.
This calculator does not solve for unknown n or k, does not list subsets, and does not count combinations with repetition (that formula is C(n + k − 1, k)). It answers one question: how many unordered picks of k from n without repetition.
Domain on this page: n, k ∈ ℕ₀, 0 ≤ k ≤ n. C(n,0) = C(n,n) = 1. Symmetry: C(n,k) = C(n,n−k). Pascal’s identity: C(n,k) = C(n−1,k−1) + C(n−1,k) for 1 ≤ k ≤ n − 1. Row sum: Σ_{k=0}^{n} C(n,k) = 2^n. Product identity: C(n,k) · C(k,m) = C(n,m) · C(n−m,k−m) when 0 ≤ m ≤ k ≤ n.
Link to factorial and variations: C(n,k) = n! / (k!(n−k)!) = P(n,k) / k!. Multiplicative recurrence: C(n,k) = C(n,k−1) · (n − k + 1) / k for k ≥ 1. For fixed n, values rise toward the middle of the row and fall symmetrically.
In the binomial theorem the coefficients are non-negative integers; Σ C(n,k) = 2^n counts all subsets of an n-set.
Step 1. The number of ordered picks of k distinct items from n is P(n,k) = n · (n−1) · … · (n−k+1) = n! / (n−k)!. Each unordered set {x₁,…,x_k} corresponds to exactly k! orderings. Hence C(n,k) = P(n,k) / k! = n! / (k!(n−k)!).
Step 2 (symmetry). A bijection between k-subsets and (n−k)-subsets of complements gives C(n,k) = C(n,n−k). So the calculator may use r = min(k, n−k).
Step 3 (Pascal). The k-subsets of {1,…,n} split into those that contain n (completed in C(n−1,k−1) ways) and those that do not (C(n−1,k) ways). The sum is C(n,k).
Step 4 (product). C(n,k) = ∏_{i=1}^{k} (n − k + i) / i with on-the-fly cancellation avoids huge intermediate factorials. Each step is reduced by the GCD, so results up to 2⁵³ are exact; larger values are shown as an approximation ≈ m × 10^e.
Step 5 (examples). C(5,2) = (5·4)/(1·2) = 10. C(10,3) = (10·9·8)/(1·2·3) = 120. C(8,0) = 1. C(6,6) = 1.
C(n,1) = n; C(n,2) = n(n−1)/2 (edges of the complete graph K_n). C(52,5) = 2,598,960 — five-card hands from a 52-card deck. A 6-from-49 lottery: C(49,6) = 13,983,816. For n = 0: C(0,0) = 1.
Negative n or k after flooring are rejected with an error. Non-integers are floored: 5.7 and 2.1 give C(5,2) = 10. When k > n → error (not zero).
For very large n, floating-point arithmetic loses integer exactness; larger n needs big-integer arithmetic. This educational calculator targets the school range and the panel examples.
The multiplicative product with division at each step limits magnitude growth versus n! / (k!(n−k)!). Final round matches the earlier gold copy (“rounds to an integer”). Comma and period are equivalent.
The Pascal chart is limited to n ≤ 12 so bars stay readable. P(n,k) in the panel is the check C(n,k)·k!, not a separate form mode.
Numbers are not sent to a server; the browser computes everything in floating-point arithmetic.
Related: factorial n!, permutations P(n), variations V(n,k) = P(n,k), Pascal’s triangle, binomial theorem, binomial distribution, combinations with repetition. Polygon diagonals n(n−3)/2 = C(n,2) − n.
Sources: NIST DLMF §26.3 (Binomial Coefficients); MathWorld — Binomial Coefficient; Wikipedia — Binomial coefficient; Pascal, Traité du triangle arithmétique; Feller, An Introduction to Probability Theory. Educational tool — not a substitute for a textbook or teacher check.
C(n,k) = n!/(k!(n−k)!). C(5,2) = 10. C(10,3) = 120. Order does not count.
10
What is C(5,2)? 10.
120
What is C(10,3)? 120 (= C(10,7)).
1
What is C(8,0)? 1.
1
What is C(6,6)? 1 (not 720 = 6!).
35
What is C(7,3)? 35.
10
What is C(5,3)? 10 (= C(5,2)).
15
What is C(6,2)? 15 (P(6,2) = 30).
error
What is C(4,5)? Error — k > n.
After flooring, n and k are non-negative integers with 0 ≤ k ≤ n. When k > n the calculator shows an error instead of zero or a fraction — that unordered selection without repetition does not exist.
You pick k distinct items from an n-element set and do not put them back. Order does not make a new set: Anna–Bartek is the same choice as Bartek–Anna. That is C(n,k), also called the binomial coefficient or “n choose k”.
P(n,k) (k-permutations; school texts often write V(n,k)) counts ordered tuples: P(n,k) = n!/(n−k)! = C(n,k)·k!. For n = 5 and k = 2: C(5,2) = 10 while P(5,2) = V(5,2) = 20. Arrangements of the whole set are P(n) = n! on a separate page.
Choosing k items is the same as naming the n−k items left behind. So C(10,3) = C(10,7) = 120. The result panel also shows the symmetric value.
Both equal 1. There is one empty subset and one full set. The convention 0! = 1 keeps n!/(k!(n−k)!) valid on the boundary.
No. 6! = 720 is the arrangements of all six (permutations). C(6,6) = 1 because there is only one full unordered set.
Instead of dividing huge factorials directly, it uses the multiplicative product with symmetry min(k,n−k), and reduces each step by the GCD, so results up to 2⁵³ are exact (larger values as ≈ m × 10^e). For a legal n and k the value is an integer.
For n ≤ 12 the bars show C(n,0)…C(n,n). The entered k is highlighted. Pascal’s identity C(n,k) = C(n−1,k−1) + C(n−1,k) appears in result meta when k is interior.
No. The result depends only on n and k. The currency and unit settings in the page header do not affect this result.
Yes. Flooring uses floor: 5.7 and 2.1 compute as C(5,2) = 10. Comma and period are equivalent in the parser.
Ordered picks of k from n — on the variations V(n,k) page. Arrangements of all n items — on permutations P(n) = n! or factorial. Here only unordered C(n,k).
Empty n or empty k leaves the result blank. The calculator does not substitute zero for a missing entry. Enter zero on purpose when needed (for example C(8,0) = 1).
Use C(n,k) = n! / (k!·(n−k)!) with 0 ≤ k ≤ n. For C(5,2): 5!/(2!·3!) = 120/(2·6) = 10. Order does not matter.
120. Equivalently C(10,7) = 120 by symmetry C(n,k) = C(n,n−k). That is example 2 on this page.
C(n,k) ignores order. P(n,k) = C(n,k)·k! counts ordered sequences. At n = 5 and k = 2: C = 10, P = 20. Full-set permutations are n! on a separate page.
No. Only C(n,k) without repetition. The with-repetition model C(n+k−1, k) is not on this page.
13,983,816 — the classic “6 from 49” count. Enter n = 49 and k = 6 to see the full integer in the panel (exact arithmetic within the engine limit).
Definition, Pascal, and the link to P(n,k) below come from established sources.
Page Updated November 2, 2026.