Ekuation

Math

Combinatorics Calculator

The Combinatorics Calculator covers seven counting operations: permutations (without and with repetition), combinations (without and with repetition / stars-and-bars), factorial, derangements (subfactorial), and Catalan numbers. Enter n and r, choose the operation, and instantly see the exact result with a LaTeX formula, step-by-step substitution panel, and interactive Pascal's triangle.

Your figures

The total number of distinct items in the set

The number of items chosen or arranged from the total

Formula
C(n, r)=n!r!⋅(n−r)!C(n,\,r) = \dfrac{n!}{r!\cdot(n-r)!}

Combinatorics Calculator

Enter n and r to compute permutations, combinations, factorials, derangements, or Catalan numbers.

The plate is drawn once you enter your figures.

Try an Example

Pick a scenario to see how the calculator works, then adjust the values

  1. Lottery Draw

    Calculate the number of possible 6/49 lottery combinations.

    Key values: Total balls: 49 · Drawn: 6 · Combination mode

  2. Race Podium

    Find the number of ways to award Gold, Silver, and Bronze among 8 runners.

    Key values: Runners: 8 · Medals: 3 · Permutation mode

  3. Secret Santa

    Calculate valid gift assignments where nobody draws their own name.

    Key values: Participants: 8 · Derangement mode

  4. Password Keyspace

    Estimate the number of possible 8-character passwords from printable ASCII.

    Key values: Character set: 94 · Length: 8 · Repetition allowed

Documentation

Plate

Specialized Calculators

Choose from 6 specialized versions of this calculator, each optimized for specific use cases and calculation methods.

Further plates · 6 Calculators

Related Calculators

More Math calculators

Calculator Search

Search and find calculators