Skip to tool

Factorial Calculator

The Factorial Calculator computes the factorial of a non-negative integer.

Calculator

Enter the values described below, then run. Use Load sample to try a prefilled example when available.

Format hints
Enter input...

How to Use This Tool

  1. Open the Factorial Calculator and find the main field: Input.
  2. Type your values in that field. The placeholder shows an example format (Enter input...).
  3. Click "Run" to compute the result in your browser.
  4. Read the result in the Result section. Use Copy to paste the output elsewhere.

Learn More About Factorial Calculator

Understanding Factorials

The factorial of a non-negative integer n, denoted by n!, is the product of all positive integers less than or equal to n.

Factorial Formula

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

Example

5! = 5 × 4 × 3 × 2 × 1 = 120

About

The Factorial Calculator computes the factorial of a non-negative integer. The factorial of a number 'n' is the product of all positive integers less than or equal to 'n'.

Examples

Factorial Calculator: quick try

Input
Input
Enter input...
Output
Shown in the Result area after you click the action button.

Load sample

Use the Load sample button or Sample menu to paste a valid example.
Input
Enter input...
Output
Adjust values and run again; use Copy on the result if needed.

Use Cases

  • Calculating permutations and combinations in mathematics.
  • Solving problems in probability and statistics.
  • Used in various algorithms and mathematical formulas.
  • Determining the number of ways to arrange items in a sequence.

Frequently Asked Questions