← Math Calculators

Permutation & Combination Calculator

Use this free permutation calculator to count ordered arrangements and unordered selections from n items taken r at a time. Enter n and r to get P(n, r) and C(n, r), with the factorial formulas behind each result.

How it works

Permutations and combinations both count ways to choose r items from n, but they answer different questions. A permutation counts ordered arrangements, so picking A then B is different from picking B then A. A combination counts unordered selections, so A and B together is one choice no matter the order. The formulas are P(n, r) = n! / (n - r)! and C(n, r) = n! / ((n - r)! r!), where n! means n factorial, the product of every whole number from 1 to n.

The number of items chosen, r, can never be larger than the total number of items, n. When r equals n, there is only one combination (take everything) but n! permutations, since every ordering of all the items counts separately. When r is 0, both answers are 1: there is exactly one way to choose nothing.

A practical use is sizing up odds and options. Permutations fit jobs like arranging books on a shelf or assigning distinct prizes, while combinations fit lottery draws, committee picks, and card hands, where only the set of items matters and the order they were drawn in does not.

Example: Choosing 3 items from 10 gives 720 permutations (order matters) and 120 combinations (order does not).

Frequently asked questions

What is the difference between a permutation and a combination?

A permutation counts ordered arrangements, so picking A then B is different from picking B then A. A combination counts unordered selections, so A and B together is one choice no matter the order.

How do I calculate P(n, r)?

Enter the total number of items n and the number chosen r. The calculator uses P(n, r) = n! / (n - r)!, where n! is n factorial, the product of every whole number from 1 to n.

What happens if r is bigger than n?

The calculator tells you that r cannot be greater than n. You cannot choose more items than you have, so enter an r that is equal to or smaller than n.

More Math Calculators

← Back to all calculators