Factorial Calculator

Exact n! and n!! with instant results, step-by-step breakdowns, scientific notation, digit counts, and growth visuals.

Quick examples

Whole numbers only. Results update as you type.

Enter a valid integer to see n! or n!!, or tap a quick example.

What is factorial?

The factorial of a non-negative integer n, written n!, is the product of all positive integers from 1 through n. By definition, 0! = 1. Factorials count permutations: n distinct objects can be lined up in n! orders.

Why 0! = 1?

Treating 0! as 1 makes the rule n! = n × (n−1)! work for n = 1, and matches the "empty product" convention in combinatorics (one way to arrange zero objects).

How factorial works

Compute n! by multiplying 1 × 2 × … × n. Growth is extremely fast: 10! is millions, 20! is huge, 100! has 158 digits. This calculator uses BigInt for exact integers up to 170!.

Factorial examples

  • 5! = 120
  • 10! = 3,628,800
  • 0! = 1
  • Double: 7!! = 7 × 5 × 3 × 1 = 105

Factorial table (1–50)

Exact values of n! for n from 1 to 50 (50! has 65 digits).

nn!Digits
111
221
361
4242
51203
67203
750404
8403205
93628806
1036288007
11399168008
124790016009
13622702080010
148717829120011
15130767436800013
162092278988800014
1735568742809600015
18640237370572800016
1912164510040883200018
20243290200817664000019
215109094217170944000020
22112400072777760768000022
232585201673888497664000023
2462044840173323943936000024
251551121004333098598400000026
2640329146112660563558400000027
271088886945041835216076800000029
2830488834461171386050150400000030
29884176199373970195454361600000031
3026525285981219105863630848000000033
31822283865417792281772556288000000034
3226313083693369353016721801216000000036
33868331761881188649551819440128000000037
3429523279903960414084761860964352000000039
351033314796638614492966665133752320000000041
3637199332678990121746799944815083520000000042
371376375309122634504631597958158090240000000044
3852302261746660111176000722410007429120000000045
392039788208119744335864028173990289735680000000047
4081591528324789773434561126959611589427200000000048
413345252661316380710817006205344075166515200000000050
42140500611775287989854314260624451156993638400000000052
436041526306337383563735513206851399750726451200000000053
44265827157478844876804362581101461589031963852800000000055
4511962222086548019456196316149565771506438373376000000000057
46550262215981208894985030542880025489296165175296000000000058
4725862324151116818064296435515361197996919763238912000000000060
481241391559253607267086228904737337503852148635467776000000000062
4960828186403426756087225216332129537688755283137921024000000000063
503041409320171337804361260816606476884437764156896051200000000000065

FAQs

Why is the maximum 170 for n!?
170! fits in JavaScript BigInt with practical display size; larger values have thousands of digits and are rarely needed in exact form. Use scientific approximations or Stirling’s formula for asymptotics.
What is double factorial (n!!)?
n!! multiplies every other integer from n down to 1 or 2. For example 8!! = 8×6×4×2. It appears in combinatorics and some integrals.
What is the gamma function?
Γ extends factorial to complex numbers (except non-positive integers). For positive integers, Γ(n) = (n−1)!, so Γ(n+1) = n!.
Can I use decimals?
Standard factorial is defined for non-negative integers only. Decimals are not accepted in this tool so results stay exact.