Mathwords logoMathwords

Permutation Calculator — Definition, Formula & Examples

A permutation calculator computes how many ways you can arrange a chosen number of items from a larger set when the order matters. You enter the total number of items nn and the number you are choosing rr, and it returns P(n,r)P(n,r).

The permutation function P(n,r)P(n,r), also written nPr_nP_r, equals n!(n−r)!\dfrac{n!}{(n-r)!} and counts the number of injective functions from an rr-element set into an nn-element set, or equivalently, the number of distinct ordered rr-arrangements of nn distinct objects.

Use the Calculator

Open the existing Combination & Permutation Calculator and choose Permutation (P) in the Type menu. Enter non-negative integers n and r with r ≤ n and n ≤ 170, then press Calculate. The input controls are on the linked tool, not this explanation page.

Open the interactive calculator (on a separate Mathwords tool page).

Key Formula

P(n,r)=n!(n−r)!P(n,r) = \frac{n!}{(n-r)!}
Where:
  • nn = Total number of distinct items in the set
  • rr = Number of items being arranged (chosen and ordered)
  • !! = Factorial — the product of all positive integers up to that number

How It Works

In the linked Combination & Permutation Calculator, choose Permutation (P), then enter the total number of distinct items nn and the number to arrange rr. Use integers with 0≤r≤n0 \le r \le n. The formula counts arrangements without repetition: multiply n×(n−1)×⋯×(n−r+1)n \times (n-1) \times \cdots \times (n-r+1). For r=0r=0, the empty arrangement counts as one.

Worked Example

Problem: A club of 10 members elects a president, vice-president, and treasurer. How many ways can these 3 positions be filled?
Identify n and r: There are 10 members and 3 ordered positions, so n=10n = 10 and r=3r = 3.
Apply the formula: Substitute into the permutation formula.
P(10,3)=10!(10−3)!=10!7!P(10,3) = \frac{10!}{(10-3)!} = \frac{10!}{7!}
Simplify: Cancel 7!7! from numerator and denominator, leaving only the top three factors of 10!10!.
10×9×8=72010 \times 9 \times 8 = 720
Answer: There are 720 ways to fill the three positions.

Why It Matters

Permutation calculations appear constantly in probability courses and on standardized tests like the SAT and ACT. They also underpin real-world problems in scheduling, cryptography, and any scenario where the sequence of choices matters.

Common Mistakes

Mistake: Confusing permutations with combinations and dividing by r!r! when order matters.
Correction: Only divide by r!r! when the order does NOT matter (combinations). If each different ordering counts as a distinct outcome — like assigning ranked positions — use P(n,r)P(n,r) without the extra division.

Related Terms