! in Math
Press Copy for n!, or take its value from 0 to 20, a double factorial or LaTeX.
All signs and lines
Start here
n! n factorial: every whole number from 1 to n, multiplied
5! = 5 × 4 × 3 × 2 × 1 = 120 An example, worked out
n!! n double factorial: every second number down from n
!n Subfactorial of n: the mark stands in front
n# n primorial: only the primes up to n
∃! There exists exactly one. Not a factorial
!= Not equal to, in code. Not a factorial
What n! says
n! = n × (n−1) × … × 2 × 1 The definition, in a line
n! = n × (n−1)! One factorial from the one before it
n! = 1 · 2 · 3 · … · n The definition, counting up
n! = ∏ₖ₌₁ⁿ k The definition, with a product sign
n! = Γ(n+1) With the gamma function
(n+1)! = (n+1) × n! The next factorial
n!/(n−1)! = n n!, divided by the factorial before it
(n!)! Factorial of a factorial, which is not n!!
(2n)! Factorial of 2n, which is not 2n!
2n! 2 times n!, when nothing is in parentheses
Values of n!
0! = 1 By rule: a product of nothing is 1
1! = 1 1, alone
2! = 2 2 × 1
3! = 6 3 × 2 × 1
4! = 24 4 × 3 × 2 × 1
5! = 120 5 × 4 × 3 × 2 × 1
6! = 720 6 × 5 × 4 × 3 × 2 × 1
7! = 5040 7 × 6 × 5 × 4 × 3 × 2 × 1
8! = 40320 40,320, or 8 × 7!
9! = 362880 362,880, or 9 × 8!
10! = 3628800 3,628,800, or 10 × 9!
11! = 39916800 39,916,800, or 11 × 10!
12! = 479001600 479,001,600, or 12 × 11!
13! = 6227020800 6,227,020,800, or 13 × 12!
14! = 87178291200 87,178,291,200, or 14 × 13!
15! = 1307674368000 1,307,674,368,000, or 15 × 14!
16! = 20922789888000 20,922,789,888,000, or 16 × 15!
17! = 355687428096000 355,687,428,096,000, or 17 × 16!
18! = 6402373705728000 6,402,373,705,728,000, or 18 × 17!
19! = 121645100408832000 121,645,100,408,832,000, or 19 × 18!
20! = 2432902008176640000 2,432,902,008,176,640,000, or 20 × 19!
Double factorial
1!! = 1 1, alone
2!! = 2 2, alone
3!! = 3 3 × 1
4!! = 8 4 × 2
5!! = 15 5 × 3 × 1
6!! = 48 6 × 4 × 2
7!! = 105 7 × 5 × 3 × 1
8!! = 384 8 × 6 × 4 × 2
9!! = 945 9 × 7 × 5 × 3 × 1
10!! = 3840 10 × 8 × 6 × 4 × 2
0!! = 1 Often taken as 1, a product of nothing
n!! = n × (n−2) × (n−4) × … Down by twos, to 1 or 2
(3!)! = 720 6!, to set beside 3!! = 3
n! = n!! × (n−1)!! Even and odd numbers put back together
Subfactorial, the mark in front
!0 = 1 One way to arrange nothing
!1 = 0 One thing cannot leave its place
!2 = 1 2 things, none in its own place
!3 = 2 ABC as BCA or CAB
!4 = 9 Four tests handed back, nobody gets their own
!5 = 44 5 things, none in its own place
!6 = 265 6 things, none in its own place
!7 = 1854 7 things, none in its own place
!8 = 14833 8 things, none in its own place
!n ≈ n!/e For n of 1 or more, the nearest whole number to it
Dₙ The subfactorial in letters
n¡ The subfactorial with the mark upside down
Primorial
2# = 2 2, alone
3# = 6 2 × 3
5# = 30 2 × 3 × 5
7# = 210 2 × 3 × 5 × 7
10# = 210 The same as 7#: no prime from 8 to 10
11# = 2310 2 × 3 × 5 × 7 × 11
13# = 30030 2 × 3 × 5 × 7 × 11 × 13
p₅# = 2310 The first five primes: here 5 counts primes
pₙ# The first n primes, multiplied
Not a factorial
∃!x There exists exactly one x
∃! n ∈ ℕ There exists exactly one natural number n
∃₌₁ Exactly one, written with a lowered = and 1
≠ Not equal to, the sign of mathematics
5 != 4 5 is not equal to 4, in code
!x Not x, in many programming languages: true becomes false
!true False, in many programming languages
5! = 5 × 4! A factorial and an equals sign, spaced so as not to read as !=
Lines that use it
3! = 6 ways to line up 3 books Arrangements, with a small number
52! ways to shuffle a deck of 52 cards Arrangements, with a large number
ₙPᵣ = n! / (n−r)! Permutations of r things from n
ₙCᵣ = n! / (r!(n−r)!) Combinations of r things from n
e = 1/0! + 1/1! + 1/2! + 1/3! + … The number e
eˣ = 1 + x/1! + x²/2! + x³/3! + … The exponential as a series
n! ≈ √(2πn) (n/e)ⁿ Stirling’s approximation for large n
10! / 8! = 10 × 9 = 90 Two factorials that cancel
n = ___, n! = ___ A blank for a worksheet
=FACT(5) 5! in a spreadsheet cell
math.factorial(5) 5! in Python
LaTeX
\exists! There exists exactly one, in LaTeX
n\# Primorial, in LaTeX
p_n\# The first n primes, multiplied, in LaTeX
n! = \prod_{k=1}^{n} k Factorial as a product, in LaTeX
n! = n \cdot (n-1)! Factorial from the one before it, in LaTeX
n! = \Gamma(n+1) With the gamma function, in LaTeX
\frac{n!}{(n-r)!} Permutations, in LaTeX
\frac{n!}{r!\,(n-r)!} Combinations, in LaTeX
e^x = \sum_{n=0}^{\infty} \frac{x^n}{n!} The exponential as a series, in LaTeX
n! \sim \sqrt{2\pi n} \left(\frac{n}{e}\right)^n Stirling’s approximation, in LaTeX
\exists!\, x There exists exactly one x, in LaTeX
\neq Not equal to, in LaTeX
How this list was compiled: What n! is, its values, 0! as a product of nothing, the arrangements it counts, the exponential series, Stirling’s approximation and the related products: en.wikipedia.org . Γ(n+1) and n!!: NIST Digital Library of Mathematical Functions, 5.4 (dlmf.nist.gov ). Double factorial, 0!! and (n!)!: en.wikipedia.org . Subfactorial, its notations and the nearest whole number to n!/e: en.wikipedia.org . Primorial: en.wikipedia.org . ∃! and ∃ with a lowered =1: en.wikipedia.org . The mark for not in code: en.wikipedia.org ; != in code: docs.python.org . Permutations and combinations: en.wikipedia.org and en.wikipedia.org . FACT: help.libreoffice.org ; math.factorial: docs.python.org . The character and its other names: UnicodeData.txt and NamesList.txt, version 18.0.0 (unicode.org , unicode.org ). Read on November 30, 2026. The values are worked out by the definitions; the worked examples and the order are this page’s own. License: own work (facts from the Unicode Character Database, Unicode License v3, unicode.org , and from Wikipedia, CC BY-SA 4.0, restated in this site’s own words); Unicode’s other names for the mark are quoted from NamesList.txt, Copyright © 1991-2026 Unicode, Inc.
How it works
The ! in math is the factorial sign: n! multiplies every whole number from 1 to n, so 5! is 5 × 4 × 3 × 2 × 1, or 120 . Where the mark stands changes what it means.
Read the full guide
Where the mark stands
After a number, n! : factorial. Twice, n!! : double factorial, every second number, so 7!! is 7 × 5 × 3 × 1. In front, !n : subfactorial, the ways to rearrange n things with none in its own place. After ∃, ∃! : exactly one exists. In many programming languages, != is not equal to and !x is not x.
Read aloud and in LaTeX
n!: n factorial. n!!: n double factorial. !n: subfactorial of n. n#: primorial of n. ∃!x: there is exactly one x. LaTeX takes the ! of the keyboard; ∃! is \exists! and n# is n\#. The counts built from factorials are on permutation and combination symbols .
2n! is 2 × n!. For the factorial of 2n, write (2n)!.
(3!)! is 720, but 3!! is 3.
Questions and answers
What is the exclamation point math symbol called?
The factorial sign. The character is the ordinary exclamation mark, U+0021, Shift+1 on the U.S. keyboard, and Unicode lists factorial as one of its other names.
Why is 0! equal to 1?
A product of no numbers is taken as 1, and there is one way to arrange nothing. It also keeps n! = n × (n−1)! true when n is 1.
What does ! mean before a number?
Subfactorial. 4! is 24, every order of four things; !4 is 9, the orders in which none of the four stays where it was.
What does n# mean?
The primorial: the primes up to n, multiplied. 10# is 2 × 3 × 5 × 7, or 210. The name puts prime in the place of factor.
What is 20 factorial?
2,432,902,008,176,640,000, a number of 19 digits. Factorials grow fast: 13! is already past six billion.
Notes
Some apps, games and sites remove or limit these characters, and their rules about names still apply. Screen readers handle styled text poorly, so keep anything a person needs to read in plain letters.
Text typed into this tool stays in your browser. It is never sent to us or to anyone else.
Character names and code points on this page were checked against the Unicode Character Database, version 18.0. Unicode is a trademark of Unicode, Inc., which is not connected with this site. If you spot a mistake, please tell us through the contact page.