Permutation Calculator

Enter n (total objects) and r (objects chosen) to calculate P(n,r) — the number of ordered arrangements possible from your set. Choose between permutations without repetition (P(n,r) = n! / (n−r)!) and permutations with repetition (n^r). Results include the permutation count, the corresponding combination count, and a step-by-step breakdown of the formula.

objects

The total number of objects in the set.

sample

The number of objects selected from the set.

Choose whether items can repeat in each arrangement.

Results

Permutations P(n,r)

--

Combinations C(n,r)

--

n! (n Factorial)

--

r! (r Factorial)

--

(n−r)! Factorial

--

Permutations vs Combinations

Frequently Asked Questions

What is a permutation?

A permutation is an arrangement of items from a set where the order 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 formula for permutations without repetition?

The formula is P(n,r) = n! / (n−r)!, where n is the total number of objects and r is the number chosen. The exclamation mark denotes a factorial, meaning you multiply all integers from 1 up to that number.

What is the formula for permutations with repetition?

When repetition is allowed, the formula simplifies to P(n,r) = n^r. This is because each of the r positions can independently hold any of the n objects.

What is the difference between a permutation and a combination?

In a permutation, the order of selection matters — AB and BA are different. In a combination, order does not matter — AB and BA are the same. The combination formula is C(n,r) = n! / (r! × (n−r)!).

How many permutations are there if n equals r?

When n = r, the formula P(n,r) = n! / (n−r)! simplifies to n! / 0! = n!, since 0! equals 1. This means all n objects are arranged in every possible order.

How many different 10-character passwords are possible using only alphanumerals?

Using 62 alphanumeric characters (a–z, A–Z, 0–9) with repetition allowed, the number of possible 10-character passwords is 62^10 = 839,299,365,868,340,224 — over 839 quadrillion combinations.

Why is 0! equal to 1?

By mathematical convention, 0! = 1. This ensures consistency in factorial-based formulas. For example, when r = n, the denominator (n−r)! = 0! must equal 1 so that P(n,n) = n! correctly counts all arrangements.

Can r be greater than n in a permutation without repetition?

No. If r > n and repetition is not allowed, the permutation is undefined (you cannot choose more items than exist in the set). This calculator will return an error if you enter r > n without repetition enabled.

More Statistics Tools