How to Calculate Permutations nPr

Calculates the number of ways to arrange r items chosen from n, nPr = n × (n−1) × … × (n−r+1), where the order matters.

A permutation counts the ways of choosing rr items from nn and arranging them in a row. The order matters.

nPr=n×(n1)××(nr+1)=n!(nr)!_nP_r = n \times (n-1) \times \cdots \times (n-r+1) = \dfrac{n!}{(n-r)!}

It is a product of rr factors: nn choices for the first place, n1n-1 for the second, and so on down.

Example

Pick 3 people out of 5 and award first, second and third place.

5P3=5×4×3=60_5P_3 = 5 \times 4 \times 3 = 60

There are 5 candidates for first place, 4 remaining for second and 3 for third, giving 5×4×3=605 \times 4 \times 3 = 60 arrangements.

Permutations or combinations?

The only difference is whether the order counts.

A permutation count is r!r! times the combination count, because each set of rr chosen items can be arranged in r!r! orders.

nCr=nPrr!_nC_r = \dfrac{_nP_r}{r!}

Use permutations when the arrangement carries meaning — rankings, seating, PIN codes. Use combinations when you are only selecting.