Permutation and Combination Calculator: nPr, nCr

Use this permutation and combination calculator to count ways to arrange or choose items. Enter n and r to get nPr and nCr, with or without repetition, plus the formulas and steps. It is perfect for math class and planning teams.

Permutation and Combination Calculator

Result

-

Scientific notation

-

Formula

-

Also: nPr / nCr

-

This permutation and combination calculator counts how many ways you can arrange or choose r items from n. It handles nPr, nCr and both versions with repetition, and always shows nPr and nCr side by side for comparison.

How to use the Permutation and Combination Calculator

  1. Enter n, the total number of items, and r, how many you pick. Both must be whole numbers of 0 or more.
  2. Choose the Type: Permutation nPr (order matters), Combination nCr (order doesn't matter), Permutation with repetition, or Combination with repetition.
  3. Press Calculate.
  4. Read the Result, its scientific notation, the formula used and the nPr / nCr comparison. The chart plots nPr and nCr for r from 0 up to 12.

Formula

nPr = n! ÷ (n − r)!
nCr = n! ÷ (r! × (n − r)!)
With repetition: nสณ (permutations), C(n + r − 1, r) (combinations)

Permutations count ordered arrangements, so ABC and CBA are different. Combinations count groups, so ABC and CBA are the same group. That's why nCr = nPr ÷ r!.

Example

From 10 people, choosing a president, a vice president and a treasurer is a permutation: 10P3 = 10 × 9 × 8 = 720. Choosing a 3-person committee is a combination: 10C3 = 720 ÷ 3! = 120. A 3-digit code using digits 0–9 with repeats allowed has 10³ = 1,000 possibilities.

Frequently asked questions

What is the difference between a permutation and a combination?

In a permutation the order matters; in a combination it does not. Picking 1st, 2nd and 3rd place is a permutation, while picking 3 winners of equal prizes is a combination.

How do I calculate nCr?

Divide n! by r! × (n − r)!. For 5C2: 5! ÷ (2! × 3!) = 120 ÷ 12 = 10, so there are 10 ways to choose 2 items from 5.

What does with repetition mean?

Each item can be chosen more than once. A 4-digit PIN allows repeats, so there are 10⁴ = 10,000 possibilities. Choosing 3 scoops from 5 flavors, with repeats allowed, gives C(7, 3) = 35 combinations.

What is 0! and why does it equal 1?

0! is defined as 1 so the formulas work at the edges. For example, nCn = n! ÷ (n! × 0!) must equal 1, since there is exactly one way to choose all n items.

Count arrangements

How to use it

  1. Enter n, the total items.
  2. Enter r, the items chosen.
  3. Pick with or without repeats.
  4. Read nPr and nCr.

More questions

When does order matter?

Use permutations when order matters and combinations when it doesn't.

What is 5C2?

5C2 is 10, which means there are 10 ways to choose 2 items from 5.

Can it list the options?

Yes. For small numbers, it lists every option so you can see each one.

Related tools: Factorial Calculator, Probability Calculator, Random Team Generator.