Understand the subject
What does factorial mean?
A <strong>factorial</strong> counts the ways to put distinct objects into every available position. Each filled position leaves one fewer choice.
Use it when all distinct objects are arranged and every position matters.
See the structure
Choices shrink as positions fill
5 choices4 left3 left2 left1 left120 orders
Worked example
Check the rule with a small case
Five books can be arranged in 5! = 5 × 4 × 3 × 2 × 1 = 120 orders.
Interpret with care
Choose the right counting model
Factorial is for distinct objects. Repeated objects, circular layouts, or partial selections use different models.
Use the Permutation & Combination Generator when a small case needs to be inspected rather than only counted.
Quick guide
How to use this calculator
- Enter a non-negative integer n.
- Read the exact product n!.
- Use the definition note to distinguish 0! from an empty result.
Calculation method
Multiply the integers from 1 through n
For n greater than zero, n! is the product 1×2×⋯×n. The empty product convention defines 0! as 1.
Worked example
Factorial of 5
Multiply every positive integer no greater than five.
5! = 5×4×3×2×1 = 120
Supported inputs
Precision and limits
Discrete domain
Inputs are whole counts. Negative, fractional, grouped, and scientific-notation inputs are rejected.
Exact integers
Results use arbitrary-precision integers and are never rounded. Inputs and output size are bounded to keep the page responsive.