Skip to content

Combination and Permutation Calculator

Calculate nCr and nPr with step-by-step factorial breakdowns. Understand when order matters.

Loading...
1. Enter the total number of items (n) in the set you are choosing from. 2. Enter the number of items (r) you are selecting or arranging. 3. Choose whether to calculate combinations (order does not matter) or permutations (order matters). 4. Review the result along with the step-by-step factorial expansion and cancellation. 5. Compare the nCr and nPr values side by side to understand the impact of ordering on the count.

About This Tool

Combinations and permutations are counting techniques that answer a deceptively simple question: how many ways can you choose or arrange items from a set? The difference between them comes down to whether order matters. Permutations count arrangements where order is significant (like ranking contestants), while combinations count selections where order does not matter (like choosing team members). This calculator handles both, showing you the formula, the factorial expansion, and the final result.

Enter the total number of items (n) and the number you are choosing (r), and the tool computes both nPr (permutations) and nCr (combinations) with a complete step-by-step breakdown. It expands the factorials, cancels common terms, and shows the arithmetic clearly so you can follow the logic and learn the process. This is especially helpful for students preparing for exams in statistics, discrete math, or probability.

Beyond academic exercises, these calculations appear in real-world scenarios more often than you might expect. Lottery odds, password complexity, sports brackets, committee formation, DNA sequence analysis, poker hand probabilities, and experimental design all rely on combinatorics. This tool gives you quick, accurate answers with the mathematical reasoning to back them up.

Formula / How It Works

nPr = n! / (n - r)! | nCr = n! / (r! x (n - r)!) | n! = n x (n-1) x (n-2) x ... x 1

Frequently Asked Questions

A permutation is an arrangement where order matters - ABC is different from BAC. A combination is a selection where order does not matter - choosing A, B, C is the same as choosing B, C, A. Use permutations when ranking or sequencing matters (like race placements), and combinations when you are simply choosing a group (like lottery numbers).
The combination formula is nCr = n! / (r! x (n - r)!), where n is the total number of items and r is how many you choose. For example, choosing 3 items from 10: 10! / (3! x 7!) = 120. The formula divides out the different orderings of the same selection.
The permutation formula is nPr = n! / (n - r)!, where n is the total number of items and r is how many you are arranging. For example, arranging 3 items from 10: 10! / 7! = 720. This counts every distinct ordering of the chosen items.
A factorial (written as n!) is the product of all positive integers from 1 to n. For example, 5! = 5 x 4 x 3 x 2 x 1 = 120. By definition, 0! = 1. Factorials grow extremely fast - 20! is already over 2.4 quintillion, which is why calculators are helpful for these problems.
Lottery odds use combinations because the order you pick numbers does not matter. For a lottery where you choose 6 numbers from 49, the number of possible combinations is 49! / (6! x 43!) = 13,983,816. Your odds of winning the jackpot with one ticket are 1 in 13,983,816.

Related Tools

Probability Calculator

Calculate basic, conditional, and Bayesian probability with visual aids and step-by-step solutions.

Statistics and Data

Normal Distribution Calculator

Calculate z-scores, percentiles, and probabilities with an interactive bell curve visualization.

Statistics and Data

Random Number Generator

Generate random numbers within a range with options for count, uniqueness, and sorting.

Math and Numbers

Percentage Calculator

Calculate percentages, percentage change, difference, increase, and decrease instantly.

Math and Numbers

Standard Deviation Calculator

Calculate mean, variance, and standard deviation for both population and sample data sets instantly.

Statistics and Data

Final Grade Calculator

Determine what grade you need on the final exam to achieve your target course grade based on current standing.

Education and Academic