Combinatorics Calculator
Calculate permutations, combinations, factorials, circular arrangements, and more instantly online. Includes formulas, step-by-step explanations, and educational breakdowns.
Combinatorics Calculator
Calculate permutations, combinations, factorials, circular arrangements, and multiset permutations instantly. Step-by-step formulas included. We do not collect or store what you enter.
Example Presets
Operation
Unordered selections — order does not matter
Values
Non-negative integer · max 1000
Must satisfy r ≤ n
Ctrl+Enter to recalculate
Select an operation and enter values to calculate.
Try one of the example presets to get started.
Related tools
Frequently Asked Questions
Why is 0! = 1?
By convention and mathematical consistency. The number of ways to arrange zero objects is exactly one — the empty arrangement. This also makes the permutation and combination formulas work correctly at edge cases like C(n, 0) = 1.
What is the difference between permutation with and without repetition?
Without repetition (standard nPr): once an item is selected it cannot be selected again. With repetition: each selection is independent and any item can appear multiple times. Example — a 4-digit PIN from digits 0–9 with repetition = 10^4 = 10,000. Without repetition = P(10,4) = 5,040.
When do I use combination with repetition?
Use it when selecting from a set of types where you can pick the same type multiple times and order doesn't matter. Classic example: choosing 3 ice cream scoops from 5 flavors (you can repeat flavors). Answer: C(5+3−1, 3) = C(7,3) = 35.
How large can n be before results become unreliable?
This calculator uses JavaScript BigInt for exact integer arithmetic, so results are mathematically precise for any n up to 1000. Beyond that, numbers have hundreds or thousands of digits and are displayed in scientific notation.
What is a multiset permutation?
A multiset permutation counts arrangements of a collection where some objects are identical. For example, the word MISSISSIPPI has 11 letters with repetitions: M×1, I×4, S×4, P×2. Distinct arrangements = 11! ÷ (1! × 4! × 4! × 2!) = 34,650.
What is the relationship between nCr and nPr?
nPr = nCr × r! — a permutation is a combination with the r selected items then arranged in all possible orders. Equivalently, nCr = nPr ÷ r!, dividing by r! removes the order.
Related Tools
Time Complexity Calculator
Estimate Big-O complexity growth.
Model Accuracy Calculator
Compute accuracy from predictions.
Dataset Split Calculator
Split datasets into train, validation, and test sets for machine learning.
F1 Score Calculator
Calculate the F1 score, precision and recall from a confusion matrix or from precision and recall values.
Standard Deviation Calculator
Calculate sample and population standard deviation with variance, quartiles, mode, and histogram/box plot visualization.
Subnet Calculator
Calculate subnet mask, network, and hosts.
IP Range Calculator
Determine IP address range.
CIDR Calculator
Calculate CIDR notation details.
Bandwidth Calculator
Estimate bandwidth usage.
Data Transfer Calculator
Calculate transfer time based on speed.
Checksum Calculator
Compute checksum for data validation.
File Size Converter
Convert file sizes (KB, MB, GB).