Combination and Permutation Calculator
Fill in the values and click Calculate to see results
Example 1
Solution
Answer
Source: Rosen, Discrete Mathematics and Its Applications
Example 2
Solution
Answer
Source: OpenStax Introductory Statistics, counting chapter
Example 3
Solution
Answer
Source: Graham, Knuth & Patashnik, Concrete Mathematics
Example 4
Solution
Answer
Source: NIST digital identity guidance background
References
- [1]NIST, NIST/SEMATECH e-Handbook of Statistical Methods. https://www.itl.nist.gov/div898/handbook
- [2]Khan Academy, Statistics and probability: counting, permutations, and combinations. https://www.khanacademy.org/math/statistics-probability/counting-permutations-and-combinations
- [3]McGraw-Hill, Discrete Mathematics and Its Applications, 2018.
- [4]Addison-Wesley, Concrete Mathematics: A Foundation for Computer Science, 1994.
- [5]OpenStax, Rice University, OpenStax Introductory Statistics. https://openstax.org/details/introductory-statistics
Glossary
- Combination – A selection of k items from a pool of n where the order of selection does not matter, counted by C(n, k) = n!/[k!(n−k)!].
- Permutation – An arrangement of k items from a pool of n where order is part of the outcome, counted by P(n, k) = n!/(n−k)!.
- Factorial – The product of every whole number up to n, written n!. It counts full arrangements of n items and is the engine behind every counting formula.
- Repetition – Whether a chosen item returns to the pool. Without repetition each item is available at most once; with repetition items can be chosen again, as in password characters or DNA bases.
- n choose k – The spoken name for C(n, k), the binomial coefficient counting unordered selections of k items from n.
- Pascal’s triangle – The triangular array whose row n lists C(n, 0) through C(n, n). Each entry is the sum of the two above, and each row sums to a power of two.
- Binomial coefficient – The number C(n, k), named for its role as the coefficient of the a-to-the-(n−k) b-to-the-k term in the expansion of (a + b) to the n.
- Multiplicative formula – The method computing C(n, k) as a product of k fractions, avoiding the huge intermediate values that direct factorial division produces.
- Falling factorial – The product n × (n−1) × … × (n−k+1) that equals P(n, k), the count of ordered selections without repetition.
- Key space – The total count of possible keys or passwords in a scheme, a with-repetition permutation that determines brute-force resistance.
- Stars and bars – The construction turning a with-repetition combination into a without-repetition one by imagining k stars among n−1 dividers, giving C(n+k−1, k).
- Stirling’s approximation – The formula n! ≈ √(2πn)(n/e)ⁿ estimating factorials too large for exact computation, the working tool beyond this calculator’s 170 ceiling.
How to Use?
- 1
Choose what you are counting
Select Combination when order does not matter, Permutation when it does, or Factorial to count arrangements of everything at once. The swap test above the form settles the choice: if rearranging the picked items changes the outcome, use Permutation.
- 2
Enter the pool and the pick
Type the pool size n and the pick size k as whole numbers – 49 and 6 for the lottery draw, 10 and 3 for the podium. Inputs are validated as whole numbers, and k beyond n is flagged as an error in the without-repetition setting.
- 3
Set the repetition rule
Keep Without Repetition for deals, hands, and draws from a single pool. Switch to With Repetition for passwords, sequences, and scoops – anything where an item can be picked again.
- 4
Read the result
The exact count appears with its formula label, such as C(49, 6). Digit grouping keeps large counts readable – 13,983,816 rather than a scientific blob.
- 5
Compare the repetition settings
The repetition comparison output shows the same n and k under the opposite repetition rule. To see the order-matters premium too, switch the mode selector and recalculate: the same numbers run through the other formula in one click.
- 6
Check Pascal’s row
The bar chart in the results plots row n of Pascal’s triangle with your k highlighted, showing how your selection sits within the row’s full landscape of subset sizes.
- 7
Apply the one-in-X line
When outcomes are equally likely, the probability line converts your count to odds of a single specific selection – the lottery’s 1 in 13,983,816 directly.