nPr Calculator (Permutations)

This nPr calculator counts permutations: the number of ways to pick r items from n and arrange them in order. It gives exact answers with the factorial working shown, plus the count with repetition allowed.

Checks on your data

  • Permutations count order: A then B differs from B then A. If you only care which items are chosen, use combinations. Use combinations →

Results

P(10, 4) = 10P4
5,040
ordered arrangements without repetition
Combinations C(10, 4)
210
if order did not matter
Arrangements with repetition allowed (nʳ)
10,000
All arrangements of 10 items: 10!
3,628,800
Circular arrangements of 10 items (n − 1)!
362,880
rotations counted as the same
Check P = C × r!
210 × 24 = 5,040
Probability a random ordered pick matches a target
0.000198413
1 ÷ P(n, r)
Growth of P(10, k) as k increases
02460246810r = 4r (vertical axis is log₁₀ of the count)
P(10, k), C(10, k) and k! for small k
kP(n, k)C(n, k)k!
0111
110101
290452
37201206
45,04021024
530,240252120
6151,200210720
7604,8001205,040
81,814,4004540,320
93,628,80010362,880
103,628,80013,628,800
Show step-by-step solution
  1. Formula: P(n, r) = n! ÷ (n − r)!.
  2. Cancel: P(10, 4) = 10 × 9 × 8 × 7.
  3. Result: 5,040.
  4. With repetition allowed there are n^r = 10^4 = 10,000 arrangements.
Formulan! / (n − r)!
OrderMatters
Link to nCrnPr = nCr × r!
With repeatsnʳ

What Is nPr?

A permutation is an ordered arrangement. The number of permutations of r items chosen from n distinct items is nPr = n! ÷ (n − r)!. Because order matters, picking A then B counts as a different result from picking B then A.

The calculator also shows the relationship nPr = nCr × r!, the number of arrangements when repetition is allowed (nʳ) and the probability that a random ordered pick matches one target arrangement. If order does not matter in your problem, use the nCr or combination calculator instead.

Below you will find the formulas, a variables table, worked examples and answers to common questions such as nPr versus nCr and how many ways to arrange people in a row.

How to Use the nPr Calculator

  1. Enter n, the number of distinct items available.
  2. Enter r, how many of them you arrange in order.
  3. Read P(n, r), and compare with nCr, repetition and circular counts.
  4. Open the steps to see the product and the check against nCr × r!.

nPr Formula

Permutations

P(n,r)=n!(n−r)!=n(n−1)⋯(n−r+1)P(n,r)=\frac{n!}{(n-r)!}=n(n-1)\cdots(n-r+1)

Link with combinations

P(n,r)=(nr) r!P(n,r)=\binom{n}{r}\,r!

Permutations with repetition

n rn^{\,r}

Circular permutations

(n−1)!(n-1)!

With identical items

n!n1! n2!⋯nk!\frac{n!}{n_1!\,n_2!\cdots n_k!}

nPr Variables Explained

SymbolMeaningNotes
nTotal distinct items
rItems arranged0 ≤ r ≤ n
nPrNumber of permutationsn! ÷ (n − r)!
nʳArrangements with repetitionEach position can reuse an item

nPr Worked Example

Using the example values (press “Load example” above to try them):

  1. Formula: P(n, r) = n! ÷ (n − r)!.
  2. Cancel: P(10, 4) = 10 × 9 × 8 × 7.
  3. Result: 5,040.
  4. With repetition allowed there are n^r = 10^4 = 10,000 arrangements.

Result: P(10, 4) = 10P4 = 5,040.

Types of permutation problems

Which formula to use
Problem typeFormulaExample
Arrange r of n distinct items, no repeatsn!/(n − r)!3 medals among 10 runners: 720
Arrange all n distinct itemsn!5 books on a shelf: 120
Items can repeat in each positionnʳ4-digit PIN: 10⁴ = 10,000
Some items identicaln!/(n₁! n₂! …)Letters of MISSISSIPPI: 34,650
Around a circle(n − 1)!6 people at a round table: 120

Handling restrictions

Many permutation problems add restrictions. To keep two particular items together, treat them as one block, count the arrangements, then multiply by the ways to order inside the block. To keep two items apart, count all arrangements and subtract those where they are together. For “at least one” conditions, use the complement.

Permutations in probability

If every ordered arrangement is equally likely, the chance of a particular arrangement is 1/P(n, r). Guessing a 4-letter code from 26 letters without repeats has a probability of 1/358,800. Permutation counts also appear in the denominators of many card and lottery probabilities when order matters.

Where nPr Is Used

Rankings and podiums

Counting the ways to award first, second and third place.

Passwords and codes

Counting ordered codes with or without repeated characters.

Seating and scheduling

Counting ordered arrangements of people or tasks.

Exam questions

Checking nPr answers and seeing the working.

Common nPr Mistakes to Avoid

  • Ask “does swapping two chosen items give a different result?” to choose between nPr and nCr.
  • 0! = 1 and P(n, 0) = 1.
  • P(n, n) = n!, all arrangements of the full set.

nPr Terms and Definitions

Factorial
n! is the product of all whole numbers from 1 to n.
Circular permutation
An arrangement around a circle where rotations are considered identical.

nPr FAQs

What is nPr?

The number of ordered arrangements of r items chosen from n distinct items, equal to n!/(n − r)!.

How do I calculate permutations?

Multiply n by the next r − 1 smaller numbers. For P(10, 4): 10 × 9 × 8 × 7 = 5,040.

What is the difference between permutations and combinations?

Permutations count ordered arrangements; combinations count unordered selections. P(n, r) = C(n, r) × r!.

What if items can repeat?

Then the count is n^r, because each of the r positions can independently be any of the n items.

What is a circular permutation?

An arrangement around a circle where rotations are treated as the same, giving (n − 1)! for n distinct items.

How do I handle identical items?

Divide n! by the factorial of each group of identical items, such as 11!/(4!4!2!) for MISSISSIPPI.

Related calculators

Last updated 2026-11-09. See our disclaimer.