Factorial Formula: The factorial of a non-negative integer $ n $, denoted by $ n! $, is the product of all positive integers less than or equal to $ n $. The formula is defined as:

It can also be expressed recursively as:

  • Key Points:

    • $ 0! = 1 $ by convention (empty product).

    • Factorials grow rapidly: $ 5! = 120 $, $ 10! = 3,628,800 $.

    • Used in combinatorics for permutations and combinations: $ nPr = \frac{n!}{(n - r)!} $, $ nCr = \frac{n!}{(n - r)! \cdot r!} $.

    • Factorials are undefined for negative integers.

Example:
$ 4! = 4 \times 3 \times 2 \times 1 = 24 $
$ 6! = 6 \times 5! = 6 \times 120 = 720 $

product of all integers between 1 and the integral input of the function
FactorialReIm
In mathematics, the factorial of a non-negative integer ... {\displaystyle {\begin{aligned}n!&=n\times (n-1)\times (n-2)\times (n-3)\times \cdots \times 3\times 2\times 1\\&={\begin{cases}1,&{\text{if }}n=0\\n\times (n-1)!,&{\text{if }}n\geq 1.\end{cases}}\\\end{aligned}}} For example, ... ... … Wikipedia
🌐
Wikipedia
en.wikipedia.org › wiki › Factorial
Factorial - Wikipedia
6 days ago - In Indian mathematics, one of the earliest known descriptions of factorials comes from the Anuyogadvāra-sūtra, one of the canonical works of Jain literature, which has been assigned dates varying from 300 BCE to 400 CE. It separates out the sorted and reversed order of a set of items from the other ("mixed") orders, evaluating the number of mixed orders by subtracting two from the usual product formula for the factorial.
🌐
CalculatorSoup
calculatorsoup.com › calculators › discretemathematics › factorials.php
Factorial Calculator n!
This problem is slightly different because there are two “s” letters. To account for this we divide by the number of duplicate letters factorial. There are 7 letters in the word physics and two duplicate letters so we must find 7!/2!. If the word had multiple duplicates, as in “little,” the formula would be 6!/(2!
Discussions

ELI5: What is a factorial and how does it work
To calculate the factorial of a number, multiply it by all whole numbers below it.  For example, 5! = 5x4x3x2x1 = 120. One use of factorials is to find the number of permutations (orders).  For example, if 5 people run in a race, any of the 5 people can finish first, any of the 4 remaining people can finish second, any of the remaining 3 people can finish third, any of the 2 remaining people can finish fourth, and the last remaining person finishes last.  So there are 5! = 5x4x3x2x1 = 120 different possible race results. More on reddit.com
🌐 r/explainlikeimfive
19
0
December 31, 2024
elementary number theory - Why is there no explicit formula for the factorial? - Mathematics Stack Exchange
These two formulas give n! This was discovered by Euler. Reference this link for further reading. http://eulerarchive.maa.org/hedi/HEDI-2007-09.pdf ... If I am not mistaken, Manjul Bhargava generalized the factorial function to include numbers such as (pi)! More on math.stackexchange.com
🌐 math.stackexchange.com
July 29, 2013
A Genius Link between Factorial & Integration | Gamma Function
Beautifully explained! More on reddit.com
🌐 r/3Blue1Brown
17
119
February 10, 2025
Number of zeros in a Factorial
The product of 2 and 5 forms a zero. To find the number of trailing zeros, we need to find number of pairs of 2 and 5 in n! Since there are more multiples of 2 than multiples of 5 in n!, we only need to find how many multiples of 5 in n! by ⌊n/5⌋+ ⌊n/5^2⌋ +... +⌊n/5^k⌋ where ⌊⌋ is the floor function and 5^k <= n < 5^{k+1} e.g. 26! = 403291461126605635584000000 ⌊26/5⌋ + ⌊26/25⌋ = 5 + 1 = 6 100! = 93326215443944152681699238856266700490715968264381621468592963895217599993229915608941463976156518286253697920827223758251185210916864000000000000000000000000 ⌊100/5⌋ + ⌊100/25⌋ = 24 More on reddit.com
🌐 r/learnmath
8
1
August 30, 2023
People also ask

What is a factorial of 0?
The value of factorial of 0 is 1, i.e. 0! = 1.
🌐
byjus.com
byjus.com › maths › factorial
Factorial
What is a factorial of 10?
The value of factorial of 10 is 3628800, i.e. 10! = 10 × 9 × 8 × 7 × 6 × 5 × 4 × 3 × 2 × 1 = 3628800.
🌐
byjus.com
byjus.com › maths › factorial
Factorial
What is the symbol of factorial?
The factorial function is a mathematical formula represented by an exclamation mark “!”. For example, the factorial of 8 can be represented as 8! and it is read as eight factorial.
🌐
byjus.com
byjus.com › maths › factorial
Factorial
🌐
GeeksforGeeks
geeksforgeeks.org › mathematics › factorial-formula
Factorial Formula - GeeksforGeeks
The factorial is one of the most fundamental mathematical operations in combinatorics, algebra, and number theory. Represented by an exclamation mark (!), the factorial of a non-negative integer n, denoted as n!, is the product of all positive integers less than or equal to n.
Published   July 23, 2025
🌐
Cuemath
cuemath.com › numbers › factorial
Factorial - Meaning, Formula | Factorial of Hundred & 0
Factorial of a positive number n is the product of that number with all the whole numbers that come before till 1. i.e., n factorial is calculated by the formula n! = n * (n - 1) * (n - 2) * ... * 3 * 2 * 1.
🌐
BYJUS
byjus.com › maths › factorial
Factorial
In short, a factorial is a function that multiplies a number by every number below it till 1. For example, the factorial of 3 represents the multiplication of numbers 3, 2, 1, i.e. 3! = 3 × 2 × 1 and is equal to 6. In this article, you will ...
Published   October 6, 2021
Views   1K
Find elsewhere
🌐
GeeksforGeeks
geeksforgeeks.org › dsa › program-for-factorial-of-a-number
Factorial of a Number - GeeksforGeeks
Given the non-negative integers n , compute the factorial of a given number. Note: Factorial of n is defined as n * (n -1) * (n - 2) * ...
Published   January 13, 2026
🌐
Math is Fun
mathsisfun.com › numbers › factorial.html
Factorial Function !
The factorial function (symbol: !) says to multiply all whole numbers from our chosen number down to 1. Examples:
🌐
Reddit
reddit.com › r/explainlikeimfive › eli5: what is a factorial and how does it work
r/explainlikeimfive on Reddit: ELI5: What is a factorial and how does it work
December 31, 2024 - A way to understand what a factorial represents is that it's the number of ways you can arrange X items. for example if you had 6 teddy bears, and you lined them up, you'd have 6 choices for the first bear, 5 choices for the second bear, and so on.
🌐
Factorial US
factorialhr.com › number function factorial
The Factorial Function
In the Factorial formula, you must multiply all the integers and positives that exist between the number that appears in the formula and the number 1.
🌐
Statlect
statlect.com › glossary › factorial
Factorial | Use in probability and statistics
The factorial of a natural number is the product of all natural numbers smaller than or equal to .
🌐
Khan Academy
khanacademy.org › computing › computer-science › algorithms › recursive-algorithms › a › the-factorial-function
The factorial function (article)
We've partnered with Dartmouth college professors Tom Cormen and Devin Balkcom to teach introductory computer science algorithms, including searching, sorting, recursion, and graph theory. Learn with a combination of articles, visualizations, quizzes, and coding challenges.
🌐
Indeed
indeed.com › career guide › career development › factorials: what are they, how to calculate them and examples
Factorials: What Are They, How To Calculate Them and Examples | Indeed.com
October 23, 2023 - For instance, if you want to know how many combinations you can make with the three-digit number 725, you would find the factorial of 3!, which is3! = 3 x 2 x 1 = 6.This means that there are six combinations you can make with the number 725: 725, 752, 572, 527, 275 and 257.The factorial formula is:n!
🌐
YouTube
youtube.com › watch
How to Take the Factorial of Any Number - YouTube
In this video, I walk through the derivation of an extension of the factorial function that works for any number: fractional, irrational, and even complex! T...
Published   August 13, 2022
Top answer
1 of 1
93
Factorial does have a closed formula using integer division $\lfloor n/m\rfloor$ due to J. Robinson [1]: we have · $$\begin{align*} · n\bmod m&=n-m\lfloor n/m\rfloor,\\ · \binom rn&=\left\lfloor\frac{(2^r+1)^r}{2^{rn}}\right\rfloor\bmod 2^r,\\ · n!&=\textstyle\left\lfloor2^{n^3}\big/\binom{2^{n^2}}n\right\rfloor=\left\lfloor n^{n^2}\big/\binom{n^n}n\right\rfloor. · \end{align*}$$ · (That is1, $n!=\bigl\lfloor r^n/\binom rn\bigr\rfloor$ for any $r>(2n)^{n+1}$, as the bound is stated in [1]. It actually holds2 already for $r\ge n!\,n^2/2$, which implies3 the second given expression for $n!$.) · In fact, the class of functions $\mathbb N^k\to\mathbb N$ that have a closed expression using $n+m$, $n\mathbin{\dot-}m$$n\cdot m$$\lfloor n/m\rfloor$, and $n^m$ (or even just $2^n$) is quite vast: it coincides with the class of Kalmár elementary functions aka elementary recursive functions. This was proved by Mazzanti [2,§4]. · References · [1] Julia Robinson: Existential definability in arithmetic, Transactions of the American Mathematical Society 72 (1952), no. 3, pp. 437–449, doi 10.2307/1990711. · [2] Stefano Mazzanti: Plain bases for classes of primitive recursive functions, Mathematical Logic Quarterly 48 (2002), no. 1, pp. 93–104, doi 10.1002/1521-3870(200201)48:1%3C93::AID-MALQ93%3E3.0.CO;2-8. · Footnotes · To see that the expression $n!=\bigl\lfloor2^{n^3}/\binom{2^{n^2}}n\bigr\rfloor$ follows from Robinson’s formula, recall that $2^n\ge n+1$ for all integers $n$, thus we have $2^{n-1}=4\cdot2^{n-3}\ge4(n-2)\ge2n$ if $n\ge4$, whence $2^{n^2}>2^{n^2-1}\ge(2n)^{n+1}$; one can check that the expression is valid for $n=0,\dots,3$ by hand. Alternatively, since $n^n\le2^{n^2}$, this expression for $n!$ follows from the other one, proved below. · Since $r^n/\binom rn=n!\prod_{in^2(n-1)$, which implies · $$1-\frac ir=\frac{r-i}r>\frac{2r+i^2}{2r+(i+1)^2}=\frac{1+i^2/(2r)}{1+(i+1)^2/(2r)}$$ · for all $i2r^3+ri^2=r(2r+i^2). · \end{align*}$$ · Thus, · $$\prod_{i
🌐
freeCodeCamp
freecodecamp.org › news › what-is-a-factorial
What is a Factorial? How to Calculate Factorials with Examples
August 3, 2022 - The factorial of a number is the multiplication of all the numbers between 1 and the number itself. It is written like this: n!. So the factorial of 2 is 2!
🌐
BYJUS
byjus.com › maths › factorial-questions
Factorial Questions With Solutions
A more complex topic on factorials can be found at exponents of a prime factorial. ... Given (6! × 3!)!/3!! 3! Gets cancelled as both numerator and denominator have 3! Therefore the answer to the given problem is 6! which is 6 × 5! ... So 6! = 6 × 5! = 6 × 120 = 720. ... We know that by the formula of factorial n!
Published   August 18, 2022
Views   4K
🌐
Jain University
jainuniversity.ac.in › resources › calculator › factorial-calculator
Factorial Calculator Online - Find Factorial Easily
The factorial formula is a mathematical expression used to find the product of all positive integers from 1 up to a given number. The factorial of a number is denoted by an exclamation mark (!).
🌐
RapidTables
rapidtables.com › math › algebra › Factorial.html
Factorial (n!) - RapidTables.com
The factorial of n is denoted by n! and calculated by the product of integer numbers from 1 to n.
🌐
Corporate Finance Institute
corporatefinanceinstitute.com › home › resources › factorial
Factorial - Overview, Formula, Factors, Applications
November 14, 2024 - The factorial (denoted or represented as n!) for a positive number or integer (which is denoted by n) is the product of all the positive numbers preceding or equivalent to n (the positive integer).