Mathematics · Formula

Combinations

The number of unordered selections of r items from n.

Mathematics librarySymbols definedWorked example
Formula
C(n, r) = n! / (r!(n − r)!)

The number of unordered selections of r items from n.

What the symbols mean

  • n — total items
  • r — items chosen
  • C(n, r) — number of subsets

What it means

Order does not matter in a combination, so each group is counted once. The values form Pascal's triangle and are symmetric: C(n, r) = C(n, n − r).

Worked example

Example

The number of 5-card hands from a 52-card deck is C(52, 5) = 2,598,960.

Apply it

The live calculator applies this relationship with your own numbers and shows the substituted working.

Open the calculator

Related formulas

These relationships often appear alongside the combinations in the same problems.

Frequently asked questions

What is the combinations formula?

The relationship is C(n, r) = n! / (r!(n − r)!). The number of unordered selections of r items from n.

When should I use the combinations formula?

Order does not matter in a combination, so each group is counted once. The values form Pascal's triangle and are symmetric: C(n, r) = C(n, n − r).

How do I avoid unit mistakes?

Write each quantity with its unit before substituting, convert to the units the formula expects, and check that the result's unit matches the quantity you are solving for. Angles must be in radians for calculus-based expressions unless the page says degrees.

Sources and standards

The equation form, symbols and expected units on this page are checked against the reference works below.

How these are used: sources and standards.

Reviewed November 2026 · Educational reference. See the disclaimer and methodology.