How to use the Permutation and Combination Calculator
- Enter the positive integer for the sample set into Total items (n).
- Enter the number of elements to select into Chosen (r).
- Review Combinations C(n, r) for unordered groups without duplicates.
- Check Permutations P(n, r) for ordered sequences without duplicates.
- Examine the repetition outputs if items can be chosen more than once.
How it works
The calculated results show the exact number of possible outcomes when selecting or ordering subsets from a larger pool. Permutations P(n, r) determine the number of ordered arrangements, where sequence matters, such as podium finishes or alphanumeric passcodes. Combinations C(n, r) determine the number of distinct groups where arrangement does not matter, such as lottery numbers or committee selections. Results with repetition reflect cases where items can be reused.
Calculations strictly follow standard combinatorics and mathematical notation defined by ISO 80000-2. The tool uses factorial operations: n! / (n − r)! for standard permutations and n! / (r!(n − r)!) for combinations. When repetition is permitted, the calculator applies exponential multiplication nʳ for ordered sequences and the stars-and-bars formula C(n + r − 1, r) for unordered collections, ensuring precise mathematical rigor across discrete probability applications.
Factorial values escalate exponentially. While standard arithmetic handles moderate values easily, computing extremely large inputs for total items can exceed standard 64-bit integer limits, causing precision loss or processing timeouts. For practical calculations, always ensure that n is greater than or equal to r for selections without repetition. In everyday applications, carefully verify whether order truly matters before selecting between permutation and combination results.
Formula
nPr = n! ÷ (n − r)!; nCr = n! ÷ (r!(n − r)!)
Worked example
From 10 items, choose 3 in 120 ways or arrange 3 in 720 ways.
Frequently asked questions
What is the main difference between a permutation and a combination?+
The primary difference is order. Permutations count ordered arrangements where sequence matters, such as entering a passcode or ranking contest winners. Combinations count unordered selections where only membership matters, such as choosing members for a project team or picking winning lottery numbers.
Can you give an example comparing nPr and nCr?+
From 10 items, choosing 3 people for an unranked committee yields 120 combinations, calculated as C(10, 3). If you instead award gold, silver, and bronze medals to 3 of those 10 people, the order matters, resulting in 720 permutations, calculated as P(10, 3).
What are the odds of winning a 6/49 lottery?+
In a standard 6/49 lottery, order does not matter and numbers cannot repeat. You calculate total possible outcomes using combinations: C(49, 6) equals 13,983,816. Therefore, the probability of winning the jackpot with a single ticket is exactly 1 in 13,983,816.
How does repetition change the calculation?+
When repetition is allowed, items can be selected multiple times. For ordered permutations, each pick has n independent options, giving nʳ possibilities. For unordered combinations, selections use the multiset formula C(n + r − 1, r), which accommodates identical items chosen repeatedly.
Can r be greater than n in permutations and combinations?+
Without repetition, Chosen (r) cannot exceed Total items (n) because you cannot select more unique items than exist in the set. However, with repetition allowed, r can be larger than n, such as rolling a six-sided die ten times.
✓ Written and reviewed by the Calcumia editorial team · Last updated: · How we build and check our calculators
Results are estimates for information only and are not financial, medical or legal advice.