Search topics and sections

Emma Haruka Iwao (born 1984) is a Japanese computer scientist and software engineer at Google. She twice set the world record for computing the most digits of pi. She reached 31.4 trillion digits in 2019 and 100 trillion digits in 2022.[1][2]

Pi is the number you get when you divide a circle's circumference by its diameter, and its digits never end. People compute more of them to test how fast and reliable computers are. Iwao ran both records on Google's cloud computing service, and her 2019 run was the first pi record set using the cloud.[1][3]

Early life and education

Iwao was born in Japan in 1984 and comes from Osaka Prefecture.[4][5] At age 12 she downloaded a program called Super PI and used it to compute 1 million digits of pi on her home computer.[3][6] At that time the record holders were Yasumasa Kanada and Daisuke Takahashi, both Japanese, and she said this made the record feel relatable to her.[3]

Her math grades in middle and high school were weak, so she entered the University of Tsukuba on a humanities track to study education and psychology.[6] An academic advisor suggested she switch because she liked computers, and she moved to computer science in her second year.[6][5]

In graduate school she joined a high-performance computing systems laboratory, where Takahashi was a professor.[6] She chose it because she was interested in supercomputers. She finished her master's degree in 2010 at the university's Graduate School of Systems and Information Engineering.[6][7]

Career

  • After graduate school she joined Panasonic, where she worked on software such as car navigation systems. She later worked at several other companies, including the game maker GREE.[5]
  • She joined Google in 2015 after several unsuccessful attempts at its hiring process. She first worked in the Tokyo office and moved to the United States in 2019.[6][5]
  • At the time of both records she was a cloud developer advocate. In this developer relations role she worked with outside developers, focused on high-performance computing and programming language communities, and built demos of what Google Cloud can do.[3][8]
  • Since July 2023 she has been a software engineer on the systems behind Compute Engine, Google's service for renting virtual machines.[5]

Why compute digits of pi

Pi is an irrational number, so there is no end to how many of its digits can be calculated.[3] Most scientific work needs no more than a few hundred digits.[1] Iwao has said that about 40 to 50 digits are enough even for precise calculations.[6]

Record runs are used to test computers, including supercomputers.[1] Finishing a months-long run without a single error shows that a system is stable and reliable.[6]

Iwao has quoted Donald Knuth, who wrote that human progress in calculation has traditionally been measured by the number of decimal digits of pi.[8] She has said that Knuth wrote about her in his book The Art of Computer Programming.[8]

A record run sums a formula for pi written as a series, a sum of many terms.[9] Iwao has said that no computer could reach 100 trillion digits without such a formula and a fast method for multiplying huge numbers.[6] A common formula is the Chudnovsky algorithm.[1]

Why the cost grows so fast

The Chudnovsky formula takes time that grows as

O ⁣(n(log⁡n)3)O\!\left(n (\log n)^{3}\right)

in big O notation, where nn is the number of digits.[1] This means the time and resources needed grow faster than the number of digits. A longer run also has more chances to be hit by a hardware failure.[1]

The 2019 record

The calculation

Iwao planned the calculation to finish in time for Pi Day (March 14) in 2019 and proposed it to her manager.[6] She used y-cruncher, a pi benchmark program (a program that measures computer performance) written by Alexander J. Yee. It ran on a cluster of 25 virtual machines on Compute Engine.[1][3]

The run had several setbacks, which Yee recorded in his report.[9]

  1. The calculation started on September 13, 2018.
  2. On September 22 it was scrapped and restarted, because a setup problem had disconnected all the storage drives it used as extra memory.
  3. On December 8 the program stopped with an error whose cause is unknown. Yee suspected unstable disk input and output. The run resumed from its last saved checkpoint the next day.
  4. The decimal digits were written out on January 17, 2019, and the final output check finished on January 21.

The calculation took about 121 days and used 170 terabytes of data.[3] Google announced the result on Pi Day, March 14, 2019.[1]

The result

The run produced 31,415,926,535,897 decimal digits, the whole-number part of π×1013\pi \times 10^{13}.[1] This was almost 9 trillion digits more than the previous record, set by Peter Trueb in November 2016.[1] Guinness World Records recognized it as the most accurate value of pi.[3]

Hardware

The main computing node was an n1-megamem-96 machine, the largest Compute Engine type with Intel Skylake processors when the project began.[1] Skylake supports AVX-512, instructions that work on eight double-precision numbers at once.[1]

Storage was the hard part. Each virtual machine could mount at most 64 TB of disks, so the team attached more disks over the network using iSCSI, served by n1-standard-16 storage machines.[1]

