nPr Calculator

Enter n (total objects) and r (objects to arrange) to calculate P(n,r) — the number of ordered arrangements using the nPr permutation formula. The result shows how many distinct sequences are possible when order matters and repetition is not allowed.

objects

The total number of distinct objects in the set.

sample

The number of objects to select and arrange. Must be ≤ n.

Results

Permutations P(n,r)

--

n! (n factorial)

--

(n - r)! Factorial

--

Combinations C(n,r) for Reference

--

Permutations vs Combinations

Frequently Asked Questions

What is a permutation?

A permutation is a selection of r items from a set of n items where the order in which items are arranged matters. For example, choosing 2 letters from {A, B, C} gives AB and BA as two different permutations, even though they contain the same elements.

What is the nPr formula?

The permutation formula is P(n, r) = n! / (n - r)!, where n is the total number of objects and r is the number being arranged. The exclamation mark (!) denotes factorial — for example, 5! = 5 × 4 × 3 × 2 × 1 = 120.

What is the difference between permutations and combinations?

Permutations count ordered arrangements — AB and BA are different. Combinations count unordered selections — AB and BA are the same. Use nPr when order matters and nCr when order does not matter.

How many ways can you arrange all n objects?

When r equals n, P(n, n) = n!, meaning all n objects are arranged in every possible order. For example, 3 objects can be arranged in 3! = 6 different ways.

Can r be greater than n?

No. r must be less than or equal to n. If r > n, permutations without replacement are undefined because you cannot choose more items than exist in the set.

Does this calculator allow repetitions?

No, this calculator computes permutations without repetition — once an object is selected, it cannot be selected again. Permutations with repetition use a different formula: n^r.

How do I use the nPr calculator?

Simply enter the total number of objects (n) and the number of objects you want to arrange (r), then the calculator applies P(n, r) = n! / (n - r)! to display your result. Make sure r does not exceed n.

What are some real-world examples of permutations?

Permutations appear in ranking problems (e.g. gold/silver/bronze from 10 athletes), PIN code creation, seating arrangements, scheduling ordered tasks, and any scenario where sequence matters.

More Statistics Tools