Home ↓
CalculatorsVerified

Math & Geometry

Permutations & Combinations Calculator

nCr, nPr and factorials — how many ways to choose or arrange r items from n.

Counting choices and arrangements

Combinatorics answers the question “how many ways?”. Permutations count arrangements where order matters: the number of ways to award gold, silver and bronze among 10 runners is 10 × 9 × 8 = 720, written ₁₀P₃. Combinations count selections where order does not matter: the number of ways to choose 3 people from 10 for a committee is 720 ÷ 3! = 120, written ₁₀C₃ or “10 choose 3”. When items can be reused — digits of a PIN code, for instance — the count of arrangements is nʳ.

The calculator gives all four counts: combinations, permutations, arrangements with repetition and combinations with repetition.

Lotteries, codes and probability

Combinations explain lottery odds: choosing 6 numbers from 49 gives 13,983,816 possible tickets, so one ticket has about a 1 in 14 million chance. A 4-digit PIN has 10⁴ = 10,000 possibilities. Divide favourable outcomes by total outcomes to turn counts into probabilities.

Formula & method

nPr = n! ÷ (n − r)!nCr = n! ÷ (r! (n − r)!)With repetition: nʳ and C(n + r − 1, r)

Worked example

Choosing 3 items from 10

  1. Permutations ₁₀P₃ = 10 × 9 × 8 = 720
  2. Combinations ₁₀C₃ = 720 ÷ (3 × 2 × 1) = 120
  3. With repetition: 10³ = 1,000 arrangements

Answer: 120 combinations and 720 permutations.

Frequently asked questions

Order matters or not?

Use permutations when order matters (podium places), combinations when it does not (lottery numbers).

How do I know if order matters?

If swapping two chosen items gives a different result (a race podium, a password), order matters: use permutations.

What are the odds of winning a 6/49 lottery?

1 in ₄₉C₆ = 13,983,816.

What is a factorial?

n! is the product of all whole numbers from 1 to n; 5! = 120 and 0! = 1.

What are combinations with repetition?

Selections where the same item may be chosen several times, such as scoops of ice cream from a set of flavours.

How large can n be?

Up to 1,000; very large results are shown in scientific notation.

What is Pascal's triangle?

A triangle of numbers in which each entry is a combination nCr, built by adding the two numbers above it.

How many 4-digit PINs are there?

10,000, from 0000 to 9999.