Skip to content

Combination & Permutation Calculator (nCr & nPr)

Calculate the total number of ways to choose or arrange r items from a set of n elements. View detailed factorial steps, with or without order and repetition.

Total number of items in the set

Number of items selected at a time

Combinations nCr (without repetition)
120
Permutations nPr (without repetition)
720
Combinations with Repetition
220
Permutations with Repetition (nʳ)
1000
nCr Factorial Expansion
10! / (3! × 7!)
nPr Factorial Expansion
10! / 7!

Come funziona

Formula

nCr = n! / (r! × (n - r)!) | nPr = n! / (n - r)!

Esempio pratico

Choosing 3 winners from 10 contestants where order does not matter (10C3) gives 10! / (3! × 7!) = 120 unique combinations.

Combinations and Permutations Explained

In combinatorial mathematics, counting problems arise whenever we need to determine the number of possible outcomes, groupings, or sequences from a finite collection of items.

The Four Combinatorial Archetypes

Depending on whether order matters and whether repetition is allowed, we have four fundamental formulas:

TypeOrder Matters?Repetition?FormulaNotation
CombinationNoNo$\frac{n!}{r!(n - r)!}$$C(n, r) \text{ or } \binom{n}{r}$
PermutationYesNo$\frac{n!}{(n - r)!}$$P(n, r) \text{ or } ^n P_r$
Comb. with RepetitionNoYes$\frac{(n + r - 1)!}{r!(n - 1)!}$$C(n + r - 1, r)$
Perm. with RepetitionYesYes$n^r$$n^r$

Step-by-Step Factorial Simplification

Consider calculating $\binom{8}{3}$ (choosing 3 members from an 8-person committee):

$$\binom{8}{3} = \frac{8!}{3!(8 - 3)!} = \frac{8!}{3! \times 5!}$$

Notice that the $5!$ in the denominator cancels out the lower factors of $8!$:

$$\binom{8}{3} = \frac{8 \times 7 \times 6 \times \cancel{5!}}{(3 \times 2 \times 1) \times \cancel{5!}} = \frac{8 \times 7 \times 6}{6} = 8 \times 7 = \mathbf{56}$$

By simplifying before multiplying, calculations remain efficient and mathematically exact.

Domande frequenti

What is the key difference between a combination and a permutation?

Order matters in a permutation, but does not matter in a combination. For example, selecting 3 numbers for a lottery ticket is a combination (1-2-3 is the same as 3-2-1). Choosing a 3-digit PIN code for your phone is a permutation (1-2-3 is distinct from 3-2-1).

What does n! (factorial) mean?

Factorial of a non-negative integer n is the product of all positive integers less than or equal to n. For example, 5! = 5 × 4 × 3 × 2 × 1 = 120. By definition, 0! = 1.

Can this calculator handle large values of n without floating-point overflow?

Yes. Our calculation engine utilizes native arbitrary-precision BigInt arithmetic to avoid IEEE-754 floating-point rounding errors on large combinatorial values.

What is combination with repetition?

When choosing r items from n types where any item can be chosen multiple times (such as picking 4 donuts from 6 flavors), the formula is: (n + r - 1)! / (r! × (n - 1)!).

Ultimo aggiornamento: 19 במרץ 2026