Permutation Calculator
Count ordered arrangements of items.
Try it
Inputs
Result
The result appears here as you type.
About Permutation Calculator
A permutation calculator counts the number of ways to choose and arrange some items from a larger set when the order matters. The number of ways three runners can finish first, second and third in a race of ten people is a permutation. Permutations appear in ranking, scheduling, seating plans, passwords and any problem where position changes the outcome.
Enter the total number of items and how many you will arrange. The calculator returns the number of ordered arrangements. Whether repetition is allowed changes the count, so the tool shows both cases where it matters.
How to use Permutation Calculator
- Enter the total number of items available to choose from.
- Enter how many of them will be arranged in order.
- Choose whether an item can be used more than once, if the calculator offers that option.
- Read the number of permutations in the result panel.
- Use Reset to clear the values and count another arrangement.
Counting ordered arrangements
If there are n items and you choose r of them in order, the first position can be filled in n ways, the second in n minus 1 ways, and so on until r positions are filled. The number of permutations is n times (n minus 1) down to (n minus r plus 1), which equals n factorial divided by (n minus r) factorial. Five items taken two at a time gives 5 times 4, which is 20.
A race result is the classic example. Ten runners can finish first, second and third in 10 times 9 times 8 ways, which is 720. Each different podium is a different permutation, because the order of finishing matters. Swapping two runners on the podium gives a new result.
When every item is used once, the number of permutations is the factorial of the total. Six books can be arranged on a shelf in 6 factorial, which is 720 ways. Choosing fewer than all of them uses the general formula instead.
Repetition and common mistakes
If an item can be chosen more than once, each position has all n options every time, so the count is n to the power of r. A four-digit code using the digits 0 to 9, with repeats allowed, has 10 to the power of 4 possibilities, which is 10,000. Without repeats, the count is 10 times 9 times 8 times 7, which is 5040.
The most common mistake is confusing order with selection. If the order does not matter, the question is about combinations, not permutations, and the count is much smaller. Ask yourself whether swapping two chosen items would create a different outcome. If it would, use permutations. If it would not, use combinations.
Permutations also help with passwords. A password of eight characters from a set of 62 letters and digits, with no repeats, has a huge number of possible arrangements, which is why length matters more than complexity alone.
Frequently asked questions
What is the difference between a permutation and a combination?
A permutation counts arrangements where order matters. A combination counts selections where order does not matter, so it gives a smaller number.
What if I choose all the items?
Then the number of permutations is the factorial of the total. Ten items in a row can be ordered in 10 factorial ways.
Can the number of items I arrange be larger than the total?
Not without repetition. If repeats are allowed, you can arrange more items than you have, but each position still draws from the total.
Why are permutation counts so large?
Each extra position multiplies the count by the number of remaining choices, so the total grows very quickly as the set or the arrangement gets bigger.
Related tools
Tools that pair well with this one.