The network to those storage machines limited the speed of the whole run. Storage bandwidth was about 2 to 3 GB/s, and the processors were busy only 12.2% of the time on average.[9] Google's live migration moved the running machines thousands of times without stopping the calculation, though Yee noted it caused some slowdowns because the run rewrote its 1.4 TB of memory about every 10 minutes.[1][9]

Sharing the digits

Google published the digits as cloud disk snapshots that anyone could copy. Before the cloud, the only practical way to share so much data was to ship hard drives.[1] A web service called pi.delivery also let people read the digits from their own programs over the web.[1]

The 2022 record

The calculation

Others soon passed her 2019 record. Timothy Mullican reached 50 trillion digits in January 2020, and a team at the University of Applied Sciences of the Grisons in Switzerland reached about 62.8 trillion in August 2021.[10] Iwao has said she wanted to try again right away.[6]

Her second run used y-cruncher version 0.7.8 with the Chudnovsky algorithm.[2] It started on October 14, 2021, and ended on March 21, 2022, after 157 days and 23 hours.[2] She checked on the result from her home office.[8]

The run produced 100 trillion decimal digits, and the 100-trillionth digit is 0.[2][8] Google announced the result on June 8, 2022.[2]

Cluster design

The calculation needed about 554 TB of temporary storage, but one virtual machine could hold at most 257 TB of disks.[2] The team therefore built a cluster of one computing node and 32 storage nodes, with 64 iSCSI disk targets in total.[2]

Computer cluster for the 2022 100-trillion-digit pi calculation Computing node n2-highmem-128 128 vCPUs 864 GB memory runs y-cruncher Two 50 TB result disks final digits iSCSI network up to 100 Gbps out gVNIC Storage nodes (32) n2-highcpu-16 n2-highcpu-16 n2-highcpu-16 Balanced persistent disk, 10,359 GB 32 nodes, 64 iSCSI disk targets Snapshot backup every 2 days About 554 TB temporary storage needed; one VM can attach at most 257 TB Total: 663 TB available, 515 TB used, 82 PB read and written
The cluster behind Iwao's 2022 calculation of 100 trillion digits of π\pi. One computing node ran y-cruncher and reached 32 storage nodes over an iSCSI network. The storage nodes held 64 disk targets, and two 50 TB disks stored the final digits.
Part Setup
Computing node An n2-highmem-128 machine with 128 virtual CPUs, 864 GB of memory, and up to 100 Gbps of outgoing network bandwidth. A new network driver, gVNIC, was needed for that bandwidth.
Storage nodes 32 n2-highcpu-16 machines, each with two balanced persistent disks of 10,359 GB.
Result disks Two 50 TB disks attached directly to the computing node held the final digits. The team added their full size only near the end, saving four months of storage costs.

Source for the table: [2].

The data did not fit in memory, so storage speed again limited the run.[2] Of 663 TB of storage available, the run used 515 TB, and it read and wrote 82 PB of data in total.[2]

Automation and backups

The team used Terraform, a tool that sets up cloud machines from written configuration files, to build the cluster and test dozens of setups quickly.[2] The final design was about twice as fast as the first one, which could have taken 300 days instead of 157.[2]

A script saved snapshots of all disks every two days. The calculation paused for only a few seconds while the copy ran in the background.[2] The program ran for more than five months with no node failures.[2]

Comparing the two runs

The second run computed about three times as many digits three years after the first.[8] Faster networking was a large part of the gain.[2]

2019 record 2022 record
Decimal digits 31,415,926,535,897 100 trillion
Dates September 2018 to January 2019 October 2021 to March 2022
Run time about 121 days 157 days, 23 hours
Main machine n1-megamem-96 (Intel Skylake) n2-highmem-128 (128 vCPUs, 864 GB)
Main node network 16 Gbps 100 Gbps
Data read and written 19.1 PB 82 PB
Check formula BBP and Bellard's formulas BBP formula

Sources for the table: [1][3][2][9].

How the records were checked

Why a check is needed

A software bug or a hardware fault can silently corrupt a long calculation. For this reason, y-cruncher records count only after they are verified, usually by repeating the work with a different, independent formula.[10]

Repeating a pi run would take months, so y-cruncher allows a shortcut. The main run must use the built-in Chudnovsky or Ramanujan formula with its output check turned on, and the last hexadecimal (base 16) digits must then match a separate run of the BBP formula.[10] The BBP check is very fast compared with the main run.[10]

The BBP formula

The Bailey-Borwein-Plouffe (BBP) formula was discovered by David Bailey, Peter Borwein, and Simon Plouffe in 1995.[11]

