Permutation and Combination Calculator

nPr and nCr, with or without repetition

Calculate permutations (nPr) and combinations (nCr), with or without repetition, exactly even for very large numbers - with the formulas and steps.
Share
Try an example:
Your result will appear here as you type.

About Permutation and Combination Calculator

Formula

nPr = n! ÷ (n − r)!

nCr = n! ÷ (r! × (n − r)!)

Worked examples

10 items, choose 3

10P3 = 10 × 9 × 8 = 720 ordered ways; 10C3 = 720 ÷ 3! = 120 groups.

Lottery

49C6 = 13,983,816 possible tickets.

How it works

  1. Permutations count ordered arrangements: nPr = n! ÷ (n − r)!.
  2. Combinations count unordered selections: nCr = n! ÷ (r!(n − r)!).
  3. With repetition: nʳ arrangements, and (n + r − 1)Cr selections.

What you need

  • n and r as whole numbers.

Tips

  • Ask "does order matter?" - a race podium (yes) vs choosing a committee (no).

Limitations

  • n up to 10,000.

Runs in your browser. Calculations run in your browser - nothing you enter is sent anywhere.

Definitions

Factorial (n!)
n × (n − 1) × ... × 1.

Frequently asked questions

Why is nPr bigger than nCr?+

Each group of r items can be arranged r! ways, so nPr = nCr × r!.

Was this calculator helpful?