Permutation Calculator

Calculate nPr — the number of ordered arrangements of r items chosen from n items.

Step-by-step Solution

How to use

  • Enter n
    The total number of distinct items in your set. Example: 10 players on a team.
  • Enter r
    How many items you are choosing and arranging. Example: choosing 3 players for 1st, 2nd, 3rd place.
  • Without repetition (nPr)
    Each item can only be used once. Order matters. Formula: n! ÷ (n − r)!
  • With repetition (nʳ)
    Items can be reused. Order matters. Formula: nʳ. Example: PIN codes where digits can repeat.

Formula Reference

P(n, r) = n! ÷ (n − r)!
Without repetition
P = nʳ
With repetition

Quick Examples

nrnPrMeaning
52205 items, pick 2 ordered
10372010 items, pick 3 ordered
525311,875,200Card hands ordered

What is a Permutation?

A permutation is an ordered arrangement of items from a set. Unlike combinations, the order of selection matters in permutations. For example, the arrangements ABC and BAC are considered different permutations. Permutations are used in probability, statistics, cryptography, and everyday scenarios like ranking, scheduling, and security codes.

Permutation vs Combination

The key difference is order. In a permutation, order matters — choosing A then B is different from choosing B then A. In a combination, order does not matter — {A, B} is the same as {B, A}. For example, a 3-digit PIN where order matters is a permutation. Choosing 3 toppings for a pizza where order does not matter is a combination.

Frequently Asked Questions

What does n! mean?

n! (n factorial) is the product of all positive integers from 1 to n. For example, 5! = 5 × 4 × 3 × 2 × 1 = 120. Factorials grow extremely fast — 20! is already over 2 quintillion.

Can r be greater than n?

Without repetition, r cannot exceed n because you cannot arrange more items than you have. With repetition allowed, r can exceed n since items can be reused.

What is P(n, 0)?

P(n, 0) = 1 for any value of n. There is exactly one way to arrange zero items — the empty arrangement.

Related Calculators