NordVPN
SponsoredStrict no-logs VPN with 6,400+ servers in 111 countries. Threat Protection blocks ads, trackers, and malware while you work online.
Get NordVPN →Compute permutations nPr = n! / (n−r)!, the number of ordered ways to arrange r items chosen from n. Enter n and r (with 0 ≤ r ≤ n) to get an instant, exact result for any combinatorics problem.
Enter n and r to see the number of permutations.
A permutation counts the number of ordered arrangements of r items selected from a set of n distinct items. Because order matters, choosing A then B is different from choosing B then A.
The formula is nPr = n! / (n−r)!. It requires 0 ≤ r ≤ n, since you cannot arrange more items than you have.
Use permutations when the order of selection matters, such as ranking finishers in a race or assigning roles. Use combinations when order does not matter, like picking a committee.
Permutations always produce equal or larger counts than combinations for the same n and r, because each unordered group corresponds to several ordered arrangements.
nPr is the number of permutations: ordered arrangements of r items chosen from n, calculated as n! / (n−r)!.
nPr counts ordered arrangements where order matters, while nCr counts combinations where order does not matter.
When r = n, nPr equals n!, the total number of ways to arrange all the items.
Yes. nP0 equals 1, representing the single way to arrange zero items (the empty arrangement).
That is not allowed. The formula requires 0 ≤ r ≤ n, because you cannot arrange more items than exist.
Strict no-logs VPN with 6,400+ servers in 111 countries. Threat Protection blocks ads, trackers, and malware while you work online.
Get NordVPN →Managed cloud hosting for WordPress and web apps on DigitalOcean, Vultr, and AWS. Fast setup, no server headaches.
Try Cloudways →