Pi Digits Explorer
Enter how many digits of π you want and a sequence to look for; the explorer computes the digits exactly, shows them in blocks and finds where your sequence first appears.
Runs in your browser. Your files never leave your device. See how to check
…
How to do it
- 1Enter the number of digits
Up to 10,000.
- 2Enter a sequence
Digits to search for.
- 3Read the digits
In blocks of 50.
- 4Check the search
First position found.
About this tool
Pi, the ratio of a circle's circumference to its diameter, has digits that never end or repeat. People memorise them, search them for birthdays and test computers with them. This explorer computes the first digits of π itself, in your browser, with John Machin's 1706 formula and exact big-integer arithmetic, rather than copying a stored list. It shows up to 10,000 digits, finds the first position of any sequence and counts how often each digit appears.
Who this is for
Students, teachers on Pi Day (14 March), puzzle fans, people memorising digits and programmers checking their own π code.
How the digits are computed
Machin's formula expresses π with two arctangents of small fractions: π = 16 arctan(1/5) − 4 arctan(1/239). Each arctangent is a fast-converging series. Working with integers scaled by a power of ten and a few guard digits gives every digit exactly. Machin used this to compute 100 digits by hand; computers have since reached trillions with faster formulas.
Searching
Type any sequence of digits, such as a birth date written as DDMMYY, and the explorer searches the first 10,000 decimal places. A 4-digit sequence is almost always found within 10,000 digits; a 6-digit sequence only about 1 time in 100 would be expected, so many are not found. The famous "Feynman point", six 9s in a row, starts at the 762nd decimal.
Digit frequencies
In the first 10,000 decimals each digit appears close to 1,000 times. Mathematicians believe π is normal (every digit sequence appears with the expected frequency) but this has never been proved.
Some facts
- 22/7 = 3.142857… is correct to two decimals; 355/113 = 3.14159292… to six. - NASA uses about 15 decimals for interplanetary navigation; 40 decimals would compute the size of the observable universe to the width of a hydrogen atom. - The record for memorised digits is over 70,000.
Reading the blocks
Digits are shown in rows of 50, grouped by 10, with their positions, which makes memorising and checking easier.
Good practice
Positions are counted after the decimal point: the first decimal is 1. Computing 10,000 digits takes a moment in older browsers.
Memorising π
Popular methods group digits in fives or tens, attach them to images or use "piems", poems whose word lengths give the digits: "How I wish I could calculate pi" encodes 3.141592. The blocks of 50 here are arranged for this kind of practice; cover a row and test yourself.
Why compute rather than copy?
Calculating the digits in the browser shows that the result really comes from mathematics. You can compare the output with any published table and see that every digit matches.
Worked example
The first 20 decimals are 14159265358979323846. Searching "999999" finds it at position 762, the Feynman point. In the first 500 decimals each digit appears roughly 50 times.
Limits
Up to 10,000 decimals; not an official record or certified data source.
Worked example
The sequence 999999 first appears at decimal 762 of π.
Quick facts
- Category: Math & Science
- Works in your browser, no sign-up, no upload.
- Your input stays on your device.
- Available in English.
- Content last reviewed:
- Official source: Machin's formula π = 16·arctan(1/5) − 4·arctan(1/239) evaluated with exact big-integer arithmetic and ten guard digits; digits verified against the published decimal expansion of π (OEIS A000796)
Frequently asked questions
How are the digits computed?
With Machin's arctangent formula and exact big-integer arithmetic.
Where does 999999 appear in pi?
At the 762nd decimal, the Feynman point.
Is my birthday in pi?
Search it; six-digit dates are often beyond the first 10,000 digits.
Is pi normal?
It is believed but not proved.
How many digits does NASA use?
About 15 decimals.
Is my data stored?
No. Everything is calculated in your browser.
