String Theorists Accidentally Find a New Formula for Pi

Two physicists have come across infinitely many novel equations for pi while trying to develop a unifying theory of the fundamental forces

Round pi number and symbol on dark blue background. pi number, pi symbol and gradient scattered numbers.

The circle number pi has fascinated humanity for thousands of years—and always causes surprises.

hikmet kose/Getty Images

The number pi (π) appears in the most unlikely places. It can be found in circles, of course—as well as in pendulums, springs and river bends. This everyday number is linked to transcendental mysteries. It has inspired Shakespearean thought puzzles, baking challenges and even an original song. And pi keeps the surprises coming—most recently in January 2024, when physicists Arnab Priya Saha and Aninda Sinha of the Indian Institute of Science presented a completely new formula for calculating it, which they later published in Physical Review Letters.

Saha and Sinha are not mathematicians. They were not even looking for a novel pi equation. Rather these two string theorists were working on a unifying theory of fundamental forces, one that could reconcile electromagnetism, gravity, and the strong and weak nuclear forces. In string theory the basic building blocks of the universe are not particles, such as electrons or photons, but instead tiny threads that vibrate like the strings of a guitar and in so doing cause all visible phenomena. In their work, Saha and Sinha investigated how these strings could interact with one another—and accidentally discovered new formulas that are related to important mathematical quantities.

For millennia, humans have been trying to determine the exact value of pi. This enduring interest is not surprising given the utility of calculating the circumference or area of a circle, which pi enables. Even ancient scholars developed geometric approaches to calculate this value. One famous example is Archimedes, who estimated pi with the help of polygons: by drawing one n-sided polygon inside and one outside a circle and calculating the perimeter of each, he was able to narrow down the value of pi.


On supporting science journalism

If you're enjoying this article, consider supporting our award-winning journalism by subscribing. By purchasing a subscription you are helping to ensure the future of impactful stories about the discoveries and ideas shaping our world today.


Three circles are bounded by polygons with an increasing number of sides.

A common method for determining pi geometrically involves drawing a bounding polygon inside and outside a circle and then comparing the two perimeters.

Fredrik/Leszek Krupinski/Wikimedia Commons

Teachers often present this method in school. But even if you don’t remember it, you can probably imagine that the process is quite complex. Archimedes went so far as to compare the perimeters of polygons with 96 vertices to prove that pi is between 3.1408 and 3.1429. This approach is therefore not really practical for calculating pi exactly.

An Infinite Series to Determine Pi

In the 15th century experts found infinite series as a new way to express pi. By adding up their numbers one by one, you can obtain pi’s value. And the more summands you look at, the more accurate the result becomes.

For example, Indian scholar Madhava, who lived from 1350 to 1425, found that pi equals 4 multiplied by a series that begins with 1 and then alternately subtracts or adds fractions in which 1 is placed over successively higher odd numbers (so 1/3, 1/5, and so on). One way to express this would be:

A formula presents how pi can be calculated using a series developed by the Indian scholar Madhava.

This formula makes it possible to determine pi as precisely as you like in a very simple way. You don’t have to be a master of mathematics to work out the equation. But you do need patience. It takes a long time to get accurate results. Even if you evaluate 100 summands, you will still be far off the mark.

As Saha and Sinha discovered more than 600 years later, Madhava’s formula is only a special case of a much more general equation for calculating pi. In their work, the string theorists discovered the following formula:

A formula presents a way of calculating pi that was identified by physicists Arnab Priya Saha and Aninda Sinha.

This formula produces an infinitely long sum. What is striking is that it depends on the factor λ, a freely selectable parameter. No matter what value λ has, the formula will always result in pi. And because there are infinitely many numbers that can correspond to λ, Saha and Sinha have found an infinite number of pi formulas.

If λ is infinitely large, the equation corresponds to Madhava’s formula. That is, because λ only ever appears in the denominator of fractions, the corresponding fractions for λ = ∞ become zero (because fractions with large denominators are very small). For λ = ∞, the equation of Saha and Sinha therefore takes the following form:

Saha and Sinha’s formula can be adapted based on the assumption of an infinitely large parameter.

