๐Ÿ“ Factorial Calculator

Calculate factorial n!

n!

Enter a non-negative integer (0-170)

How to Use This Calculator

1

Enter n

Type a non-negative integer (0, 1, 2, 3, ...).

2

Click Calculate

See the factorial result and additional information.

Formula

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

Special cases: 0! = 1, 1! = 1

Example 1: Calculate 5!

5! = 5 ร— 4 ร— 3 ร— 2 ร— 1

5! = 120

Example 2: Calculate 7!

7! = 7 ร— 6 ร— 5 ร— 4 ร— 3 ร— 2 ร— 1

7! = 5,040

Example 3: Calculate 0!

0! = 1 (by definition)

About Factorial Calculator

The Factorial Calculator computes n! (n factorial), which is the product of all positive integers from 1 to n. Factorials grow very rapidly and are used extensively in combinatorics, probability, and permutation calculations.

When to Use This Calculator

  • Combinatorics: Calculate permutations and combinations
  • Probability: Count arrangements and orderings
  • Statistics: Binomial coefficients and distributions
  • Series: Taylor series and approximations

Why Use Our Calculator?

  • โœ… Fast Calculation: Instant results
  • โœ… Large Numbers: Handles up to 170!
  • โœ… Multiple Formats: Standard and scientific notation
  • โœ… Free Tool: No registration

Important Facts

  • 0! = 1 (by definition)
  • n! grows very fast: 10! = 3,628,800, 20! โ‰ˆ 2.43 ร— 10ยนโธ
  • Factorials are only defined for non-negative integers
  • Used in permutation formula: P(n,k) = n!/(n-k)!

Frequently Asked Questions

Why is 0! = 1?

By definition, 0! = 1. This makes formulas work consistently and ensures n!/n = (n-1)!.

What is the largest factorial I can calculate?

This calculator handles up to 170! accurately. Larger values exceed JavaScript's number limits.

Can I calculate factorial for negative numbers?

No, factorial is only defined for non-negative integers. For negative numbers or decimals, use the Gamma function.