Introduction
A permutation is the number of ways you can arrange items from a group when the order matters. For example, if you pick 3 students from a class of 10 to win first, second, and third place, that's a permutation. Choosing Alice, Bob, then Carol is different from choosing Carol, Bob, then Alice. The formula for permutations is P(n, r) = n! / (n - r)!, where n is the total number of items and r is how many you are choosing.
This permutation calculator does the math for you. Just enter your values for n and r, and it will instantly give you the answer. Whether you're working on a homework problem, studying for a test, or solving a real-world counting problem, this tool saves you time and helps you avoid mistakes with large factorials.
How to Use Our Permutation Calculator
Enter the total number of items and how many you want to arrange. The calculator will tell you how many different ordered arrangements (permutations) are possible.
Total Number of Items (n): Type in the total number of items in your set. For example, if you have 10 books on a shelf, enter 10. This is the full group you are choosing from.
Number of Items to Arrange (r): Type in how many items you want to arrange in order. This number must be equal to or less than the total number of items. For example, if you want to arrange 3 books out of 10, enter 3.
What Is a Permutation?
A permutation is an arrangement of items where the order matters. If you pick 3 books from a shelf of 10 and line them up in a row, each different ordering counts as a separate permutation. This is what makes permutations different from combinations, where order does not matter. For example, choosing books A-B-C is the same combination as C-B-A, but they are two distinct permutations.
The Three Types of Permutations
Standard Permutations — P(n, r)
The most common type of permutation answers the question: "How many ways can I arrange r items chosen from a set of n items?" The formula is:
P(n, r) = n! / (n − r)!
The exclamation mark stands for factorial, which means you multiply a number by every whole number below it down to 1. For example, 5! = 5 × 4 × 3 × 2 × 1 = 120. So if you want to know how many ways you can seat 3 people out of a group of 7 in a row of chairs, you calculate P(7, 3) = 7! / 4! = 7 × 6 × 5 = 210 ways.
Permutations with Repetition
Sometimes you are allowed to pick the same item more than once. A good example is a combination lock with 4 digits, where each digit can be any number from 0 to 9 and digits can repeat. In this case the formula is simply:
P(n, r) = nr
For the lock example, that gives 104 = 10,000 possible codes. Repetition makes the number of arrangements grow very quickly because every position has the full set of choices available.
Permutations with Identical Items (Multiset Permutations)
When some items in your set are identical, you need to divide out the repeated arrangements. Imagine you want to arrange the letters in the word "APPLE." There are 5 letters total, but the letter P appears twice. Without adjusting, you would count some arrangements more than once. The formula is:
P = n! / (n₁! × n₂! × … × nₖ!)
Here, n is the total number of items and n₁, n₂, etc. are the counts of each identical group. For APPLE, that is 5! / (1! × 2! × 1! × 1!) = 120 / 2 = 60 unique arrangements.
Permutations vs. Combinations
The key difference is simple: permutations care about order, combinations do not. Picking players A, B, and C for a team is one combination regardless of order. But assigning them to first place, second place, and third place creates 6 different permutations (3! = 6). If you are counting arrangements, rankings, sequences, or any situation where position matters, you need permutations. If you are just picking a group, you need combinations.
Real-World Uses of Permutations
- Passwords and PINs: Figuring out how many possible codes exist for a given length and character set.
- Seating arrangements: Counting the ways to seat guests around a table or in a row.
- Race results: Determining how many different ways runners can finish in first, second, and third place.
- Scheduling: Calculating the number of possible orderings for tasks, classes, or events.
- Word puzzles: Finding how many unique arrangements can be made from a set of letters, including when letters repeat.
Connecting Permutations to Other Math Concepts
Permutations are closely tied to several other areas of mathematics. The factorial function at the heart of the permutation formula connects directly to concepts in statistics such as the z-score and standard deviation, where counting methods underpin probability distributions. When analyzing data sets, you might use the interquartile range (IQR) alongside permutation-based probability to understand how likely certain ordered outcomes are.
In algebra, the quadratic formula and permutations both appear frequently in competition mathematics, and understanding factorials helps when expanding binomial expressions. If your problem involves coordinate geometry — for instance, counting paths between points — tools like the distance calculator, midpoint calculator, and slope calculator can complement your combinatorial analysis.
Permutations also play a role in error analysis and experimental design. When measuring how observed results differ from expected values, the percent error calculator and percent change calculator are helpful companions. Meanwhile, the percentage calculator can help you express permutation-based probabilities as easy-to-understand percentages, and the rate of change calculator is useful when studying how the number of permutations grows as n or r increases.
How to Use This Calculator
Select the permutation mode that matches your problem. Enter your values for n (the total number of items) and r (the number you are choosing or arranging). For identical-item permutations, specify how many groups of identical items you have and the count for each group. Press Calculate to see the result, a step-by-step solution, and — for small enough values — a full list of every permutation along with a visual chart.