Home / Calculators / Factorial Calculator
Calculators

Factorial Calculator

Enter a whole number and calculate n! instantly in the browser.

3628800Factorial

Exact factorial, digit count, trailing zeros & nCr/nPr

Use BigInt for exact factorials, then reuse n with r for combinations and permutations. Digit and trailing-zero evidence helps check very large results.

—Digits in n!
—Trailing zeros
—nCr
—nPr
Ready.

Formula and interpretation

n! = n × (n−1) × … × 1, with 0! = 1.

Factorial is defined here for non-negative whole numbers; values grow extremely quickly.

Worked check

For a small hand check, 5! = 5 × 4 × 3 × 2 × 1 = 120, while 0! = 1 by definition. Factorials grow extremely quickly, so a large output is not automatically an error.

Rule: n! = n × (n−1) × … × 1, with 0! = 1. Factorial is defined here for non-negative whole numbers; values grow extremely quickly. For a final check, estimate the expected size of the answer before copying it, keep units consistent, and round only the displayed result rather than intermediate values. Re-enter one simple case by hand when possible; a result with the wrong sign or order of magnitude usually points to an input or reference-base mistake.

Search by task, tool name, or category. Press Esc to close.
Start typing to find a tool.