Stirling's approximation
approximation for factorials

In mathematics, Stirling's approximation (or Stirling's formula) is an asymptotic approximation for factorials. It is a good approximation, leading to accurate results even for small values of
n
{\displaystyle n}
. It is named after James Stirling, though a related but less precise result was first stated by Abraham de Moivre.
One way of stating the approximation involves the logarithm of the factorial:
ln
n
!
=
n
ln
n
−
n
+
O
(
ln
n
)
,
{\displaystyle \ln n!=n\ln n-n+O(\ln n),}
where the big O notation means that, for all sufficiently large values of
n
{\displaystyle n}
, the difference between
ln
n
!
{\displaystyle \ln n!}
and
n
ln
n
−
n
{\displaystyle n\ln n-n}
will be at most proportional to the logarithm of
n
{\displaystyle n}
. In computer science applications such as the worst-case lower bound for comparison sorting, it is convenient to instead use the binary logarithm, giving the equivalent form
log
2
n
!
=
n
log
2
n
−
n
log
2
e
+
O
(
log
2
n
)
.
{\displaystyle \log _{2}n!=n\log _{2}n-n\log _{2}e+O(\log _{2}n).}
The error term in either base can be expressed more precisely as
1
2
log
(
2
π
n
)
+
O
(
1
n
)
{\displaystyle {\tfrac {1}{2}}\log(2\pi n)+O({\tfrac {1}{n}})}
, corresponding to an approximate formula for the factorial itself,
n
!
∼
2
π
n
(
n
e
)
n
.
This brief starts where responsible research should: with the source description of “Stirling's approximation” as approximation for factorials. Everything that follows is an evidence route, not borrowed authority.
Why this record matters
The subject matters to the general reference register because the source frames it as approximation for factorials. Its deeper value depends on whether names, dates, institutions and citations support that framing.
The citation trail is more important than the brevity of the summary: it shows where individual claims can be examined in context. The source revision retrieved here is dated Aug 31, 2026. The linked authority identifier is Q470877.
Overview language is designed for orientation and should not be treated as a substitute for the evidence cited beneath it. The lead is largely declarative, so disagreement and counter-evidence require a deliberate search beyond the opening account. Authority statements aid reconciliation but still require their own references, qualifiers and ranks to be checked.
How to read it
Use the entry as an orientation point, then follow its citations and revision history. Names, dates and institutional relationships should be checked against the original record.
- Subject orientation
- Search vocabulary
- Locating named sources
The closest primary source, responsible institution and strongest cited specialist reference.
Three-step research path
- Establish the record: confirm the title “Stirling's approximation”, its source revision and the description used here.
- Expand the search: follow Stirling's approximation primary sources, Stirling's approximation archive and Stirling's research across catalogues and specialist indexes.
- Test the account: compare the strongest cited source with the responsible institution’s current record and note any disagreement.
Questions for further research
- Which source most directly establishes the central claim about “Stirling's approximation”?
- Which cited source is closest to the event, object or claim?
- What terminology or title could unlock a more precise catalogue search?
Search terms from this dossier
This entry incorporates text from “Stirling's approximation” on English Wikipedia. Contributors are listed in the page history. Text is available under the Creative Commons Attribution-ShareAlike 4.0 License. Selected authority identifiers and statements are retrieved from Wikidata under CC0; their references and qualifiers remain part of the verification path.