Combinations calculator

Type n and k. The combination C(n,k) counts ways to choose k items from n when order does not matter. C(5,2) = 10. C(10,3) = 120. These are combinations without repetition.

Combinations without repetition. k cannot be larger than n. C(n,0) = 1 and C(n,n) = 1.

Input data

Results

Enter data and click Calculate.

How it works

A combination C(n,k), also the binomial coefficient, is the number of ways to choose k items from n when order does not count. C(5,2) = 10: from five people you pick a pair for a shift, and Anna-Bartek is the same choice as Bartek-Anna.

The formula is n! / (k! · (n-k)!). Factorial n! sits in the numerator, and the two factorials in the denominator strip the orders you do not distinguish. C(5,2) = 120 / (2 · 6) = 10. C(n,k) = C(n, n-k), so C(5,3) is also 10.

The fields are n and k, whole numbers, n ≥ k ≥ 0. The calculator rounds the combination to an integer. When k is larger than n, the result stays blank, because that choice does not exist.

C(n,0) = 1 and C(n,n) = 1: one way to pick nothing and one way to take everyone. That rests on 0! = 1. A variation V(n,k) counts the same items with order, so V(5,2) = 20, not 10.

The header units switch does not convert anything here. 5 and 2 stay C(5,2) = 10 whatever the metric label says. This is a count of sets, not a length.

C(10,3) = 120. C(6,6) = 1. C(8,0) = 1. C(6,2) = 15. C(7,3) = 35. When k > n the calculator does not invent a number. The field stays empty.

Formula

C(n,k) = n! / (k! · (n-k)!), for 0 ≤ k ≤ n

How to use

  1. Type n, for example 5, and k, for example 2.
  2. Click Calculate. C(5,2) = 10.
  3. C(10,3) = 120. C(8,0) = 1, because 0! = 1.
  4. When k is larger than n, the result stays blank.
  5. Order matters on variations. Here the pair A-B and B-A is one choice.

C(5,2) = 10

A combination C(n,k) = n! / (k!(n-k)!). C(5,2) = 10. C(10,3) = 120. Order does not count.

C(n,k)
The number of ways to choose k of n with no order. C(5,2) = 10. C(n,k) = C(n, n-k).
n
The size of the collection. With k = 2 and n = 5 you get 10. n must be at least k.
k
The size of the choice. 0 gives 1. k larger than n leaves a blank result.

Examples

Example 1

  • n = 5
  • k = 2

10

What is C(5,2)? 10. Order does not count.

Example 2

  • n = 10
  • k = 3

120

How many sets of 3 from 10? C(10,3) = 120.

Example 3

  • n = 8
  • k = 0

1

Is C(8,0) zero? No. One way to choose nothing.

Related calculators

Common questions

What is C(5,2)?

10. The formula 5! / (2! · 3!) = 120 / (2 · 6) = 10. The pair A-B and B-A is one choice.

What does combination without repetition mean?

You pick k distinct items from n and do not put them back. Order does not make a new set. That is this card, C(n,k).

What is C(10,3)?

120. C(10,7) is also 120, because C(n,k) = C(n, n-k).

How is C(n,k) different from V(n,k)?

A combination ignores order. A variation keeps it. V(5,2) = 20, C(5,2) = 10, because each set has 2! orders.

What are C(n,0) and C(n,n)?

Both are 1. One way to pick the empty set and one way to take everyone. 0! = 1 holds that formula.

What if k is larger than n?

That choice does not exist. The result is a blank result, not zero and not a fraction.

Is C(6,6) equal to 720?

No. 6! = 720 is the arrangements of all six. C(6,6) = 1, because there is one full set.

How do I read n and k on the labels?

n is the size of the collection, k is the size of the choice. From 10 people you take 3, not the other way round.

Does the calculator round C(n,k)?

Yes, to an integer. For a legal n and k the value is already whole. Rounding only guards leftover division noise.

Why is 0! in the denominator?

When k = 0 or k = n, one factorial is 0! = 1. Without that convention the formula would break.

Knowledge sources

The calculator computes the same formula as the definition below.

Page updated in 2026.