Saha and Sinha’s formula can be adapted based on the assumption of an infinitely large parameter.

The first part of the equation is already similar to Madhava’s formula: you sum fractions with odd denominators. But the last part of the sum, (−n)n − 1, is less familiar. The subscript n − 1 is the so-called Pochhammer symbol. In general, the expression (a)n corresponds to the product a × (a + 1) × (a + 2) × ... × (a + n − 1). For example, (5)3 = 5 × 6 × 7 = 210. And the Pochhammer symbol in this formula therefore results in (−n)n − 1 = (−n) × (−n + 1) × (−n + 2) × ... × (−n + n − 3) × (−n + n − 2).

A Few Steps to Madhava’s Formula

All of these elements look complicated at first, but they can be simplified quickly. First, subtract −1 from each factor. The value in front of the huge product is therefore −1 if n is odd and +1 if n is even, so you get (−n)n − 1 = (−1)n × n × (n − 1) × (n − 2) × ... × (nn + 3) × (nn + 2). The last factors can be simplified further: (−n)n − 1 = (−1)n × n × (n − 1) × (n − 2) × ... × 3 × 2 × 1.

This elongated expression is actually (−n)n − 1 = (−1)n × n!, resulting in the following:

In a few steps, it is possible to adapt Saha and Sinha’s formula such that it corresponds back to Madhava’s formula for pi.

This corresponds to Madhava’s formula. The equation found by Saha and Sinha therefore also contains the series discovered by Madhava.

As the two string theorists report, however, pi can be calculated much faster for smaller values of λ. Whereas Madhava’s result requires 100 terms to get within 0.01 of pi, Saha and Sinha’s formula for λ = 3 requires only the first four summands. And whereas “[Madhava’s] series takes 5 billion terms to converge to 10 decimal places, the new representation with λ between 10 [and] 100 takes 30 terms,” the authors write in their paper. Saha and Sinha did not find the most efficient method for calculating pi, though. Other series have been known for several decades that provide an astonishingly accurate value much more quickly. What is truly surprising in this case is that the physicists came up with a new pi formula when their paper aimed to describe the interaction of strings. They developed a method to indicate the probability with which two closed strings would interact with each other—something many string theorists have been seeking for decades without success.

When Saha and Sinha took a closer look at the resulting equations, they realized that they could express the number pi in this way, as well as the zeta function, which is the heart of the Riemann conjecture, one of the greatest unsolved mysteries in mathematics. Given the string theorists’ interests, their formulas for pi and the zeta function adorn only the very last paragraph of their paper. “Our motivation, of course, was not to find a formula for pi,” Sinha said in a YouTube video from Numberphile. “Pi was just a by-product.”

This article originally appeared in Spektrum der Wissenschaft and was reproduced with permission.

Manon Bischoff is a theoretical physicist and an editor at Spektrum der Wissenschaft, the German-language sister publication of Scientific American.

More by Manon Bischoff
SA Special Editions Vol 34 Issue 4sThis article was published with the title “A New Formula for Pi?” in SA Special Editions Vol. 34 No. 4s (), p. 42
doi:10.1038/scientificamerican122025-4Px6vWfEEbaCf2e50sjd8I

It’s Time to Stand Up for Science

If you enjoyed this article, I’d like to ask for your support. Scientific American has served as an advocate for science and industry for 180 years, and right now may be the most critical moment in that two-century history.

I’ve been a Scientific American subscriber since I was 12 years old, and it helped shape the way I look at the world. SciAm always educates and delights me, and inspires a sense of awe for our vast, beautiful universe. I hope it does that for you, too.

If you subscribe to Scientific American, you help ensure that our coverage is centered on meaningful research and discovery; that we have the resources to report on the decisions that threaten labs across the U.S.; and that we support both budding and working scientists at a time when the value of science itself too often goes unrecognized.

In return, you get essential news, captivating podcasts, brilliant infographics, can't-miss newsletters, must-watch videos, challenging games, and the science world's best writing and reporting. You can even gift someone a subscription.

There has never been a more important time for us to stand up and show why science matters. I hope you’ll support us in that mission.

Thank you,

David M. Ewalt, Editor in Chief, Scientific American

Subscribe