Factorial Calculator

Calculate factorials and understand their significance in combinatorial probability.

Input Value

Factorial Formula

The factorial of a non-negative integer n is denoted by n! and is defined as:

n!=n×(n−1)×(n−2)×â€Ļ×2×1n! = n \times (n-1) \times (n-2) \times \ldots \times 2 \times 1

Special cases:

  • 0! = 1 (by definition)
  • 1! = 1

For large values of n, Stirling's approximation can be used:

n!≈2Ī€n(ne)nn! \approx \sqrt{2\pi n} \left(\frac{n}{e}\right)^n