<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/how-big-are-factorials--gttjlrfuh" -->

---
title: How big are factorials? | daily.dev
description: An exploration of how to estimate the number of digits in a factorial like 52! without a calculator, starting with a simple approximation formula and then...
canonical: https://daily.dev/posts/how-big-are-factorials--gttjlrfuh
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: How big are factorials? | daily.dev
og:description: An exploration of how to estimate the number of digits in a factorial like 52! without a calculator, starting with a simple approximation formula and then...
og:url: https://daily.dev/posts/how-big-are-factorials--gttjlrfuh
og:image: https://api.daily.dev/og/posts/gttJlRFUH.png
og:image:alt: How big are factorials?
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# How big are factorials?

**[Eli Bendersky](https://daily.dev/sources/elibendersky)** · 3 min read · 7 upvotes · 1 comments

## Summary

An exploration of how to estimate the number of digits in a factorial like 52! without a calculator, starting with a simple approximation formula and then diving into the underlying math. The derivation covers the Gamma function as a continuous interpolation of the factorial, its integration-by-parts recurrence relation, and how Stirling's approximation is derived from the Gamma function using Laplace's method. The post concludes by showing how to compute the number of digits of a factorial from Stirling's formula.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://eli.thegreenplace.net/2026/how-big-are-factorials>

## Questions this post answers

### How can I estimate the number of digits in 52 factorial without a calculator?

Using an approximation derived from Stirling's formula, the number of digits in 52! can be estimated by taking the base-10 logarithm of Stirling's approximation of n!. Applying this to 52 gives an estimate close to 68 digits, which matches the actual value very closely, showing the formula's accuracy even for moderately sized factorials.

_Curious readers exploring number theory and approximation tricks find deep dives like this through daily.dev._

### What is the relationship between the Gamma function and the factorial?

The Gamma function serves as a continuous interpolation of the factorial across all positive real numbers, satisfying the recursive property that mirrors n! = n(n-1)!. It is defined as an integral, and through integration by parts one can show it reduces to the standard factorial recurrence, with the base case matching the factorial of zero.

_Developers deepening their math foundations for algorithms and estimation can find this kind of derivation on daily.dev._

## Community discussion

Top comments from developers on daily.dev.

**@agustinbarrientos** · 0 upvotes

> At fifty-two factorial, "just write the whole number" stops being practical advice

## Similar posts on daily.dev

- [Making any integer with four 2s \(2025\)](https://daily.dev/posts/making-any-integer-with-four-2s-2025--vdhd5lith) · Hacker News · 0 upvotes · 0 comments
- [Before pocket calculators, there were slide rules](https://daily.dev/posts/before-pocket-calculators-there-were-slide-rules-mjesfv36a) · All Things Open · 1 upvotes · 0 comments
- [Does every finite string of numbers appear within π ?](https://daily.dev/posts/does-every-finite-string-of-numbers-appear-within--tg7ydyqnc) · R-bloggers · 1 upvotes · 1 comments

---

Tags: [#algorithms](https://daily.dev/tags/algorithms), [#math](https://daily.dev/tags/math)

[View this post on daily.dev](https://daily.dev/posts/how-big-are-factorials--gttjlrfuh)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"How big are factorials?","url":"https://daily.dev/posts/how-big-are-factorials--gttjlrfuh","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/how-big-are-factorials--gttjlrfuh"},"datePublished":"2026-08-28T02:17:22.185Z","dateModified":"2026-09-14T07:44:43.516Z","description":"An exploration of how to estimate the number of digits in a factorial like 52! without a calculator, starting with a simple approximation formula and then...","image":"https://media.daily.dev/image/upload/s--2-1xRawN--/f_auto/v1722860399/public/Placeholder%2011","thumbnailUrl":"https://media.daily.dev/image/upload/s--2-1xRawN--/f_auto/v1722860399/public/Placeholder%2011","isAccessibleForFree":true,"articleSection":"Eli Bendersky","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Eli Bendersky","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/ac2e84092d814b68aa34080a3232a3cd","url":"https://daily.dev/sources/elibendersky"},"commentCount":1,"discussionUrl":"https://daily.dev/posts/how-big-are-factorials--gttjlrfuh","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":7},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":1}],"keywords":"algorithms,math","timeRequired":"PT3M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Eli Bendersky","item":"https://daily.dev/sources/elibendersky"},{"@type":"ListItem","position":3,"name":"How big are factorials?"}]}
{"@context":"https://schema.org","@type":"WebPage","@id":"https://daily.dev/posts/how-big-are-factorials--gttjlrfuh","comment":[{"@type":"Comment","text":"At fifty-two factorial, “just write the whole number” stops being practical advice","datePublished":"2026-08-31T23:13:40.016Z","url":"https://daily.dev/posts/gttJlRFUH#c-ZWMrMehwc","author":{"@type":"Person","name":"Agustin Barrientos","url":"https://daily.dev/agustinbarrientos","image":"https://media.daily.dev/image/upload/s--5ayxQnqn--/f_auto/v1788281802/avatars/avatar_wQYYVe5Tbj0NJ7C7qPoa8?_a=BAMAMicg0"}}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/how-big-are-factorials--gttjlrfuh#faq","mainEntity":[{"@type":"Question","name":"How can I estimate the number of digits in 52 factorial without a calculator?","acceptedAnswer":{"@type":"Answer","text":"Using an approximation derived from Stirling's formula, the number of digits in 52! can be estimated by taking the base-10 logarithm of Stirling's approximation of n!. Applying this to 52 gives an estimate close to 68 digits, which matches the actual value very closely, showing the formula's accuracy even for moderately sized factorials. Curious readers exploring number theory and approximation tricks find deep dives like this through daily.dev."}},{"@type":"Question","name":"What is the relationship between the Gamma function and the factorial?","acceptedAnswer":{"@type":"Answer","text":"The Gamma function serves as a continuous interpolation of the factorial across all positive real numbers, satisfying the recursive property that mirrors n! = n(n-1)!. It is defined as an integral, and through integration by parts one can show it reduces to the standard factorial recurrence, with the base case matching the factorial of zero. Developers deepening their math foundations for algorithms and estimation can find this kind of derivation on daily.dev."}}]}
```

