How to use the Permutation Calculator
- Set n, the available number of distinct items, to a whole number from 0 through 1,000.
- Enter the number r to arrange in order, from 0 through n.
- Read the exact number of arrangements. Different orderings of the same items count separately.
Permutation formula
Where:
- = total number of distinct items
- = number arranged in order, with 0 ≤ r ≤ n
- = number of ordered selections without replacement
Show as plain text
P(n,r) = n! ÷ (n−r)! = n × (n−1) × ... × (n−r+1)
The first position has n choices, the next n−1, continuing until r positions are filled. Multiplying those choices gives nPr.
The exact product is accumulated with BigInt. The maximum n is 1,000 to keep calculation and display practical.
Assumptions and limitations
- Items are distinct and are not reused within an arrangement.
- n is limited to 1,000; results are exact BigInt decimal integers.
Example: Arrange 3 of 10 items
- There are 10 choices for the first position.
- There are 9 remaining choices for the second and 8 for the third.
- P(10,3) = 10 × 9 × 8 = 720 ordered arrangements.
When to use the Permutation Calculator
- Counting ordered selections from a set when items cannot be reused.
- Checking arrangement questions in combinatorics and probability.
- Compare unordered groups with the combination calculator or calculate factorials with the factorial calculator.
Permutation Calculator FAQs
When does order matter?
Order matters when different positions or sequences represent different outcomes, such as assigning first, second and third place.
How is nPr different from nCr?
nPr counts ordered arrangements. nCr counts unordered groups; nPr equals nCr multiplied by r!.
What happens when r is zero?
There is one empty arrangement, so nP0 is 1.
How this calculator was built and tested is explained in our methodology. Spotted a problem? Let us know.