Factorial Calculator

Our free factorial calculator works out n! for any whole number in seconds. It is handy for homework, probability, and counting problems, and it shows the multiplication behind the answer for smaller numbers.

These figures are estimates only for educational purposes. No personal data is collected or saved.

How to use this factorial calculator

Enter a whole number from 0 to 170, then click Calculate Factorial. A factorial, written n!, is the product of every whole number from 1 up to n. For example, 5! = 5 x 4 x 3 x 2 x 1 = 120. Change the value to try a new calculation — nothing is saved or shared.

Frequently asked questions

What is a factorial?

A factorial multiplies a whole number by every whole number below it, down to 1. So 4! = 4 x 3 x 2 x 1 = 24. Factorials count how many ways things can be arranged.

What is 0! ?

0! is defined as 1. That may look odd, but it keeps the rules of counting and factorials consistent, and it is the standard answer in maths.

Why is there a limit of 170?

Factorials grow extremely fast, and 171! is too large for the standard numbers used in a browser, so the result would show as infinity. This calculator stops at 170 to keep answers exact and useful.

What other calculators can I use?

Try our exponent calculator for powers, the percentage calculator for percentages, or the GCD calculator for common divisors. You can also View all calculators.

Scroll to Top