π=∑k=0∞116k(48k+1−28k+4−18k+5−18k+6)\pi = \sum_{k=0}^{\infty} \frac{1}{16^{k}} \left( \frac{4}{8k+1} - \frac{2}{8k+4} - \frac{1}{8k+5} - \frac{1}{8k+6} \right)

Here kk counts the terms of the sum, starting at 0. The factor 1/16k1/16^{k} ties the formula to base 16. This lets it compute the NNth hexadecimal digit of pi without computing the digits before it.[11]

That is why the main run must also write out hexadecimal digits, so the two results can be compared.[10]

The steps of a checked run

How a y-cruncher pi record is verified Sum theChudnovskyseries Writehexadecimal(base 16)digits Comparelast hexdigits Convert tobase 10, writedecimal digits Final outputcheck Recordverified BBP formula computesthe last hex digitsdirectly, withoutearlier digits 2019: 26,090,362,246,629hex digits 31,415,926,535,897decimal digits must match Main run, months Check run, fast
How Emma Haruka Iwao's 2019 y-cruncher pi record was checked. The months-long main run summed the Chudnovsky series and wrote hexadecimal digits, and a fast separate run used the BBP formula to compute the last hexadecimal digits directly. The two results had to match before the digits were converted to base 10 and given a final output check.

The 2019 run followed these steps, which took from late December 2018 to January 21, 2019.[9]

  1. The main run finished summing the Chudnovsky series.
  2. It wrote out pi in hexadecimal, 26,090,362,246,629 hexadecimal digits in all.
  3. Iwao compared the last hexadecimal digits with the BBP results, which Yee had already computed, and they matched.
  4. The program converted the result to base 10 and wrote out the decimal digits.
  5. A final output check passed, and spot checks matched the digits from Trueb's 2016 record of about 22.5 trillion digits.[9][10]

For 2019, Yee also checked the result independently using Bellard's formula as well as BBP.[1] For 2022, the team used the BBP formula. Iwao called that check the most frightening moment of the project, because there was no way to know if months of work had succeeded until it finished.[2]

Later records and recognition

Later records

Her 100-trillion-digit record stood until February 2024, when the website StorageReview reached 105 trillion digits.[10] Larger runs by StorageReview and Linus Media Group followed, reaching 314 trillion digits by November 2025.[10]

World records for computed digits of pi, 2016 to 2025 0 50 100 150 200 250 300 350 Decimal digits (trillions) 22.5 31.4 50 62.8 100 105 202 300 314 Nov 2016 Jan 2019 Jan 2020 Aug 2021 Mar 2022 Feb 2024 May 2024 Apr 2025 Nov 2025 Peter Trueb Emma Haruka Iwao Timothy Mullican UAS Grisons Emma Haruka Iwao StorageReview StorageReview Linus Media Group StorageReview Iwao's records Other records
World records for computed decimal digits of pi from 2016 to 2025. Emma Haruka Iwao set the records of January 2019 (31.4 trillion digits) and March 2022 (100 trillion digits).

Recognition

The 2019 run received a Guinness World Records title.[3] For the 2022 run, Google said it was working with Guinness on official validation, and Yee reviewed and validated the record.[2] As of March 2023, the Guinness review was still in progress.[6]

Iwao has described herself as the third woman to break the pi record.[8] She said in 2019 that she was happy to be one of the few women in computer science holding the record and hoped to show others what is possible.[3]

She is openly queer and has said she hopes her work encourages more women and LGBTQ+ people to enter computing.[4]

References

  1. Pi in the sky: Calculating a record-breaking 31.4 trillion digits of Archimedes' constant on Google Cloud, Google Cloud Blog, 2019.
  2. Even more pi in the sky: Calculating 100 trillion digits of pi on Google Cloud, Google Cloud Blog, 2022.
  3. A recipe for beating the record of most-calculated digits of pi, Google, 2019.
  4. Emma Haruka Iwao, Loud and Queer, 2025.
  5. Google ソフトウエア・エンジニア 岩尾エマはるかさん, Lighthouse Seattle, 2024.
  6. The Pi Fanatics: Meet the People Who Calculated Pi to 100 Trillion Digits, Dong-A Science, 2023.
  7. 岩尾エマはるか (author profile), Nikkei xwoman, 2024.
  8. A bigger piece of the pi: Finding the 100-trillionth digit, Google, 2022.
  9. Google Cloud Topples the Pi Record, Alexander J. Yee, numberworld.org, 2019.
  10. Records set by y-cruncher, Alexander J. Yee, numberworld.org, 2025.
  11. Finding the N-th digit of Pi, Math Fun Facts, Harvey Mudd College.

Figure