Calculate Factorial

Enter a non-negative integer (0-20):

What is a Factorial?

A factorial is the product of all positive integers less than or equal to a given number. It's denoted by an exclamation mark (!) after the number.

Factorial Formula

For any positive integer n:

n! = n ร— (n-1) ร— (n-2) ร— ... ร— 2 ร— 1

Special case:

0! = 1

Examples

n Calculation Result
0 0! = 1 1
1 1! = 1 1
3 3! = 3 ร— 2 ร— 1 6
5 5! = 5 ร— 4 ร— 3 ร— 2 ร— 1 120
10 10! = 10 ร— 9 ร— ... ร— 2 ร— 1 3,628,800

Applications of Factorials

  • ๐Ÿ”ข Combinatorics: Counting arrangements and selections
  • ๐ŸŽฒ Probability: Calculating odds and permutations
  • ๐Ÿ“Š Statistics: Distribution calculations
  • ๐Ÿ”ฌ Mathematics: Series expansions and special functions
  • ๐Ÿ’ป Computer Science: Algorithm analysis and complexity

Limitation Note

โš ๏ธ Note: Factorials grow extremely large very quickly. This calculator is limited to n โ‰ค 20 to prevent overflow. For larger factorials, specialized mathematical software is recommended.

Interesting Facts

  • The factorial function grows faster than exponential functions
  • Factorials are used in the famous birthday problem
  • They appear in Taylor series expansions
  • The number 1 appears in every factorial greater than 1