Permutation Calculator
Calculate ordered selections nPr.
Free online tool by SOCE. Check inputs and results before using them for important decisions.
Permutation Calculator – Free Online nPr Formula Guide
The SOCE Permutation Calculator page helps students, teachers, engineers, researchers, and mathematics learners understand permutations, factorials, ordered arrangements, and counting principles through mathematical formulas and worked examples.
Permutations are an important part of combinatorics, the branch of mathematics concerned with counting and arranging objects. They are used in probability, statistics, mathematics, computer science, engineering, and experimental planning.
Whether you are studying the nPr formula, permutations without repetition, arrangements with repetition, or the difference between permutations and combinations, this Permutation Calculator resource provides explanations to strengthen your understanding.
What Is a Permutation Calculator?
A Permutation Calculator is a mathematical tool used to determine the number of possible ordered arrangements or selections of objects under specified conditions.
The most important characteristic of a permutation is that order matters.
For example, suppose three students named A, B, and C are competing for first and second place.
Possible ordered results include:
AB, AC, BA, BC, CA, CB
There are six possible arrangements.
Notice that AB and BA are different because the order of the students changes.
The number of arrangements is:
3P2 = 6
This illustrates the basic principle of permutations.
Permutation Calculator Formula (nPr)
The standard permutation formula for selecting r distinct objects from n distinct objects without replacement, when order matters, is:
nPr = n! / (n − r)!
Where:
- n = total number of distinct available objects.
- r = number of objects selected and arranged.
- n! = factorial of n.
- (n − r)! = factorial of the difference.
- nPr = number of ordered selections.
The formula applies when n and r are non-negative integers and:
0 ≤ r ≤ n
Worked Example
Find:
5P3
Using the formula:
5P3 = 5! / (5 − 3)!
= 5! / 2!
= (5 × 4 × 3 × 2 × 1)/(2 × 1)
= 5 × 4 × 3
Answer: 60 permutations
Therefore, five distinct objects can be selected and arranged three at a time in 60 different ways.
How to Use the Permutation Calculator
For a standard permutation problem, follow these steps:
- Identify the total number of distinct objects, n.
- Identify how many objects must be arranged, r.
- Determine whether order matters.
- Check whether objects can be repeated.
- Select the appropriate counting formula.
- Substitute the values into the formula.
- Simplify the factorial expression.
- Verify that the result is a non-negative integer.
For example:
n = 6
r = 2
Without repetition:
6P2 = 6! / 4!
= 6 × 5
Answer: 30
This means there are 30 possible ordered selections of two objects from six distinct objects.
Understanding Factorials in Permutations
Factorials are fundamental to permutation calculations.
The factorial of a non-negative integer n is written as:
n!
For n ≥ 1:
n! = n × (n − 1) × (n − 2) × … × 2 × 1
By definition:
0! = 1
Examples:
- 1! = 1
- 2! = 2
- 3! = 6
- 4! = 24
- 5! = 120
- 6! = 720
Factorials grow rapidly as n increases.
Why Is 0! Equal to 1?
The value 0! = 1 is consistent with the empty product convention and the factorial recurrence.
It also makes the permutation formula work when r = n.
For example:
5P5 = 5! / 0!
= 120/1
Answer: 120
Permutation Calculator Without Repetition
Permutations without repetition involve selecting and arranging distinct objects when each object can be used at most once.
The formula is:
nPr = n! / (n − r)!
Example: Assigning Positions
Suppose six students are competing for three different positions:
- President
- Vice President
- Secretary
Each student can hold at most one position.
The number of arrangements is:
6P3 = 6! / 3!
= 6 × 5 × 4
Answer: 120 arrangements
Because the positions are different, changing the assignment changes the arrangement.
Permutation Calculator With Repetition
When repetition is allowed, each of the r positions can be filled by any of the n available choices.
The number of ordered sequences is:
nʳ
This assumes that all n choices remain available for every position.
Worked Example
Suppose a three-character code uses digits from 0 to 9.
Digits may be repeated, and leading zeros are allowed.
There are 10 choices for each position.
Number of possible codes:
10 × 10 × 10
= 10³
Answer: 1,000 codes
If repetition were not allowed, the number would instead be:
10P3 = 10 × 9 × 8
Answer: 720 codes
This demonstrates why repetition rules must be identified before choosing a formula.
Permutation Calculator for All Objects
When all n distinct objects are arranged in order, the number of permutations is:
n!
Worked Example
How many ways can five different books be arranged on a shelf?
Number of arrangements:
5! = 5 × 4 × 3 × 2 × 1
Answer: 120 arrangements
No selection is required because all five books are used.
Permutations of Identical Objects
When some objects are identical, exchanging identical objects does not produce a new distinguishable arrangement.
For n total objects containing groups of identical objects with counts n₁, n₂, …, nₖ, the number of distinguishable linear arrangements is:
n! / (n₁! × n₂! × … × nₖ!)
The group counts must satisfy:
n₁ + n₂ + … + nₖ = n
Worked Example: Arranging Letters
How many distinct arrangements can be formed from the letters in the word LEVEL?
The word contains five letters:
L, E, V, E, L
There are:
- Two L letters.
- Two E letters.
- One V letter.
The number of distinguishable arrangements is:
5! / (2! × 2! × 1!)
= 120/4
Answer: 30 arrangements
This formula applies to complete linear arrangements of the specified multiset.
Permutation Calculator vs Combination Calculator
Permutations and combinations are related but different counting methods.
A permutation is used when order matters.
A combination is used when order does not matter.
Permutation Formula
nPr = n! / (n − r)!
Combination Formula
nCr = n! / [r!(n − r)!]
Worked Comparison
Suppose five students are available, and two must be selected.
If the students are assigned first and second place:
5P2 = 5 × 4
20 permutations
If two students are selected for a team without different roles:
5C2 = 5!/(2!3!)
10 combinations
The relationship is:
nPr = nCr × r!
Each unordered selection of r distinct objects can be arranged in r! different orders.
Permutation Calculator for Circular Arrangements
Circular permutations involve arranging objects around a circle.
For n distinct objects around a circular table, when arrangements differing only by rotation are considered identical:
Number of circular arrangements = (n − 1)!
Worked Example
How many ways can five distinct people sit around a circular table if rotations are considered identical?
Number of arrangements:
(5 − 1)! = 4!
Answer: 24 arrangements
This formula treats clockwise and counterclockwise arrangements as different unless they are related by rotation.
If reflections are also considered identical, a different counting rule may apply.
Permutation Calculator for Probability Problems
Permutations can help count ordered outcomes in probability calculations.
When all elementary outcomes are equally likely:
P(A) = Number of favourable outcomes / Total number of possible outcomes
Worked Example
Three different students are selected in order from five students.
What is the probability that a specified student is selected first?
Total ordered selections:
5P3 = 60
Favourable selections:
After the specified student is placed first, the remaining two positions can be filled in:
4P2 = 12 ways
Therefore:
P(A) = 12/60
Answer: 1/5 = 20%
This assumes all ordered selections are equally likely.
Permutation Calculator for Password and Code Arrangements
Permutation formulas are useful for counting possible codes when the available characters and repetition rules are specified.
Example: Four-Digit Codes Without Repetition
Suppose a code contains four digits selected from 0 to 9.
Each digit can be used only once, and leading zeros are permitted.
The number of codes is:
10P4 = 10 × 9 × 8 × 7
Answer: 5,040 codes
If leading zeros are not permitted, the counting process changes.
For a four-digit number with distinct digits:
- First digit: 9 choices.
- Second digit: 9 choices.
- Third digit: 8 choices.
- Fourth digit: 7 choices.
Therefore:
9 × 9 × 8 × 7
Answer: 4,536 four-digit numbers
The distinction between a code and a number is important in counting problems.
Permutation Calculator for Engineering and Research
Permutations are useful in engineering when the sequence or assignment of distinct activities, objects, or experimental conditions matters.
Experimental Test Sequences
Suppose four different laboratory tests must be performed in a specific order.
The number of possible test sequences is:
4! = 24
This can be relevant when planning experimental sequences, although practical constraints may reduce the number of feasible orders.
Construction Activity Scheduling
Permutations can describe the number of possible sequences for distinct activities.
However, real construction schedules must satisfy precedence relationships, resource availability, and safety constraints.
Therefore, the number of mathematically possible permutations is not necessarily the number of feasible construction schedules.
Engineering Data Processing
Permutation concepts appear in data ordering, algorithm design, ranking, and combinatorial optimisation.
Structural Engineering Research
Permutations may be useful when considering ordered experimental configurations, sensor assignments to distinct locations, or sequences of testing conditions.
The appropriate counting method depends on whether order, repetition, and physical constraints matter.
Common Mistakes When Calculating Permutations
- Confusing permutations with combinations: Use permutations when order matters.
- Ignoring repetition rules: Permutations with and without repetition use different formulas.
- Using nPr when r is greater than n: The standard without-repetition formula requires 0 ≤ r ≤ n.
- Forgetting that 0! = 1: This is essential when arranging all objects.
- Counting identical objects as distinct: Repeated identical objects require adjusted counting.
- Ignoring leading-zero restrictions: Codes and numbers may have different counting rules.
- Using linear arrangements for circular seating: Circular arrangements require appropriate treatment of rotational equivalence.
- Confusing selection with arrangement: Selecting objects without order is a combination problem.
- Ignoring physical or logical restrictions: Not every mathematical arrangement may be feasible.
- Making factorial arithmetic errors: Simplifying factorial ratios before multiplication can reduce mistakes.
Frequently Asked Questions About Permutation Calculator
1. What is a Permutation Calculator?
A Permutation Calculator is a mathematical tool used to count ordered arrangements or selections under specified conditions.
2. What is the nPr formula?
The standard formula is:
nPr = n!/(n − r)!
for non-negative integers satisfying 0 ≤ r ≤ n.
3. What is the difference between permutation and combination?
Permutation counts ordered selections, while combination counts selections without considering order.
4. What is the value of 5P3?
5P3 = 5!/(5 − 3)! = 60.
5. What is the value of 6P2?
6P2 = 6!/4! = 30.
6. What does factorial mean?
Factorial is the product of all positive integers from 1 to the specified non-negative integer, with 0! defined as 1.
7. What is the value of 0!?
0! = 1.
8. How do you calculate permutations with repetition?
For r ordered positions and n available choices at every position, the number of sequences is nʳ.
9. How many ways can five different books be arranged?
Five distinct books can be arranged in 5! = 120 ways.
10. How do you count arrangements of repeated letters?
For complete linear arrangements, divide n! by the factorial of each repeated-letter count.
11. What is a circular permutation?
A circular permutation counts arrangements around a circle while accounting for the equivalence of rotations.
12. Why are permutations useful in engineering?
Permutations help count ordered sequences, assignments, experimental arrangements, and combinatorial possibilities.
Learn Permutations with SOCE
The SOCE Permutation Calculator page provides mathematical formulas, worked examples, and practical explanations of ordered arrangements and counting principles.
Use this Permutation Calculator resource to strengthen your understanding of nPr, factorials, permutations without repetition, repeated arrangements, circular permutations, and the distinction between permutations and combinations.
Explore additional free mathematics and engineering resources in the SOCE Advanced Mathematics collection.
n = 6
r = 2
Without repetition:
6P2 = 6! / 4!
= 6 × 5
Answer: 30
This means there are 30 possible ordered selections of two objects from six distinct objects.
Understanding Factorials in Permutations
Factorials are fundamental to permutation calculations.
The factorial of a non-negative integer n is written as:
n!
For n ≥ 1:
n! = n × (n − 1) × (n − 2) × … × 2 × 1
By definition:
0! = 1
Examples:
- 1! = 1
- 2! = 2
- 3! = 6
- 4! = 24
- 5! = 120
- 6! = 720
Factorials grow rapidly as n increases.
Why Is 0! Equal to 1?
The value 0! = 1 is consistent with the empty product convention and the factorial recurrence.
It also makes the permutation formula work when r = n.
For example:
5P5 = 5! / 0!
= 120/1
Answer: 120
Permutation Calculator Without Repetition
Permutations without repetition involve selecting and arranging distinct objects when each object can be used at most once.
The formula is:
nPr = n! / (n − r)!
Example: Assigning Positions
Suppose six students are competing for three different positions:
- President
- Vice President
- Secretary
Each student can hold at most one position.
The number of arrangements is:
6P3 = 6! / 3!
= 6 × 5 × 4
Answer: 120 arrangements
Because the positions are different, changing the assignment changes the arrangement.
Permutation Calculator With Repetition
When repetition is allowed, each of the r positions can be filled by any of the n available choices.
The number of ordered sequences is:
nʳ
This assumes that all n choices remain available for every position.
Worked Example
Suppose a three-character code uses digits from 0 to 9.
Digits may be repeated, and leading zeros are allowed.
There are 10 choices for each position.
Number of possible codes:
10 × 10 × 10
= 10³
Answer: 1,000 codes
If repetition were not allowed, the number would instead be:
10P3 = 10 × 9 × 8
Answer: 720 codes
This demonstrates why repetition rules must be identified before choosing a formula.
Permutation Calculator for All Objects
When all n distinct objects are arranged in order, the number of permutations is:
n!
Worked Example
How many ways can five different books be arranged on a shelf?
Number of arrangements:
5! = 5 × 4 × 3 × 2 × 1
Answer: 120 arrangements
No selection is required because all five books are used.
Permutations of Identical Objects
When some objects are identical, exchanging identical objects does not produce a new distinguishable arrangement.
For n total objects containing groups of identical objects with counts n₁, n₂, …, nₖ, the number of distinguishable linear arrangements is:
n! / (n₁! × n₂! × … × nₖ!)
The group counts must satisfy:
n₁ + n₂ + … + nₖ = n
Worked Example: Arranging Letters
How many distinct arrangements can be formed from the letters in the word LEVEL?
The word contains five letters:
L, E, V, E, L
There are:
- Two L letters.
- Two E letters.
- One V letter.
The number of distinguishable arrangements is:
5! / (2! × 2! × 1!)
= 120/4
Answer: 30 arrangements
This formula applies to complete linear arrangements of the specified multiset.
Permutation Calculator vs Combination Calculator
Permutations and combinations are related but different counting methods.
A permutation is used when order matters.
A combination is used when order does not matter.
Permutation Formula
nPr = n! / (n − r)!
Combination Formula
nCr = n! / [r!(n − r)!]
Worked Comparison
Suppose five students are available, and two must be selected.
If the students are assigned first and second place:
5P2 = 5 × 4
20 permutations
If two students are selected for a team without different roles:
5C2 = 5!/(2!3!)
10 combinations
The relationship is:
nPr = nCr × r!
Each unordered selection of r distinct objects can be arranged in r! different orders.
Permutation Calculator for Circular Arrangements
Circular permutations involve arranging objects around a circle.
For n distinct objects around a circular table, when arrangements differing only by rotation are considered identical:
Number of circular arrangements = (n − 1)!
Worked Example
How many ways can five distinct people sit around a circular table if rotations are considered identical?
Number of arrangements:
(5 − 1)! = 4!
Answer: 24 arrangements
This formula treats clockwise and counterclockwise arrangements as different unless they are related by rotation.
If reflections are also considered identical, a different counting rule may apply.
Permutation Calculator for Probability Problems
Permutations can help count ordered outcomes in probability calculations.
When all elementary outcomes are equally likely:
P(A) = Number of favourable outcomes / Total number of possible outcomes
Worked Example
Three different students are selected in order from five students.
What is the probability that a specified student is selected first?
Total ordered selections:
5P3 = 60
Favourable selections:
After the specified student is placed first, the remaining two positions can be filled in:
4P2 = 12 ways
Therefore:
P(A) = 12/60
Answer: 1/5 = 20%
This assumes all ordered selections are equally likely.
Permutation Calculator for Password and Code Arrangements
Permutation formulas are useful for counting possible codes when the available characters and repetition rules are specified.
Example: Four-Digit Codes Without Repetition
Suppose a code contains four digits selected from 0 to 9.
Each digit can be used only once, and leading zeros are permitted.
The number of codes is:
10P4 = 10 × 9 × 8 × 7
Answer: 5,040 codes
If leading zeros are not permitted, the counting process changes.
For a four-digit number with distinct digits:
- First digit: 9 choices.
- Second digit: 9 choices.
- Third digit: 8 choices.
- Fourth digit: 7 choices.
Therefore:
9 × 9 × 8 × 7
Answer: 4,536 four-digit numbers
The distinction between a code and a number is important in counting problems.
Permutation Calculator for Engineering and Research
Permutations are useful in engineering when the sequence or assignment of distinct activities, objects, or experimental conditions matters.
Experimental Test Sequences
Suppose four different laboratory tests must be performed in a specific order.
The number of possible test sequences is:
4! = 24
This can be relevant when planning experimental sequences, although practical constraints may reduce the number of feasible orders.
Construction Activity Scheduling
Permutations can describe the number of possible sequences for distinct activities.
However, real construction schedules must satisfy precedence relationships, resource availability, and safety constraints.
Therefore, the number of mathematically possible permutations is not necessarily the number of feasible construction schedules.
Engineering Data Processing
Permutation concepts appear in data ordering, algorithm design, ranking, and combinatorial optimisation.
Permutation Calculator, Permutation Calculator Online, Free Permutation Calculator, nPr Calculator, Permutation Formula Calculator, Permutation Calculator with Steps, Permutation Without Repetition, Permutation With Repetition