Factorial Calculator

Calculate n! (n factorial) for any non-negative integer. See the full expansion, digit count, and applications in permutations and combinations.

ByPRIYA SHARMAโ€ขUpdated April 20, 2026
|
Reviewed byDR. RAJIV NAIR
|
Fact checked byNEHA KAPOOR

โ— Factorial Calculator

Result

10!3,628,800
Digits7
Expansion10 ร— 9 ร— 8 ร— 7 ร— 6 ร— 5 ร— 4 ร— 3 ร— 2 ร— 1

Related

Permutations P(10,3)720
Combinations C(10,3)120

๐Ÿ’ก What is a Factorial and What is it Used For?

The factorial of a non-negative integer n, written as n!, is the product of all positive integers from 1 to n. For example, 5! = 5 ร— 4 ร— 3 ร— 2 ร— 1 = 120. By convention, 0! = 1. Factorials grow extraordinarily fast โ€” 10! = 3,628,800 and 20! = 2,432,902,008,176,640,000 (over 2.4 quintillion).

Factorials are the foundation of combinatorics โ€” the mathematics of counting. Permutations (ordered arrangements) use the formula P(n,r) = n!/(nโˆ’r)!, and combinations (unordered selections) use C(n,r) = n!/(r!(nโˆ’r)!). These formulas appear in probability theory, statistics, computer science algorithms, and even card games and lottery calculations.

Stirling's approximation (n! โ‰ˆ โˆš(2ฯ€n) ร— (n/e)โฟ) is used to estimate factorials of very large numbers. The gamma function ฮ“(n) = (nโˆ’1)! extends factorials to non-integer and even complex numbers, which is essential in advanced mathematics, physics, and engineering.

10! = 3,628,800. This means there are 3,628,800 different ways to arrange 10 distinct objects in a line. And 52! (shuffled deck of cards) has 80 digits!
n! = n ร— (nโˆ’1) ร— (nโˆ’2) ร— ... ร— 2 ร— 1

Where:

  • n! = Product of all positive integers from 1 to n
  • 0! = Defined as 1 (by convention)
  • P(n,r) = Permutations = n!/(nโˆ’r)!
  • C(n,r) = Combinations = n!/(r!(nโˆ’r)!)

๐Ÿ“ Worked Example

1

6!

6 ร— 5 ร— 4 ร— 3 ร— 2 ร— 1

= 720

2

C(10, 3) โ€” choose 3 from 10

10! / (3! ร— 7!) = 720/(6ร—5040)

= 120 ways

Factorial Calculator FAQ