Permutation (nPr): Order matters - different arrangements of the same items count separately (e.g., ABC ≠ BAC)
Combination (nCr): Order doesn't matter - different arrangements of the same items are considered the same (e.g., ABC = BAC)
Example 1: Password with 5 digits from 0-9
Use Permutation: 10P5 = 30,240 possible passwords (order matters)
Example 2: Choosing 3 team members from 10 people
Use Combination: 10C3 = 120 possible teams (order doesn't matter)
Example 3: Arranging 3 books on a shelf from 7 books
Use Permutation: 7P3 = 210 possible arrangements (order matters)
Permutations and combinations are fundamental concepts in combinatorics, a branch of mathematics that deals with counting, arrangement, and selection of objects. These concepts are essential for solving problems in probability, statistics, data science, and various real-world applications. Understanding the difference between permutation and combination is crucial for choosing the right calculation method.
A permutation is an arrangement of objects where the order matters. The notation nPr (or P(n,r)) represents the number of ways to arrange r items selected from a set of n distinct items. The formula for permutations is:
nPr = n! / (n - r)!
For example, if you have 5 books and want to arrange 3 of them on a shelf, the number of different arrangements is 5P3 = 5! / (5-3)! = 120 / 2 = 60. Each different ordering (ABC vs BAC) counts as a separate permutation.
A combination is a selection of objects where the order does not matter. The notation nCr (or C(n,r)) represents the number of ways to choose r items from a set of n distinct items. The formula for combinations is:
nCr = n! / (r! × (n - r)!)
Using the same example, if you have 5 people and want to choose 3 for a committee, the number of different committees is 5C3 = 5! / (3! × 2!) = 120 / (6 × 2) = 10. Here, selecting persons A, B, and C is the same as selecting C, B, and A.
The primary difference lies in whether order matters:
Understanding when to use permutations versus combinations is essential in many practical scenarios:
Both permutation and combination formulas rely on factorials. A factorial (n!) is the product of all positive integers from 1 to n. For example, 5! = 5 × 4 × 3 × 2 × 1 = 120. Factorials grow extremely rapidly, which is why our calculator uses efficient algorithms to handle large numbers without calculating the full factorial when possible.
When working with permutations and combinations, avoid these common errors:
Several important mathematical properties govern permutations and combinations:
Yes, Permutation & Combination Calculator is totally free :)
Yes, you can install the webapp as PWA.
Yes, any data related to Permutation & Combination Calculator only stored in your browser(if storage required). You can simply clear browser cache to clear all the stored data. We do not store any data on server.
Permutation (nPr) counts arrangements where order matters, while combination (nCr) counts selections where order doesn't matter. For example, ABC and BAC are different permutations but the same combination.
Permutation is calculated using the formula nPr = n! / (n - r)!, where n is the total number of items and r is the number of items to arrange. For example, 5P3 = 5! / (5-3)! = 120 / 2 = 60.
Combination is calculated using the formula nCr = n! / (r! × (n - r)!), where n is the total number of items and r is the number of items to choose. For example, 5C3 = 5! / (3! × 2!) = 120 / (6 × 2) = 10.
Both n and r must be non-negative integers, and r must be less than or equal to n. For performance reasons, this calculator works best with n values up to 170 (due to JavaScript's number precision limits). For larger values, results may be approximate.
Use permutation when the order of selection matters (e.g., ranking top 3 winners, arranging books on a shelf). Use combination when order doesn't matter (e.g., choosing team members, selecting lottery numbers).
This calculator uses efficient algorithms to handle numbers up to n=170. Beyond this, JavaScript's number precision limits may cause overflow. The calculator will warn you if values are too large.