canCalculate

Factorial Calculator

Calculate the factorial of any number. Find n! for permutations, combinations, and probability calculations.

How to use this calculator

1

Enter a non-negative integer

2

View the factorial value

3

See the number of digits in the result

Formula

n! = n × (n-1) × (n-2) × ... × 2 × 1. Special case: 0! = 1.

Frequently asked questions

What is factorial?

Factorial of n (written n!) is the product of all positive integers up to n. Example: 5! = 5 × 4 × 3 × 2 × 1 = 120.

What is 0 factorial?

0! = 1 by definition. This is a mathematical convention that makes many formulas work correctly.

Where is factorial used?

Factorials are used in permutations (nPr = n!/(n-r)!), combinations (nCr = n!/r!(n-r)!), probability, and Taylor series in calculus.

Related calculators