Permutation Calculator
Free online **permutation calculator** — **calculate permutations (nPr)** instantly with step-by-step results. Our **nPr calculator** helps you find how many ways to arrange and order items from a group where **order does matter**. Whether you need to **calculate permutations** for lottery odds, password combinations, seating arrangements, or probability problems, this tool provides accurate results with detailed explanations.
How to Use the Permutation Calculator
Interactive calculator available after JavaScript loads.
Loading calculator...
Mathematics Content Editor — Mathematics education and probability theory
Looking for a deeper explanation?
Read our comprehensive, peer-reviewed educational article in our Blog to learn the underlying math, formulas, and step-by-step examples.
Mathematical Formula & Logic
Step-by-Step Worked Calculation
Scenario: Creating a 3-Digit Lock Combination
Find the number of ways to create a 3-digit passcode from the numbers 0 to 9, where digits cannot repeat.
Step 1: Set n = 10 (total digits available) and r = 3 (passcode length).
Step 2: Apply the permutation formula: P(10, 3) = 10! / (10 - 3)! = 10! / 7!.
Step 3: Calculate 10! / 7! = 10 × 9 × 8 = 720.
Step 4: There are 720 unique permutations — 720 different possible 3-digit passcodes.
Step 5: The probability of guessing the correct code is 1 in 720 (approximately 0.139%).
How to Use the Permutation Calculator
- 1. Enter the total number of items in the set (n) in the first field.
- 2. Enter the number of items to select and arrange (r) in the second field.
- 3. Toggle repetition mode if selecting items multiple times.
- 4. Review the step-by-step **permutation formula** breakdown and final arrangements count.
- 5. Copy or share your permutation results.
What Is a Permutation Calculator?
A permutation is an ordered arrangement of items from a set. Unlike combinations where order is irrelevant, permutations count every distinct ordering as unique. The nPr formula calculates the number of ways to arrange r items selected from n total items.
Why This Calculation Matters
Permutations are fundamental to probability theory, cryptography, genetics, and computer science. They help calculate the number of possible outcomes when order matters, such as password strength analysis, lottery probability, scheduling problems, and algorithm complexity.
Historical Background
The study of permutations dates back to ancient Indian and Chinese mathematics. The formal notation and factorial formula were developed by European mathematicians in the 17th-18th centuries, with significant contributions from Leibniz, Euler, and later Laplace.
Common Mistakes to Avoid
- Confusing permutations (order matters) with combinations (order does not matter)
- Using the formula when r > n without repetition — this is mathematically impossible
- Forgetting that 0! = 1, which affects edge cases in the formula
- Attempting to calculate factorials of negative numbers
- Ignoring the difference between permutations with and without repetition
E-E-A-T Authority & Trust Statement
This calculator is for educational and informational purposes. Results should be verified for critical applications such as cryptographic password strength analysis.
Frequently Asked Questions
Complete indexable directory of answers (26 questions)
What is a permutation calculator?
A permutation calculator computes the number of ways to arrange and order items from a group where order matters. Our nPr calculator uses the permutation formula P(n,r) = n! / (n-r)! to give instant results with step-by-step explanations.
How do I calculate permutations?
To calculate permutations, use the formula nPr = n! / (n - r)!, where n is the total items and r is the number arranged. For example, P(10,3) = 720. Our online permutation calculator does this automatically with detailed steps.
What is the difference between permutations and combinations?
In permutations, order matters — AB and BA are different. In combinations, order does not matter — {A,B} equals {B,A}. Use our permutation calculator for ordered arrangements, or our combination calculator for unordered selections.
What is the permutation formula?
The permutation formula is P(n,r) = n! / (n-r)!, also written as nPr. This counts the number of ways to arrange r items selected from a set of n items where the order of selection matters.
What is a permutation with repetition?
When repetition is allowed, the formula simplifies to n^r, because each of the r choices has n available options. For example, a 4-digit PIN where digits can repeat gives 10^4 = 10,000 permutations.
What are permutations used for?
Permutations are used in cryptography (password strength), probability (lottery odds), scheduling (race finishing orders), genetics (gene sequencing), and anywhere the order of selection matters.
Is this permutation calculator free?
Yes, this free permutation calculator is 100% free with no signup required. Calculate nPr permutations online with step-by-step results instantly.
Can r be larger than n in a permutation?
No. Without repetition, you cannot select more items than you have in the pool. Therefore, r must be less than or equal to n. With repetition allowed, r can exceed n.
What does nPr mean?
nPr stands for "n permutations of r" or "n taken r at a time." It represents the number of ways to arrange r items chosen from a set of n distinct items where order matters.
What is 5P3?
5P3 = 5! / (5-3)! = 5! / 2! = 60. There are 60 unique ways to arrange 3 items selected from a group of 5. Our nPr calculator computes this instantly.
How many permutations of 4 letters from the alphabet?
P(26, 4) = 26! / 22! = 26 × 25 × 24 × 23 = 358,800 permutations. Our permutation calculator with steps shows the full calculation.
What is 0 factorial?
0! = 1 by mathematical convention. This ensures the permutation formula works correctly for edge cases, such as when r = n (all items selected).
How do permutations relate to the binomial theorem?
Permutations count ordered arrangements while combinations count unordered ones. The relationship is P(n,r) = C(n,r) × r!, where C(n,r) is the binomial coefficient.
What is a circular permutation?
In circular permutations, arrangements that can be rotated into each other are considered the same. The formula is (n-1)!, which accounts for rotational equivalence.
What is a permutation of a multiset?
When items repeat, the formula becomes n! / (n1! × n2! × ... × nk!), where n1, n2, etc. are the counts of each repeated item. This avoids counting duplicate arrangements.
How does repetition affect permutation count?
With repetition, each position has n choices regardless of previous selections, giving n^r total permutations. Without repetition, each position has progressively fewer choices.
What is the maximum nPr value this calculator handles?
This calculator handles values up to n = 170, beyond which JavaScript floating-point arithmetic reaches infinity. Results for large values are displayed in scientific notation.
Can I use letters instead of numbers?
Yes! The permutation formula works regardless of what the items represent. Whether arranging letters, digits, objects, or people, the mathematical calculation is identical.
How many permutations of 3 items from 7?
P(7,3) = 7! / 4! = 7 × 6 × 5 = 210 permutations. This means there are 210 different ordered arrangements of 3 items selected from 7.
What is a derangement?
A derangement is a permutation where no element appears in its original position. The number of derangements of n items is !n = n! × Σ((-1)^k / k!) for k = 0 to n.
How do permutations apply to probability?
Permutations help calculate the number of favorable outcomes in probability problems where order matters. For example, the probability of drawing 3 specific cards in order is 1/P(52,3).
What is the relationship between P(n,r) and C(n,r)?
P(n,r) = C(n,r) × r!. This means permutations equal combinations multiplied by the number of ways to arrange the selected items. Permutations always produce larger values.
What is the permutation calculator formula in plain English?
The permutation formula says: multiply n × (n-1) × (n-2) × ... × (n-r+1). This gives you the number of ways to fill r positions with n available items where order matters.
What mathematical formula does the Permutation Calculator use?
The Permutation Calculator uses standard mathematical formulas validated against authoritative references. The specific formula is displayed in the calculator interface with a detailed explanation of each variable.
How can I verify the Permutation Calculator results manually?
Each calculator includes a step-by-step worked example showing exactly how the formula is applied. You can follow these steps with pen and paper to verify any result.
What types of inputs does the Permutation Calculator accept?
The Permutation Calculator accepts numeric inputs including integers and decimals. Invalid inputs (letters, special characters) are rejected with clear error messages.