Step by step
Calculate n factorial (n!) exactly, even for large n with hundreds or thousands of digits, with the multiplication steps shown so you can see how the result was built.
Step by step
Enter any non-negative whole number to see n! and the multiplication that produces it.
Type a non-negative whole number, like 5. Factorials are only defined for whole numbers zero and above.
It multiplies every whole number from 1 up to n together using exact BigInt arithmetic, so there is no rounding error even when n is large and the result has hundreds or thousands of digits.
The value of n! appears at the top, with the multiplication that produced it listed below. Looking for a different number-theory tool? The GCF Calculator finds the greatest common factor of a list of numbers.