Factorial Calculator
The factorial of a non-negative integer n, written n!, is the product of every positive integer from 1 up to n. This calculator returns n! the moment you type a value, shows the step-by-step multiplication for small numbers, and switches to scientific notation once results grow astronomically large.
Why Factorials Matter
Permutations
Probability
Series & Analysis
How to Calculate a Factorial
Enter a Non-Negative Integer
Type any whole number from 0 to 170. The upper limit exists because 171! exceeds the largest number standard double-precision arithmetic can represent.
Read n! Instantly
The result appears immediately on the formula line — there is no submit button. Smaller results use thousands separators; results above 10¹⁵ are shown in scientific notation so they stay readable.
Follow the Steps
For inputs from 2 to 10, the calculator lists the full multiplication chain so you can see how the product is built term by term.
Features
Range 0 to 170
Compute very large factorials, all the way to the maximum supported by standard double precision.
Step-by-Step Display
See the full multiplication breakdown for inputs from 2 to 10 to understand each result.
Scientific Notation
Enormous results are formatted compactly, e.g. 100! ≈ 9.33 × 10¹⁵⁷.
Live Results
n! recalculates on every keystroke — no submit button and no page reload.
Common Factorial Values
| Expression | Value |
|---|---|
| 0! | 1 |
| 1! | 1 |
| 5! | 120 |
| 10! | 3,628,800 |
| 20! | 2.43 × 10¹⁸ |
| 100! | 9.33 × 10¹⁵⁷ |
Frequently Asked Questions
What is a factorial?
The factorial of n (written n!) is the product of all positive integers up to n. For example, 5! = 5 × 4 × 3 × 2 × 1 = 120. It counts how many ways n distinct objects can be arranged in order.
How do you calculate a factorial by hand?
Multiply the number by every whole number below it down to 1: n! = n × (n − 1) × … × 2 × 1. So 4! = 4 × 3 × 2 × 1 = 24. This calculator does the same multiplication for you and lists each step for inputs from 2 to 10.
Why is 0! equal to 1?
By convention, 0! = 1. There is exactly one way to arrange an empty set — do nothing — and this definition keeps the formulas in combinatorics and series consistent.
Why is the maximum input 170?
171! is larger than the maximum value standard double-precision floating-point numbers can hold, so it would overflow to infinity. The calculator caps the input at 170 to keep every result meaningful.
Can I take the factorial of a decimal or negative number?
The ordinary factorial is defined only for non-negative integers. Fractional and negative values require the gamma function, a more advanced extension that this calculator does not compute.
What are factorials used for?
Factorials count arrangements, so they are central to permutations, combinations, and probability. They also appear in Taylor and exponential series throughout calculus and physics.
No comments yet. Be the first to comment!