Permutation and Combination Calculator

Enter n (total number of items) and r (items to select) to calculate both permutations (nPr) and combinations (nCr) at once. The calculator returns the number of ordered arrangements and unordered selections, along with the step-by-step factorial breakdown for each formula.

The total size of the set you are choosing from.

How many items you want to choose from the set.

Whether the same item can be selected more than once.

Results

Permutations nPr (Order Matters)

--

Combinations nCr (Order Doesn't Matter)

--

Permutation Formula Used

--

Combination Formula Used

--

Permutations vs Combinations

Frequently Asked Questions

What is the difference between a permutation and a combination?

A permutation counts arrangements where order matters — choosing A then B is different from B then A. A combination counts selections where order does not matter — {A, B} and {B, A} are treated as the same group. Use permutations for rankings or sequences, and combinations for groups or subsets.

What are the formulas for nPr and nCr?

Without repetitions: nPr = n! / (n−r)! and nCr = n! / (r! × (n−r)!). With repetitions: nPr = n^r and nCr = (n+r−1)! / (r! × (n−1)!). The calculator applies the correct formula based on your repetition setting.

What is a combination?

A combination is a selection of r items from a set of n items where the order of selection does not matter. For example, choosing 2 colours from {Red, Green, Blue} gives 3 combinations: {R,G}, {R,B}, and {G,B}.

How many ways can n items be arranged?

All n distinct objects can be arranged in n! (n factorial) ways. For example, 4 objects can be arranged in 4! = 24 different ordered sequences.

What does 'without repetitions' mean?

Without repetitions means each item can only be selected once per arrangement or combination — like drawing cards from a deck without replacing them. With repetitions means the same item can appear more than once, like rolling a die multiple times.

How do I use this permutation and combination calculator?

Enter n (the total number of items in your set) and r (how many you want to choose). Select whether repetitions are allowed, and the calculator instantly displays both nPr and nCr results.

Why is a combination lock mathematically a permutation lock?

Because the order of numbers entered matters — entering 1-2-9 is different from 2-9-1. By definition, when order matters, we are dealing with permutations, not combinations. The common term 'combination lock' is a popular misnomer.

Can r be greater than n?

Without repetitions, r cannot exceed n — you cannot choose more items than exist in the set. If r > n with no repetitions, the result is 0. With repetitions allowed, r can be any positive integer regardless of n.

More Math Tools