Online Factorial Calculator

Online Factorial Calculator Introduction

The online factorial calculator can help you quickly compute the factorial (n!) of any non-negative integer. Factorial refers to the product of all integers from 1 to that number; for example, 5! = 5 × 4 × 3 × 2 × 1 = 120.

Factorial Calculation Formula

1. Basic Definition

For a positive integer n:

n! = n × (n-1) × (n-2) × ... × 2 × 1

2. Recursive Definition

n! = { 1 (when n = 0 or n = 1)
    n × (n-1)! (when n > 1) }

How to Use

Enter a number: Input your desired non-negative integer (0-170) in the "Number" input box.
Click Calculate: Press the "Calculate" button or the Enter key on your keyboard.
View result: The calculation result will be displayed in the "Output Result" box in the format "n! = calculation result".

Notes

Maximum supported value is 170.
Input must be an integer; decimals or text will not be accepted.
By definition, 0! = 1.