Free online tools

Permutation and Combination Calculator

Enter the number of distinct available items and how many are selected without replacement. See the result for both ordered and unordered selections.

Enter your values

This tool processes your input in your browser.

Result

Count arrangements when order matters

To assign three distinct roles to people drawn from ten, there are ten choices for the first role, nine for the second and eight for the third. Multiply to get 720 ordered arrangements. This is nPr, or n! ÷ (n − r)!.

Count groups when order is irrelevant

For an unordered committee, each group of three would be counted 3! = 6 times in the ordered calculation. Divide 720 by 6 to get 120 committees. This is nCr, or n! ÷ (r! × (n − r)!).

Check what your model is counting

Each item is distinct and can appear once in a selection. A problem that reuses items or treats some items as identical needs a different counting rule. The calculator computes the two specified counts exactly with integer arithmetic.

Frequently asked questions

Why do I get one when I choose zero?

There is exactly one empty selection or arrangement. The formulas give 1 because 0! is defined as 1.

Why is nCr the same as choosing n − r?

Selecting r items determines which n − r items are left out. Each selection pairs with exactly one complement.

Is a large result rounded?

No. Large counts are printed in full in the copyable result. The input limit for n is 1,000.

Count possible selections or make actual groups

The combination result counts possible selections; it does not assign people to teams. To place every participant in a team, use the random group generator from a list of names. Choose a group count and generate one set of groups with each person included once. Group sizes differ by at most one.