Permutation & Combination Calculator

Count ordered and unordered selections, with and without repetition, using exact big-integer results.

Whole number from 0 to 1,000.

Whole number from 0 to n (or up to 1,000 when repeats are allowed).

Number entry: use a point for decimals (1.5). Commas grouped in threes are thousands separators (1,250), and a single comma such as 1,5 is read as a decimal comma. Nothing you enter leaves your device.

Showing the example values. Change the inputs and press Calculate for your own result.

Combinations C(10, 3): order does not matter

120

Permutations P(10, 3): order matters = 720

Permutations nPr = P(10, 3)
720

n! ÷ (n − r)!

Combinations nCr = C(10, 3)
120

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

Permutations with repetition (nʳ)
1,000
Combinations with repetition
220

(n + r − 1)! ÷ (r! × (n − 1)!)

10! (all arrangements of n items)
3,628,800

Working

  1. Permutations count ordered selections, so ABC and CBA are different.
  2. Combinations count unordered selections, so ABC and CBA are the same.
  3. C(n, r) = P(n, r) ÷ r!

About the permutation & combination calculator

Permutations count the ways to choose and arrange items when order matters; combinations count the ways to choose when order does not matter. This calculator gives nPr and nCr for any n and r, plus the counts when repetition is allowed and n factorial.

Results are exact, even when they have dozens of digits.

Who should use the permutation & combination calculator

  • Students in probability and discrete maths.
  • Anyone counting possible teams, codes or arrangements.
  • Game and puzzle designers.

How to use the permutation & combination calculator: what each input means

Total items (n)
How many items there are to choose from, up to 1,000.
Items chosen (r)
How many you pick.

How the permutation & combination calculator works: method and formula

Permutations without repetition: nPr = n! ÷ (n − r)!. Combinations: nCr = n! ÷ (r!(n − r)!). With repetition allowed, permutations become nʳ and combinations become C(n + r − 1, r). All values are calculated with exact big-integer arithmetic.

Permutations
P(n, r) = n! ÷ (n − r)!
Combinations
C(n, r) = n! ÷ (r! (n − r)!)

How to read your permutation & combination calculator result

If swapping two chosen items would count as a different result (a podium of first, second and third), use permutations. If not (a committee), use combinations. Combinations are always the permutations divided by r!.

Permutation & Combination Calculator worked example

Choose 3 items from 10.

  1. Permutations: 10 × 9 × 8 = 720.
  2. Combinations: 720 ÷ 3! = 120.
  3. With repetition allowed, ordered: 10³ = 1000.
  4. 10! = 3628800.

P(10, 3) = 720 and C(10, 3) = 120.

Practical uses of the permutation & combination calculator

  • Counting committee or team selections.
  • Counting passwords or PIN codes.
  • Computing lottery odds.

Assumptions and limitations of this calculator

  • n and r are limited to 1,000.
  • Without repetition, r cannot exceed n.
FAQs

Permutation & Combination Calculator FAQs

Permutations care about order and combinations do not.

Need Something Built Around Your Numbers?

Code & Motions designs and builds custom calculators, dashboards and web tools for businesses. Tell us what you have in mind.