Permutation & Combination Calculator
Enter n and r to calculate permutations (nPr), combinations (nCr), and factorials (n!, r!). Permutations/combinations with repetition and the formulas are shown too.
Enter n as an integer of 0 or more, and r as an integer from 0 to n.
Input:
Factorials
Formulas
- nPr = n! / (n−r)!
- nCr = n! / (r! × (n−r)!)
- Perm. with repetition = n^r
- Comb. with repetition nHr = (n+r−1)! / (r! × (n−1)!)
How to Use
Enter n and r
Enter integers for "n (total)" and "r (chosen)". To choose 3 from 10, set n=10 and r=3.
Calculate
Press "Calculate" to see permutations (nPr), combinations (nCr), factorials, and the repetition variants all at once.
Review the Results & Formulas
Check the formula for each result, and copy any value you need with the copy button.
About Permutations and Combinations
A permutation (nPr) is the number of ways to choose r items from n and arrange them in order; a combination (nCr) is the number of ways to choose r items from n without regard to order. A factorial (n!) is the product of all integers from 1 to n. In addition to permutations, combinations, and factorials, this tool also computes permutations with repetition (n^r) and combinations with repetition (nHr). Everything runs in your browser, and BigInt keeps the results accurate even for very large numbers.
Features
- nPr, nCr & Factorials at OnceShows nPr, nCr, n!, r!, and (n−r)! together — no need to recalculate repeatedly.
- Repetition VariantsAlso computes permutations with repetition (n^r) and combinations with repetition (nHr).
- Formulas ShownEach result includes its formula, so you can verify your reasoning, not just the answer.
- Accurate Large Numbers (BigInt)Powered by BigInt for accurate results without overflow, even for huge factorials.
Use Cases
- Checking probability and counting homework or exam answers
- Counting arrangements like seating, lottery, or ordering
- Counting team splits and group selections
- Finding the counts used in probability numerators and denominators
- Verifying combinatorial counts while programming
FAQ
What is the difference between a permutation (nPr) and a combination (nCr)?
What are permutations and combinations with repetition?
What happens when r is greater than n?
Can it accurately handle very large numbers?
Are the numbers I enter sent to a server?
Feedback
Missing a feature, or getting a result that looks wrong? Let us know — we improve our tools based on your feedback.