Factorial Calculator

Calculate factorials (n!) for any positive integer. Supports large numbers up to 170!. Free online factorial calculator.

Embed this tool

Enter a Number

Result

5!
120
Step-by-step
5! = 5 × 4 × 3 × 2 × 1 = 120

Common Factorials

nn!
01
11
22
36
424
5120
6720
75,040
840,320
9362,880
103,628,800

Advertisement

Ad

What Is a Factorial?

The factorial of a non-negative integer n is the product of all positive integers less than or equal to n. It is denoted by n! and defined as:

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

By convention, 0! = 1. This convention makes many mathematical formulas work correctly, especially in combinatorics where it represents the number of ways to arrange zero items (exactly one way: do nothing).

Factorials grow extremely fast. While 5! is only 120, 10! is 3,628,800 and 20! is about 2.4 quintillion. This rapid growth is why they are so useful for counting large numbers of permutations and combinations.

Factorials appear throughout mathematics and computer science, from calculating probabilities and binomial coefficients to power series expansions in calculus.

Frequently Asked Questions

A factorial of a non-negative integer n is the product of all positive integers less than or equal to n. It is written as n! and defined as n! = n × (n-1) × (n-2) × ... × 2 × 1. By definition, 0! = 1.

Related Tools