Free 100% In-Browser Tool

Factorial Calculator: Calculate n! & Double Factorial

Calculate exact factorials (n!) and double factorials with BigInt.

Quick Answer:Enter any positive integer to view its exact factorial digits, total digit count, double factorial, and step-by-step mathematical multiplication.
Initializing tool...

Privacy First: 100% Client-Side Processing

Processed in your browser. Files are never uploaded.

How to Use the Factorial Calculator: Calculate n! & Double Factorial

  1. 1Enter a non-negative integer (e.g. 5, 20, 100).
  2. 2View the exact calculated factorial immediately.
  3. 3Review the total digit length and double factorial (n!!).
  4. 4Copy the complete digits or scientific notation.

Formula & How It Works

Factorial Definition

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

n! = Product of all positive integers from 1 up to n. 0! = 1 by mathematical definition.

Worked Examples

Small Factorial

Input: 5!

Explanation: 5 * 4 * 3 * 2 * 1 = 120.

Result: 120

Ten Factorial

Input: 10!

Explanation: 10 * 9 * ... * 1 = 3,628,800.

Result: 3,628,800

Double Factorial

Input: 7!!

Explanation: 7 * 5 * 3 * 1 = 105.

Result: 105

Frequently Asked Questions

What is a factorial?▼

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

Why is 0 factorial equal to 1?▼

0! = 1 represents the empty product (the number of ways to arrange zero items is exactly 1).

What is a double factorial (n!!)?▼

A double factorial multiplies only integers with the same parity (e.g. 7!! = 7*5*3*1; 8!! = 8*6*4*2).

What is 52! in card shuffling?▼

52! is approximately 8.0658 × 10⁶⁷, meaning every fair shuffle of a 52-card deck produces a sequence that has likely never existed before.

Can I calculate 100!?▼

Yes, our calculator uses JavaScript BigInt to compute 100! (a 158-digit number) instantly without rounding.

Is this tool free?▼

Yes, Toolzy math tools are 100% free and run client-side.

Quick Reference & Conversion Table

nFactorial (n!)Double Factorial (n!!)Total Digits
1111 digit
5120153 digits
103,628,8003,8407 digits
151,307,674,368,0002,027,02513 digits
202,432,902,008,176,640,0003,715,891,20019 digits

⚠️ Common Pitfalls to Avoid

  • •Assuming 0! is 0 (by mathematical definition, 0! = 1).
  • •Using standard 64-bit floats that overflow to Infinity above 170! (our BigInt handles exact values).

💡 Practical Real-World Uses

  • •Calculating permutations and combinations in statistics and probability.
  • •Determining deck of cards shuffle possibilities (52! ≈ 8.0658 × 10⁶⁷).
  • •Taylor series polynomial expansion in calculus.
Last reviewed & updated: 2026-11-10
Free & Open Access
Related Utilities

Explore complementary calculators and converters with instant client-side execution

More in

Explore Other Tool Categories

Browse our full collection of 50 free web utilities

View All 8 Categories