🌐 EN

π Pi (π) Digits Calculator

Shows the decimal digits of pi (π) up to as many places as you want (max 10,000). Copy the result, or search for a specific number sequence (e.g. your birthday, MMDD) to find where it first appears.

Enter a number from 1 to 10,000 to show that many decimal digits.

Value of π
3.14159…
GUIDE

Learn more

01

What is pi (π)?

Pi (π) is the ratio of a circle's circumference to its diameter — an infinite decimal beginning 3.14159…. π is proven to be an irrational number (its digits never repeat) and a transcendental number. It appears in nearly every formula involving circles (area πr², circumference 2πr, and far beyond).
02

How were these digits generated?

This page does not compute π at request time. Instead, the 10,000-digit string was precomputed offline using an arbitrary-precision Chudnovsky algorithm implementation and embedded directly in the page. The first 100 generated digits were checked and match the widely-verified public reference value exactly (1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679…). No external server requests are made — the digits render instantly in your browser.
03

Finding your own numbers in pi

Use the "Search for a digit sequence" field to enter any number (your birthday as MMDD or YYYYMMDD, the last digits of a phone number, etc.) and see where it first appears within the first 10,000 digits of π. Since the digits behave like a long pseudo-random sequence, most short number combinations turn up somewhere in this range.

Frequently asked questions

Why only 10,000 digits?
More digits are certainly possible, but 10,000 balances the size of the embedded static string against page-load performance. It's more than enough for most learning and curiosity use cases.
Are these digits accurate?
Yes. They were generated with an arbitrary-precision Chudnovsky algorithm, and the first 100 digits were checked against a widely-verified public reference value for π and match exactly.
How does the search feature work?
It uses a plain string search (indexOf), not a regular expression, on the digit string you enter. Regular expressions built directly from raw user input are avoided because they can introduce security/performance issues (ReDoS).