Permutation, Combination & Factorial Calculator
HOTCalculate permutations (nPr), combinations (nCr), repeated combinations, and factorials (n!) with step-by-step reduction.
🚀 Recommended WorkflowWorkflow Chain
Tools recommended next in your workflow based on your current task.
Normal Distribution Z-Score & Binomial Probability Calculator
Calculate associated equations and statistical models next.
Margin of Error & 95% Confidence Interval Calculator
Calculate associated equations and statistical models next.
Percentage Master Calculator
Calculate associated equations and statistical models next.
Comprehensive Guide to Permutations (nPr), Combinations (nCr), and Factorials (n!)
Combinatorics forms the bedrock of modern quantitative disciplines, spanning cryptography entropy calculations, algorithm complexity evaluations, poker odds estimation, and machine learning hyperparameter grid search.
The fundamental decision when counting possibilities lies in two dimensions: does order matter (Permutation vs Combination), and are items allowed to repeat (Without vs With Repetition). Choosing the wrong model yields errors varying by orders of magnitude.
OrvoKit Permutation and Combination Calculator delivers exact mathematical solutions for factorials (n!), permutations (nPr), combinations (nCr), repeated permutations (nΠr), multiset combinations (nHr), and circular arrangements using native BigInt precision.
Mathematical Foundations of Combinatorial Operations
Derivation of fundamental formulas based on factorial algebra and division by symmetry groups.
Combinations divide permutations by r! to neutralize the internal ordering of selected items. Repeated combinations (nHr) utilize the classic Stars and Bars bijection method into an ordinary combination.
👉 The exact probability of jackpot victory is 1 in 8,145,060.
Combinatorial Models Classification Matrix
Four quadrants based on order sensitivity and item replacement
| Symbol | Name | Order Matters? | Replacement? | Formula | Real-World Application |
|---|---|---|---|---|---|
| n! | Factorial | Yes (Full order) | No | n × (n-1) × ... × 1 | Sequencing 5 sprinters across a finish line |
| nPr | Permutation | Yes (Ranked slots) | No | n! / (n - r)! | Electing President, VP, and Treasurer from 10 peers |
| nCr | Combination | No (Set subset) | No | n! / (r!(n - r)!) | Drawing 6 winning balls in a national lottery |
| nΠr | Permutation w/ Repetition | Yes (Position specific) | Yes | n^r | 4-digit numeric PIN password permutations (10^4) |
| nHr | Combination w/ Repetition | No (Tally counts) | Yes | (n + r - 1)Cr | Selecting 5 scoops from 3 ice cream flavors |
| (n-1)! | Circular Permutation | Rotational Equivalence | No | (n - 1)! | Arranging 6 guests around a round dining table |
How to Use
11. Select Calculation Mode
Choose between Combination (nCr), Permutation (nPr), Factorial (n!), Repeated Permutation, Repeated Combination, or Circular Permutation.
22. Input Total Items (n)
Enter the total pool size n as a non-negative integer.
33. Input Chosen Items (r)
Specify the number of items r to be selected or arranged (not required for n! and circular).
44. Review Steps & Copy
Inspect the exact step-by-step reduction formula and click [Copy Result] to save the formatted output.
Practical Industrial & Academic Use Cases
Everyday implementations in computer science, statistics, and game theory
Evaluating a password space of 94 ASCII characters over 8 positions yields 94^8 = 6.09×10^15 combinations to estimate brute-force cracking resistance.
Drawing 5 cards from a 52-card deck produces 52C5 = 2,598,960 total hands, used to set pay tables for video poker and card games.
Assigning 20 patients to a treatment group out of 100 participants leverages 100C20 to ensure unskewed randomized control trials.
💡 Expert Tips and Common Calculation Pitfalls
When computing 100C98, compute 100C2 instead: (100 × 99) / 2 = 4,950, avoiding 98 redundant multiplications.
Standard IEEE-754 double precision floats overflow above 21!. Always use arbitrary precision BigInt for exact factorials.
To solve nHr, imagine placing n-1 separators between r identical stars, producing (n+r-1)Cr slots.
⚠️ Common Pitfalls & Mistakes to Avoid
Frequently Asked Questions (FAQ)
Expert answers to the most frequently asked questions and edge cases.
Permutations account for the sequence or position of items (e.g. 1st, 2nd, 3rd place). Combinations treat groups as identical regardless of order (e.g. a team of 3 committee members).
Use nHr when you choose r items from n distinct categories, where each category can be picked multiple times, and the order of selection is irrelevant (e.g., buying 10 donuts from 4 flavors).
Factorial growth is super-exponential, outpacing exponential functions like 2^n or e^n. 10! is 3.6 million, 20! is 2.43 quintillion, and 70! exceeds the number of elementary particles in the known universe.
In a circle, rotating the entire arrangement by one seat does not alter the relative left-to-right neighbor relationships. Since there are n rotational symmetries for every arrangement, we divide n! by n, leaving (n - 1)!.
In a 6/45 format, matching 6 numbers is 1 in 45C6 = 8,145,060. To win 2nd tier (matching 5 numbers plus the bonus ball), there are 6C5 × 1 = 6 winning combinations, resulting in an exact odds ratio of 6 in 8,145,060 (1 in 1,357,510).
Because generating all permutations runs in O(n!) time, attempting to materialize permutations beyond n=10 (3.6 million items) in a web browser will exhaust JavaScript heap memory. Beyond n=10, compute analytical counts rather than brute-force array generation.