← All blog posts

Factorial vs Permutation: What’s the Difference?

WhiteUI · A plain-English guide to the Factorial Calculator

Factorials and permutations both count arrangements, and their formulas look alike — but they answer different questions, and using the wrong one gives the wrong count. Check the numbers on the Factorial Calculator.

Factorial: arrange everything

Five books on a shelf: 5! = 120 ways. Every book is placed, so every ordering counts.

Permutation: arrange some of them

Choose 3 of the 5 books and arrange them: P(5,3) = 5! ÷ 2! = 120 ÷ 2 = 60 ways. The 2! divides out the orderings of the two books left behind.

Factorial: n! = 1 × 2 × … × n
Permutation: P(n,r) = n! ÷ (n−r)!
5 books, arrange all: 5! = 120
5 books, choose 3 in order: P(5,3) = 5! ÷ 2! = 60

120 vs 60

Arrange all 5Choose 3 in order120 ways60 ways

Arranging all five books gives twice as many orderings as arranging three of them.

The combination for comparison

If order does not matter, it is a combination: C(5,3) = 10. Same five books, three chosen — but choosing books 1, 2 and 3 is one outcome, not six.

Frequently asked questions

What is the difference between factorial and permutation?

A factorial arranges all n items: n!. A permutation arranges r of n items in order: P(n,r) = n! ÷ (n−r)!.

What is P(5,3)?

60. 5! ÷ 2! = 120 ÷ 2 = 60.

When do I use a combination instead?

When order does not matter. Choosing 3 books out of 5 is C(5,3) = 10, not 60.

What is 5!?

120 — the number of ways to arrange five different items.

More guides on the Factorial Calculator

Try it yourself

Work out any factorial exactly, step by step — free, in your browser.

Open the Factorial Calculator