Permutation & Combination Calculator
Calculate permutations (nPr), combinations (nCr), and factorials with step-by-step solutions.
Calculate permutations (nPr, ordered arrangements) and combinations (nCr, unordered selections) of items, including versions that allow repetition or arrange items in a circle.
How Permutation & Combination Calculator Works
In standard mode, permutations P(n,r) = n! / (n−r)! count the number of ordered arrangements of r items chosen from a set of n, while combinations C(n,r) = n! / (r!(n−r)!) count the same selections but ignore order — dividing out the r! different ways those r chosen items could themselves be arranged.
"With repetition" mode changes the counting rules entirely: permutations with repetition become n^r, since each of the r positions can independently be filled by any of the n available items (repeats allowed), while combinations with repetition use the "stars and bars" formula C(n+r−1, r).
Circular permutation mode computes (n−1)! instead of the usual n!, because rotating every item in a circular arrangement one position over doesn't create a genuinely new arrangement — fixing one item's position removes those redundant rotations from the count.
See It In Action
Who Uses Permutation & Combination Calculator and Why
- Figuring out how many distinct ways to award 1st, 2nd, and 3rd place among a group of competitors (a permutation problem).
- Determining how many possible committees of a given size can be formed from a larger group (a combination problem).
- Calculating how many PIN codes or passwords are possible when repeated digits or characters are allowed.
- Working out how many distinct seatings are possible around a circular table, where rotations don't count as new arrangements.
Mistakes to Avoid
- Using the permutation formula when order genuinely doesn't matter for the scenario, which overcounts the true number of distinct outcomes.
- Forgetting that 'with repetition' fundamentally changes the underlying formula (n^r for permutations, or the stars-and-bars C(n+r−1, r) for combinations) rather than just being a minor tweak to the standard one.
- Using n! instead of (n−1)! for a circular arrangement, which fails to account for rotations of the same arrangement being counted as identical.
Tips for Best Results
- Ask whether swapping two of your selected items creates a genuinely new outcome — if yes, you need a permutation; if no, you need a combination.
- For circular arrangements, remember one item's position is effectively fixed to remove redundant rotations, which is why the formula uses (n−1)! instead of n!.
Fixing Common Problems
My result seems far larger or smaller than the real-world scenario suggests. — Double-check whether repetition should actually be allowed, and whether order genuinely matters for your scenario — both settings change the formula used and can produce very different magnitudes.
Terms Explained
Factorial: The product of every positive integer up to a given number (n!), the building block for both permutation and combination formulas.
Stars and bars: A counting method behind the combinations-with-repetition formula C(n+r−1, r), used when the same item can be selected more than once.