# How Big Are Factorials? A Simple Estimate for 52!

> Hacker News story 49712185 · language: en · submitted 2026-09-15
> Web version: https://zeli.app/story/49712185
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 93 · by [ibobev](<https://news.ycombinator.com/user?id=ibobev>) · 💬 41
[original](<https://eli.thegreenplace.net/2026/how-big-are-factorials/>) · [HN discussion](<https://news.ycombinator.com/item?id=49712185>)

## Summary

Eli Bendersky explores how to estimate the number of digits in a factorial without a calculator. Using Stirling's approximation, he shows that 52! has about 68 digits, and derives the formula from the Gamma function and Laplace's method. The post includes a practical approximation and the mathematical background, making it accessible for curious readers.

## Key quote

> The real answer is 68, so this is very close! In estimates like this - when you're dealing with enormous numbers - being off by a couple of digits usually isn't a big deal.

## HN discussion (41 comments)

### [svobodamartin](<https://news.ycombinator.com/item?id=49731715>)

> My favorite one is with the 52! seconds:
>
> Start a timer that will count down the number of seconds from 52! to 0.
>
> Then walk around the Earth’s equator with one step every billion years. 
>
> Then, after you make your way around the earth equator (by taking 1 step every billion of years), you take one drop of water out of the Pacific Ocean. 
>
> Then, you repeat the process of walking around the equator, and everytime you walk around, you keep draining one singular drop of water. 
>
> After the ocean is fully drained, you refill the ocean and put a piece of paper underneath you. 
>
> Now, you once again repeat this process of walking, draining, and placing papers. 
>
> After your stack of papers has reached the Sun, you repeat another 1000 times.
>
> After all this, you have completed just about a third of the timer.
>
> https://sites.imsa.edu/hadron/2025/02/26/how-big-is-52/

### [smcin](<https://news.ycombinator.com/item?id=49733645>)

> This is restating Stirling's approximation, which has been known for three centuries (1730, de Moivre 1721).
>
> https://en.wikipedia.org/wiki/Stirling%27s_approximation

### [andrewla](<https://news.ycombinator.com/item?id=49730906>)

> This brings to mind the analysis in Bender & Orszag; they approach this through difference equations (a bit of a lost art in formal mathematics; very 19th-century feel) rather than integration.
>
> Instead of introducing the gamma function, they instead start from the observation that log(F_n) - log(F_n-1) = log(n), so treating this difference as analogous to integration, it says that F_n ~= nlogn + n as the leading asymptotic behavior. This is clear just by substitution and algebra; no calculus necessary (though it helps to "know the answer beforehand").
>
> From there you can treat the error term in this as F_n = n^n * e^n * E_n and plug that into the same relationship (F_n = n * F_n-1) to derive what that error term looks like asymptotically, and end up in the same place that the integration on the OP leads to.

### [ninju](<https://news.ycombinator.com/item?id=49728170>)

> The author's casual mention of 52! at the opening of the article triggered an OLD webpage that I saw many years ago
>
> https://czep.net/weblog/52cards.html
>
> Anyone know how to determine the age of this page (it's got be at least 20yrs old)

### [Sharlin](<https://news.ycombinator.com/item?id=49728559>)

> A quick and dirty approximation of the number of digits in n! is n lg n, which approximates n! from above, via the inequality
>
> 1 * 2 * … * n ≤ n * … * n.
>
> (This approximation should be familiar to many from an algorithmics class.)
>
> For a tighter bound, use n lg n - n/2, or a better approximation of ln 10 in place of 1/2 if you wish. This comes from Stirling's approximation which notes that
>
> ln n! = n ln n - n + O(ln n).

---

## Cite

- Page: https://zeli.app/story/49712185
- Date: 2026-09-15
- Source: eli.thegreenplace.net (https://eli.thegreenplace.net/2026/how-big-are-factorials/)
- Hacker News: https://news.ycombinator.com/item?id=49712185

## Other languages

- zh: https://zeli.app/zh/story/49712185 · markdown: https://zeli.app/zh/story/49712185.md
- ja: https://zeli.app/ja/story/49712185 · markdown: https://zeli.app/ja/story/49712185.md
- ko: https://zeli.app/ko/story/49712185 · markdown: https://zeli.app/ko/story/49712185.md
- de: https://zeli.app/de/story/49712185 · markdown: https://zeli.app/de/story/49712185.md
- es: https://zeli.app/es/story/49712185 · markdown: https://zeli.app/es/story/49712185.md
- ru: https://zeli.app/ru/story/49712185 · markdown: https://zeli.app/ru/story/49712185.md
