P Permutation Calculator — P(n, r)
Calculate the number of ordered arrangements (permutations) of r items chosen from n items. P(n, r) = n! / (n − r)!. Enter n and r to get the result, step-by-step working, and all possible arrangements for small values.
Permutations nPr — Order Matters
BrainyCalculators editorial insight — unique to this tool
P(n,r) counts ordered arrangements — a 4-digit PIN with no repeats is P(10,4) = 5,040 possibilities, while a 4-person podium from 10 runners is P(10,3) = 720 medal orderings. Scheduling meetings in sequence and anagram counts (when letters are unique) are permutation problems. Always larger than the corresponding combination: P(n,r) = r! × C(n,r).
When to use this calculator
Use permutations when position or sequence changes the outcome. For unordered groups (teams, subsets, hands), use Combination.
| Reference | Value | Context |
|---|---|---|
| P(10,3) | 720 | Podium orderings |
| P(10,4) PIN | 5,040 | No repeated digits |
| n! | All orderings | Full shuffle of n |
| P(n,n) | n! | Complete permutations |
Not what you need? For choosing committees where order is irrelevant, use Combination. For coin-flip style likelihood, use Probability.
Choosing a subset without caring about order?
This page counts ordered arrangements (nPr). For committees, lottery tickets, and unordered groups, use the Combination Calculator →
Number of items in the set (0–200)
Number of items to select and arrange
Step-by-Step
All Arrangements
Permutations Count Ordered Arrangements
A 4-digit PIN with no repeated digits has P(10,4) = 10×9×8×7 ordered arrangements — 5,280 possibilities, not C(10,4) = 210 unordered sets. Permutations matter whenever position changes meaning: race medals, tournament brackets, password length, or assigning distinct roles to people from a pool.
This calculator handles nPr (no repetition) and explains the factorial structure step by step. Dividing P(n,r) by r! recovers C(n,r) — the same r people can be arranged r! ways, which is why committees and committees-with-chairs differ by exactly that factor.
Use combinations when the label “committee,” “subset,” or “lottery ticket” fits. Use permutations when the label “ranking,” “schedule,” or “code” fits. Probability rules on this site combine event logic; they do not replace counting how many ordered outcomes exist in the sample space.
Permutation Formula for Ordered Slots
The denominator only removes unused candidates. It does not divide by r!, because slot order is the result: first speaker, second speaker, third speaker, and so on are distinct assignments.
A permutation problem usually contains words like ranked, scheduled, seated, coded, first-to-last, or assigned to roles. Those labels make each position meaningful.
Permutation Examples
| P(n, r) | Calculation | Result |
|---|---|---|
| P(5, 3) | 5 × 4 × 3 | 60 |
| P(4, 2) | 4 × 3 | 12 |
| P(6, 6) | 6! | 720 |
| P(10,3) | 10 × 9 × 8 | 720 |
| P(52,2) | 52 × 51 | 2,652 |
Worked Example: Schedule 5 Talks from 12 Proposals
-
1Identify the slotsThere are 5 agenda positions. A keynote in slot 1 is different from the same talk in slot 5, so order matters.
-
2Start filling positionsThe first slot has 12 choices, the second has 11, then 10, 9, and 8 after each selected talk is removed.
-
3Multiply the ordered choicesP(12, 5) = 12 × 11 × 10 × 9 × 8 = 95,040 possible schedules.
-
4Compare with combinationsThe unordered set count is only 792. Multiplying by 5! creates the 120 orderings of every selected talk set.
How the Permutation Calculator Works
Formula, assumptions, and calculation steps for this statistics tool.
Formula Used
P(n, r) = n! / (n - r)!
Methodology
Statistics calculators organize sample data, apply the selected descriptive or inferential formula, and report the statistic with interpretation.
Calculation Steps
- Enter raw values or summary statistics.
- Clean separators and count the sample size.
- Apply the relevant statistic, probability, or confidence formula.
- Display the result with context such as degrees of freedom, percentile, or strength.
Assumptions and Limits
- Samples should be representative of the population being studied.
- Normality or independence assumptions apply only where the selected method requires them.
- Rounded results may differ slightly from spreadsheet software.
Frequently Asked Questions
A permutation is an ordered arrangement of items selected from a set. The order of selection matters — {A, B} and {B, A} are counted as two different permutations. P(n, r) counts all possible ordered arrangements of r items chosen from a pool of n distinct items.
In a permutation, order matters. In a combination, it does not. P(5, 3) = 60 but C(5, 3) = 10. Every combination of r items corresponds to r! permutations, so P(n, r) = C(n, r) × r!.
Order matters when the arrangement itself is significant: rankings (1st, 2nd, 3rd place), passwords, scheduling tasks in sequence, or assigning distinct roles to people. If you just need to pick a group without roles, use combinations.
Medal standings in a race (gold/silver/bronze), arranging letters in a word, assigning unique ID codes, scheduling jobs on a machine, planning a playlist order, and seating people in numbered chairs all involve permutations.
Real-World Applications
Common Mistakes
Permutation vs Combination Quick Reference
| Feature | Permutation P(n,r) | Combination C(n,r) |
|---|---|---|
| Order matters? | Yes | No |
| Formula | n! / (n−r)! | n! / (r! × (n−r)!) |
| P(5,3) vs C(5,3) | 60 | 10 |
| P(n,r) vs C(n,r) | C(n,r) × r! | P(n,r) / r! |
| Example problem | Race finishing positions | Lottery number selection |
| Repetition variant | n^r | C(n+r−1, r) |
References
- Rosen, K.H. Discrete Mathematics and Its Applications. McGraw-Hill, 2018.
- Feller, W. An Introduction to Probability Theory and Its Applications. Wiley, 1968.
- Tucker, A. Applied Combinatorics. Wiley, 2012.
- Grimaldi, R.P. Discrete and Combinatorial Mathematics. Pearson, 2003.
- Graham, R., Knuth, D., and Patashnik, O. Concrete Mathematics. Addison-Wesley, 1994.
Related Calculators
Browse all Statistics calculators →Combination Calculator
Calculate the number of combinations C(n,r) — unordered selections.
Probability Calculator
Calculate basic probability, combined events, and conditional probability.
Binomial Distribution Calculator
Calculate binomial probability P(X=k), cumulative probabilities, mean, and variance.