Factorial

Factorial: use nonnegative integer. Review the formula, worked example and calculation steps.

Inputs

Use the units shown
RESULT
—

Enter your values and select Calculate.

Formula & explanation
n! = 1 × 2 × … × n; 0! = 1

Variables & units

Nonnegative integer
Numeric value · minimum 0, maximum 170

Worked example

5! = 120.

Assumptions

Defined here for nonnegative integers only.

Formula version 1.0.0. JavaScript floating-point arithmetic applies. Results display up to 6 decimal places; stored values retain available precision. Use the units shown.

Calculated on your device. Your latest 100 calculations stay in this browser.