Factorial Calculator

Calculate factorials with step-by-step solutions and mathematical insights

Home Categories Math Factorial Calculator

n! = n × (n-1) × (n-2) × ... × 2 × 1

The factorial of n is the product of all positive integers less than or equal to n

Must be a non-negative integer (0 to 170)

Quick Examples

Invalid Input

! (factorial)

digits

Regular Factorial

!

Double Factorial

!!

Factorial Table: 0! to !

n n!

Table limited to 20! for display. Your requested ! =

Step-by-Step Breakdown

Regular Factorial

Double Factorial

Number of Digits

Stirling's Approximation

Common Factorial Values

n n! Application
3 6 Ways to arrange 3 items
5 120 Permutations of 5 people
7 5,040 Days of the week arrangements
10 3,628,800 Bowling pin arrangements
13 6,227,020,800 Card deck arrangements (13 cards)
52 8.07 × 10⁶⁷ Full deck arrangements

If you like this calculator

Please help us simply by sharing it. It will help us a lot!

Share this Calculator

About Factorial Calculator

What is a Factorial?

A factorial is the product of all positive integers from 1 to n, written as n! (pronounced "n factorial"). It's a fundamental concept in mathematics, particularly in combinatorics, probability, and calculus.

Factorial Formula

n! = n × (n-1) × (n-2) × ... × 2 × 1

Special cases:

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

How to Calculate Factorials

Example: 5!

5! = 5 × 4 × 3 × 2 × 1 = 120

Step-by-Step:

  1. Start with n
  2. Multiply by (n-1)
  3. Continue multiplying by decreasing integers
  4. Stop at 1

Common Factorial Values

n n!
0 1
1 1
2 2
3 6
4 24
5 120
6 720
7 5,040
8 40,320
9 362,880
10 3,628,800

Double Factorial (n!!)

The double factorial multiplies every other number:

  • Odd n: n!! = n × (n-2) × (n-4) × ... × 3 × 1
  • Even n: n!! = n × (n-2) × (n-4) × ... × 4 × 2

Examples:

  • 7!! = 7 × 5 × 3 × 1 = 105
  • 8!! = 8 × 6 × 4 × 2 = 384

Key Properties

Recursive Definition

n! = n × (n-1)!

Gamma Function Relationship

For positive integers: n! = Γ(n+1)

Stirling's Approximation

For large n: n! ≈ √(2πn) × (n/e)^n

Applications

  1. Combinatorics - Counting permutations and combinations
  2. Probability - Calculating probabilities in statistics
  3. Taylor Series - Power series expansions
  4. Computer Science - Algorithm analysis
  5. Physics - Quantum mechanics and statistical mechanics

Factorial Growth

Factorials grow extremely fast! By 20!, the value exceeds 2.4 quintillion (2.4 × 10^18). This rapid growth is why factorials are important in complexity analysis.

Tips

  • Factorials are only defined for non-negative integers
  • Use the gamma function for non-integer "factorials"
  • For very large n, use Stirling's approximation
  • Remember: 0! = 1 (not 0!)