Permutation calculator

Calculate permutations of distinct or repeated elements. Exact integer answers for up to 1,000 elements, without rounding.

Your inputs stay herePUFFINMINT

Set your data

Set your data

Choose distinct elements for n!, or repeated elements. For repetitions enter the size of every group, including groups of one.

Result

Enter your data and run the tool. Your result will appear here.

The values you enter stay on this page. Reloading or closing it clears them.

We count which tools are used most, without including entered values or file contents in the statistics. Privacy

How to use the tool

  1. Fill in these fields: Number of elements n (0–1000), Permutation type.
  2. Select “Calculate” to obtain the result.
  3. Choose distinct elements for n!, or repeated elements.
  4. For repetitions enter the size of every group, including groups of one.
  5. Follow the effect of repeated items on the count.

Method and principles

Formula

P = n !
For n distinct elements P=n!. For indistinguishable groups of sizes n₁,…,nₖ, P=n!/(n₁!×…×nₖ!).
P = n !n 1 !× …× n k !

Worked example

ANNA has groups 2; 2, giving 4!/(2!×2!)=6 distinct arrangements. Four different elements give 24 arrangements.

Practical example

Input
  • Number of elements n (0–1000): 4
  • Permutation type: All distinct
Result
4 × 3 × 2 × 1 = 24

Limits and interpretation

Group sizes must be positive integers summing to n. This counts arrangements of all elements, not selections of k elements. By convention 0!=1.

Limits and checks

Limits and checks
ParameterValue
Number of elements n (0–1000)≥ 0; ≤ 1000

Favorites