Abakcus

← All articles

March 14 · Mathematics · A long read with four labs

Pi Day

The 4,000-year chase for one number, and the afternoon it got a holiday.

Every March 14, at 1:59 in the afternoon, people walk in a circle and eat pie in honour of a number nobody can finish writing. Here is the whole story: the clay tablet, the 96-sided polygon, the wrong digits that hung on a museum wall, and a server that ran for 110 days.

πdiameter = 1Archimedes, cut out of Domenico Fetti's 1620 painting6 sides
3.00000< π <3.46410

3/14

Pi Day. Since 2019 it is also UNESCO's International Day of Mathematics.

1988

The first Pi Day: one museum in San Francisco, a table of fruit pies, a walk in a circle.

15

Decimals of π that NASA uses to steer spacecraft between planets.

314trillion

Digits known today, from a single server that computed for 110 days in 2025.

Take anything round. A coin, a plate, the rim of a glass, the orbit of a moon. Wrap a string once around its edge, then lay that string across the middle and count how many times it fits. Three times, and a bit. Always the same three, and always the same bit, whether the circle is the size of a wedding ring or the size of a galaxy. That stubborn little leftover is the most famous number in mathematics, and once a year it gets a party.

The party is Pi Day. It falls on March 14 because Americans write that date 3/14, and 3.14 is how π begins. The serious celebrants wait until 1:59 PM, which adds three more digits: 3.14159. Schools hold digit-reciting contests, bakeries sell out of pie, MIT has been known to post its admission decisions on the day, and NASA publishes a set of puzzles that need π to solve. In 2009 the U.S. House of Representatives gave the day its blessing; in 2019 UNESCO made it the International Day of Mathematics for the whole planet.

It is, when you think about it, a strange thing to celebrate. π is not a discovery with a date, or a person with a birthday. It is a ratio. And yet the story behind those digits is one of the longest relay races people have ever run: about four thousand years, across Babylon, Egypt, Syracuse, China, Samarkand, Leiden, London, Berlin and a rack of solid-state drives in Ohio, each runner handing the next a few more correct decimals. This page follows the baton the whole way. Bring pie.

The parade that never happened, but should have: Larry Shaw, who invented Pi Day, leads Archimedes, van Ceulen, Newton, Leibniz, Euler, Lambert and Einstein once around the circle, one digit each.

San Francisco, 1988

A holiday invented at a staff retreat

Pi Day has a founder, a first address and a first menu. It began as an in-house joke at a science museum and was never supposed to leave the building.

Larry Shaw was a physicist who had worked at the Exploratorium, San Francisco's hands-on science museum, since 1972. He was the long-haired, red-capped colleague who seemed to know how every exhibit worked. In 1988, at a staff retreat in Monterey, he pointed out that the calendar already had a slot for the most famous constant in mathematics. March 14. Three, fourteen.

The first celebration, that same year, was small enough to fit on a table. Shaw and his wife, Catherine, set out fruit pies and a tea urn at 1:59 in the afternoon. The staff walked around one of the museum's circular spaces, and then everybody ate. A few years later Shaw's daughter Sara pointed out that March 14 was also Albert Einstein's birthday, and Einstein was added to the festivities.

Larry Shaw, founder of Pi Day, standing beside a long table of pies at the Exploratorium in San Francisco
Larry Shaw and the pies, at the Exploratorium in March 2007. Photograph by Ron Hipschman, CC BY-SA 3.0, via Wikimedia Commons.

It grew into a ritual. The museum installed a small brass plaque in the floor, the "Pi Shrine", and every year at 1:59 a procession formed behind Shaw, each marcher carrying one digit of π on a stick, in the right order, to circle the shrine 3.14 times while singing happy birthday to Einstein. Shaw led it, boombox on his shoulder, for almost three decades. Colleagues called him the Prince of Pi. He died in August 2017, and the parade still walks without him.

What happened next is the unusual part. Nobody marketed Pi Day. Teachers heard about it and took it home, because it solved a problem every maths teacher has: it is a ready-made excuse to bring food into a lesson about circles. By the 2000s it was on classroom calendars across the United States.

On March 12, 2009, the House of Representatives passed House Resolution 224, "supporting the designation of Pi Day", by 391 votes to 10. It is a non-binding resolution, so nobody gets the day off, but it does encourage "schools and educators to observe the day with appropriate activities that teach students about Pi". In November 2019, UNESCO's General Conference went further and proclaimed March 14 the International Day of Mathematics, first observed in 2020.

The best Pi Day of the century has already happened. On March 14, 2015, written 3/14/15, the clock reached 9:26:53 and for one second the date and time spelled out the first ten digits of π: 3.141592653. It will not happen again until 2115.

Three days on the calendar for one constant

Fig. 1 · the circle’s holidays

March

14

Pi Day

3/14, in the month-first way of writing dates. At 1:59 the clock adds three more digits.

June

28

Tau Day

6.28… = 2π, the circle constant per radius. Its fans say you get to eat twice the pie.

July

22

Pi Approximation Day

22/7, Archimedes' upper bound, in the day-first way of writing dates. Closer to π than 3.14 is.

Most of the world writes the day before the month, so 3/14 means nothing there and 14/3 is no help. For those countries there is July 22. We have more on the two rival dates on the π facts page.
Albert Einstein in Vienna, 1921born in Ulm, on Pi Daypi is in his field equations too

Albert Einstein was born on March 14, 1879. Princeton, where he spent his last 22 years, celebrates both at once, with a pie-eating contest and an Einstein look-alike competition.

The short version. Pi Day is March 14 (3/14), founded by physicist Larry Shaw at the Exploratorium in 1988, celebrated at 1:59 PM, recognised by the U.S. House in 2009 and made the International Day of Mathematics by UNESCO in 2019.

Babylon and Egypt, about 4,000 years ago

Three, and a bit

π is the distance around a circle divided by the distance across it. The surprise is not the value. The surprise is that there is one value at all.

Double the width of a circle and its edge doubles too. Every circle is just a scaled copy of every other circle, so the ratio of circumference to diameter cannot depend on size. It is a single fixed number built into the idea of roundness. The same number then turns up when you ask how much space the circle covers: the area is π times the radius squared. (You can show that with scissors and a paper plate.) Two different questions, one answer. People noticed this long before they could say why.

The oldest written values come from two river civilisations within a few centuries of each other. A Babylonian clay tablet dug up at Susa, from around 1800 BC, compares a hexagon with its surrounding circle in a way that gives π as 3 + 1/8 = 3.125. In Egypt, around 1550 BC, a scribe named Ahmes copied out a book of problems, now called the Rhind Papyrus, and in problem 50 he finds the area of a round field nine units across by a recipe: take away one ninth of the diameter and square what is left. That treats the circle as a square of side eight, which amounts to π = 256/81 ≈ 3.1605.

A section of the Rhind Mathematical Papyrus, covered in hieratic writing and small geometric diagrams
The Rhind Mathematical Papyrus, copied by the scribe Ahmes around 1550 BC and now in the British Museum. Its circle rule is off by about six parts in a thousand.

Neither value is very good, and that is the interesting thing about them. Both were found by measuring and adjusting until the answers came out well enough to tax a field or fill a granary. There is no hint, yet, that the true number might be something you could close in on by pure thought. For that the baton had to pass to a Greek on an island.

Syracuse, about 250 BC

Archimedes builds a trap

You cannot measure a curve with a straight ruler. So he stopped trying, and caught the circle between two shapes he could measure.

Archimedes' little book Measurement of a Circle is three propositions long, and the third contains one of the best ideas anyone has ever had. Draw a hexagon inside a circle, corners touching the edge. Its perimeter is easy to compute and it is certainly shorter than the circle. Now draw a hexagon outside the circle, sides touching the edge. Its perimeter is certainly longer. The circle is caught in between.

Then double the sides. Twelve, twenty-four, forty-eight, ninety-six. Each doubling tightens both polygons against the curve, and each new perimeter can be worked out from the last one using nothing but the Pythagorean theorem and a great deal of patience with square roots. Archimedes had no decimals and no symbol for zero. He stopped at 96 sides and announced the result as two fractions:

3 1071  <  π  <  3 17

3.1408… < π < 3.1428… · Archimedes, Measurement of a Circle, Proposition 3

That upper bound, 22/7, is still the fraction schoolchildren learn. But the answer matters less than the method. For the first time π was not a measurement. It was a number with a guaranteed fence on both sides, and anyone willing to do more arithmetic could move the fences closer. For the next 1,900 years, that is exactly what the chase consisted of.

The squeeze, by hand

Lab 01 · double the sides

6 sides

inside polygon3.000000000000000

outside polygon3.464101615137754

0decimals pinned down

4.6 × 10⁻¹width of the gap

A hexagon · the obvious start. Six radii fit around the circle exactly, so the inside bound is 3. The whole chase begins from this one free fact.

Nine hundred years at the top

In China, Liu Hui reinvented the squeeze in AD 263, working only from the inside polygon, and pushed it to 3,072 sides to get 3.1416. Two centuries later the astronomer Zu Chongzhi and his son went to 24,576 sides and showed that π lies between 3.1415926 and 3.1415927. Zu also offered a fraction, 355/113, which is correct to six decimals and so easy to remember (write 113355, then split it in the middle) that it is still the best party trick in the subject. His seven decimals stood as the world record for more than nine hundred years.

The man who broke it was Jamshid al-Kashi, the leading astronomer at Ulugh Beg's court in Samarkand. In July 1424 he finished a treatise on the circumference in which he set himself a target worthy of an astronomer: a value of π so exact that the circumference of the whole universe, as he understood its size, would be wrong by less than the width of a horse's hair. That required a polygon of 3 × 2²⁸ = 805,306,368 sides. He computed it in base 60, converted it to decimals, and got sixteen places, every one of them right.

The final page of a manuscript of al-Kashi's Treatise on the Circumference, with a table of numbers and lines of Arabic script
The last page of a manuscript of al-Kashi's Treatise on the Circumference (1424). The table at the top holds his value of 2π.

The polygon method had one more champion. Ludolph van Ceulen, a German fencing master who taught mathematics in Leiden, gave most of his adult life to it. In 1596 he published twenty decimals; by his death in 1610 he had thirty-five, from a polygon of 2⁶² sides, a number with nineteen digits. He was so proud of them that they were carved on his tombstone, and in Germany π was called the Ludolphine number for generations.

Thirty-five digits for a lifetime. Everybody could see that the squeeze had reached its limit. Whatever came next would have to be a different kind of idea.

The value, century by century

Fig. 2 · three thousand years by hand

c. 1800 BC

Babylonian scribes3 + 1/8, from a clay tablet found at Susa

3.125

1decimal right

c. 1550 BC

Ahmes, EgyptA circle is a square on 8/9 of its diameter

3.16049

1decimal right

c. 250 BC

Archimedes96-sided polygons, inside and out

3.14185

3decimals right

AD 263

Liu Hui3,072-sided polygon

3.14159

5decimals right

c. 480

Zu Chongzhi24,576 sides; also the fraction 355/113

3.1415926

7decimals right

1424

Jamshid al-Kashi805,306,368 sides, in base 60

3.1415926535897932

16decimals right

1596–1610

Ludolph van CeulenA polygon of 2⁶² sides

3.14159265358979323846264338327950288

35decimals right

Digits printed dark agree with π; the ones in red do not. Every row before 1424 was the best in the world when it was written.

Europe, 1593 to 1748

The circle disappears

Then came formulas with no geometry in them at all: endless sums and products of plain fractions that somehow add up to π.

The first exact formula for π in history belongs to a French lawyer. In 1593 François Viète took Archimedes' doubling and, instead of stopping, wrote down what happens if you never stop: an infinite product of nested square roots of 2. It was the first time anyone in Europe had written an infinite process as a formula and meant it.

In 1655 John Wallis, at Oxford, found a product with no square roots at all, just even numbers over odd numbers, forever. And in the 1670s James Gregory in Scotland and Gottfried Leibniz in Paris arrived at the most startling one of all:

π4 = 1 − 13 + 15 − 17 + 19 − …

The odd numbers, taken in turn, know about circles.

Leibniz was so struck by it that he reached for a line of Virgil: God delights in odd numbers. As a way of computing, though, it is hopeless: you need about half a million terms to get five decimals. The trick was to feed the same kind of series a smaller number. Isaac Newton, sitting out the plague at his mother's farm in 1665 and 1666, used his new calculus to get fifteen digits and later confessed,

I am ashamed to tell you to how many figures I carried these computations, having no other business at the time.

Isaac Newton, on computing π during the plague years
François Viète, from an engraving1593∞ product
John Wallis, from Godfrey Kneller's portrait1655evens ÷ odds
Gottfried Wilhelm Leibniz, from Christoph Bernhard Francke's portrait16741 − ⅓ + ⅕ − …
Isaac Newton, from Godfrey Kneller's 1689 portrait166615 digits
William Jones, from William Hogarth's 1740 portrait1706names it pi
Leonhard Euler, from Jakob Emanuel Handmann's 1753 portrait1748made it stick

Six men who never met around one circle: Viète, Wallis, Leibniz, Newton, Jones and Euler. Between them the number got its formulas, a hundred digits and its name.

One page in 1706: a record and a name

In 1706 a London mathematician, John Machin, found the arrangement that made series practical. He split π into two arctangents of small fractions, 1/5 and 1/239, whose series shrink so fast that every term adds more than a digit. With it he computed one hundred decimals, three times van Ceulen's life's work.

Machin's formula first appeared in print that same year in a textbook by his friend William Jones, a Welsh farmer's son who had once taught navigation aboard a warship. And on the very page where Jones reports Machin's result, he does something small that turned out to be permanent. He needed a name for the number, and chose the first letter of the Greek word for "periphery".

A printed passage from William Jones's 1706 book showing Machin's series and the expression 3.14159, &c. = π
Page 263 of William Jones's Synopsis Palmariorum Matheseos (1706). Third line from the bottom of the formula: "3.14159, &c. = π". The first time the number was called by its name, with a credit to "the Excellent Analyst, and my much Esteem'd Friend Mr. John Machin".

Jones's notation might have died with his book. What saved it was Leonhard Euler, who adopted π in the 1730s and used it in everything he wrote, and since all of Europe learned its mathematics from Euler, the letter stuck. Euler also showed how deep the number runs. In 1734 he solved a problem that had beaten every mathematician for ninety years, the sum of the reciprocals of the squares, and the answer contained a circle nobody had put there:

1 + 14 + 19 + 116 + 125 + … = π²6

Euler, 1734. Later he found the line that ties π to e, i, 1 and 0.

That later line is Euler's identity, and it is the reason a number born in geometry now sits in the middle of algebra. But first, see for yourself how different these formulas are when you make them race.

The formula race

Lab 02 · decimals per term

  1. Gregory & Leibniz1671–74
    π4 = 1 − 13 + 15 − 17 + …
    4.000000000000000
    0 decimals

    Beautiful and hopeless: about 500,000 terms for five decimals.

  2. John Wallis1655
    π2 = 2·21·3 · 4·43·5 · 6·65·7 · …
    2.666666666666667
    0 decimals

    No square roots at all, only whole numbers. Just as slow.

  3. François Viète1593
    2π = √22 · √(2+√2)2 · √(2+√(2+√2))2 · …
    2.828427124746190
    0 decimals

    Archimedes' doubling written as one endless product: three digits every five terms.

  4. John Machin1706
    π4 = 4 arctan 15 − arctan 1239
    3.183263598326360
    1 decimal

    About 1.4 digits a term. It carried every record for the next 240 years.

  5. The Chudnovsky brothers1988
    1π = 12 ∑ (−1)ᵏ (6k)! (13591409 + 545140134k)(3k)! (k!)³ 640320³ᵏ⁺³ᐟ²
    3.141592653589734
    13 decimals

    Fourteen new digits with every term. Every record since 2010 has used it.

Decimals that already match π are printed dark. The bar tops out at fifteen because that is all the precision a browser's arithmetic carries.

Berlin, 1761 · Freiburg, 1882

It never ends, and that is a theorem

For two thousand years people suspected the digits of π go on without a pattern. Two proofs, 121 years apart, settled it for good.

A number whose decimals stop or repeat is a fraction, a ratio of two whole numbers. So the question "does π ever end?" is really the question "is π a fraction?" Twenty-two sevenths is close. 355/113 is closer. Is there some enormous pair of whole numbers that gets it exactly?

In 1761 Johann Heinrich Lambert, a tailor's son from Mulhouse who had educated himself into the Berlin Academy, proved there is not. He wrote the tangent function as an endless ladder of fractions and showed that the tangent of any rational number other than zero must be irrational. But the tangent of π/4 is exactly 1, which is as rational as numbers get. So π/4 cannot be rational, and neither can π. The decimals never end and never settle into a repeating block. That is not an observation about the digits we have. It is a statement about all of them.

Lambert suspected something stronger: that π is not the solution of any algebraic equation at all, however complicated, with whole-number coefficients. Numbers like that are called transcendental. It took until 1882 for Ferdinand von Lindemann to prove it, building on Charles Hermite's proof for e nine years earlier.

Johann Heinrich Lambert, from an 1829 lithographFerdinand von Lindemann, from a photograph1761 · not a fraction1882 · not algebraic

Johann Heinrich Lambert (left) proved π irrational. Ferdinand von Lindemann (right) proved it transcendental, which ended the oldest puzzle in geometry.

The end of squaring the circle

Lindemann's theorem closed a case that had been open since before Euclid. The Greeks had asked: given a circle, can you construct a square of exactly the same area using only a compass and an unmarked straightedge? For that you need to construct a length of √π. But compass and straightedge can only build lengths that come from whole numbers by adding, multiplying and taking square roots, and every such length is algebraic. π is not. So the construction is not hard. It is impossible, in the same way that finding an even number that is odd is impossible.

Same area, forbidden side

Fig. 3 · squaring the circle

r = 1area π=side √π = 1.7724538509…area π
The square exists. What cannot exist is a ruler-and-compass recipe that produces its side from the circle's radius.

Proof did not stop people trying. Fifteen years after Lindemann, a country doctor in Indiana believed he had squared the circle, and in 1897 the state's House of Representatives voted 67 to 0 for a bill built on his method, which would have implied π equals 3.2. A visiting mathematics professor talked the Senate out of it. We tell that story in full in the Indiana Pi Bill.

What nobody knows: is π fair?

Irrational does not mean random. The number 0.101001000100001… never repeats either, and it uses only two digits. So here is a question a child can ask and no one alive can answer: do all ten digits appear in π equally often, in the long run? Does every pair, every triple, every finite string? A number like that is called normal. Every count ever made says π is normal. Nobody has proved it. It has not even been proved that the digit 7 appears infinitely often.

A census of the first million digits

Fig. 4 · counted for this page

We counted them: the commonest digit is 5 (100,359 times) and the rarest is 6 (99,548). The spread is what you would expect from a fair ten-sided die. That is evidence, not proof.

1873 to today

707 digits by hand, then the flood

The last great human computer got 180 digits wrong and nobody noticed for 71 years. Then the machines arrived, and the record went vertical.

William Shanks ran a boarding school in Houghton-le-Spring, a mining village in the north of England. By his own account he calculated in the mornings and checked in the afternoons, and what he calculated, for the better part of twenty years, was π, using Machin's formula. In 1873 he published 707 decimals. It was the most famous feat of arithmetic of the Victorian age. When Paris built its Palais de la Découverte in 1937, Shanks's 707 digits were painted in a spiral around the ceiling of a circular room.

In 1944 D. F. Ferguson, working at the Royal Naval College with a mechanical desk calculator, decided to check them. He found that Shanks had dropped a term somewhere in the long sums, and that from the 528th decimal onward every digit was wrong. A quarter of the monument was noise. The museum repainted its ceiling in 1949.

William Shanks's 707 decimals, marked

Fig. 5 · 527 right, 180 wrong

Each square is one decimal place of Shanks's 1873 value. The first 527 are printed as he had them, correctly. From the 528th on, his digits part company with π.

Ferguson pushed on to 808 digits by 1947, cranking the handle of a desk calculator. The age of human computers had two years left. In September 1949 a team at the U.S. Army's Ballistic Research Laboratory, on a suggestion from John von Neumann, gave the problem to ENIAC over a holiday weekend. The machine ran for 70 hours, still using Machin's formula from 1706, and returned 2,037 digits. Twenty years of Shanks, tripled, in three days.

Two programmers standing at the long plugboard panels of the ENIAC computer in a large room
ENIAC at the Ballistic Research Laboratory, Aberdeen, Maryland, with Glen Beck and Betty Snyder at the panels. In 1949 this machine computed 2,037 digits of π in 70 hours. U.S. Army photograph.

After that the story is told in powers of ten. A hundred thousand digits in 1961, on an IBM 7090 in under nine hours. A million in 1973. A billion in 1989, by David and Gregory Chudnovsky, two brothers from Kyiv who built their own supercomputer out of mail-order parts in a Manhattan apartment, cooled it with household fans, and ran it on a formula of their own that yields fourteen new digits per term. A trillion in 2002. On Pi Day 2019 Google's Emma Haruka Iwao announced 31,415,926,535,897 digits, a count chosen for obvious reasons, and in 2022 she reached one hundred trillion.

The current record was set in 2025. The technology site StorageReview ran the Chudnovsky formula on a single two-processor server with more than two petabytes of solid-state storage, without interruption, from July 31 to November 18. One hundred and ten days. The result: 314 trillion digits. Printed at two millimetres a digit, they would reach the Sun and come back, twice.

Known digits of π, 1424 to 2025

Fig. 6 · logarithmic scale

11,0001 million1 billion1 trillion10¹⁵1400150016001700180019002000machines →← pen and paperal-Kashi · 16van Ceulen · 35Machin · 100Shanks · 527 rightENIAC · 2,037IBM 7090 · 100,000CDC 7600 · 1 millionChudnovskys · 1 billionKanada · 1.24 trillionIwao · 31.4 trillion314 trillion
Each step up the left axis is a thousand times more digits. Five centuries of human effort lift the line from 16 digits to a few hundred; seventy-six years of machines lift it eleven more powers of ten.

One discovery along the way deserves its own sentence, because nobody thought it was possible. In 1995 Simon Plouffe found a formula that computes a single digit of π, in base 16, at any position you like, without computing any of the digits before it. You can ask for the trillionth hexadecimal digit and get it directly. It is as if you could open a book you have never seen to exactly the right letter.

Pasadena, any working day

How many digits does anyone need?

Far fewer than you think. The gap between what π is good for and what we know of it is one of the widest in all of science.

Every Pi Day somebody asks NASA's Jet Propulsion Laboratory how many decimals of π it takes to fly a spacecraft to another planet, and the answer is always the same: fifteen. For its highest-precision navigation JPL uses 3.141592653589793. Voyager 1 is more than 25 billion kilometres away. Compute the circumference of a circle with that radius using only those fifteen decimals, and your answer is wrong by about a centimetre.

Push it to the limit of the cosmos. The visible universe is about 93 billion light-years across. To calculate the length of a circle around all of it with an error smaller than a single hydrogen atom, you need 37 decimals. Thirty-seven. You can learn them in an afternoon, and Isaac Asimov left a sentence to help.

What each digit buys you

Fig. 7 · the price list

2decimals

3.14

A pie tin, a bicycle wheel, a garden pond. Off by one part in two thousand.

4decimals

3.1416

Any workshop job. On a wheel a metre across, the error is thinner than a hair.

15decimals

3.141592653589793

NASA's navigators. A circle with Voyager 1's distance as its radius comes out wrong by about a centimetre.

37decimals

3.1415926535897932384626433832795028842

A circle around the whole visible universe, measured to the width of one hydrogen atom.

314trillion decimals

3.14159…

Nothing you can measure. It tests hardware, feeds the statistics of the digits, and answers the oldest reason there is: to see what comes next.

Voyager figure worked out for this page from the probe's distance, about 2.5 × 10¹³ metres; the 37-decimal figure follows JPL's Marc Rayman.

So why 314 trillion? Partly because a π run is the most merciless hardware test there is: months of arithmetic in which one flipped bit ruins everything after it, with a known right answer to check against. Partly because long runs of digits are the only evidence we have on the open question of whether π is normal. And partly for the reason van Ceulen had, and Shanks, and the Chudnovskys: it is there, it is exact, and nobody has ever seen it before.

Paris, 1777, and everywhere since

π without circles

The strangest thing about π is how often it shows up where nothing is round: in dropped needles, exam grades, prime numbers and swinging clocks.

In 1777 the Comte de Buffon, the great French naturalist, published the answer to a parlour question. Drop a needle onto a floor of parallel boards, each as wide as the needle is long. What is the chance that it lands across a crack? The answer is 2/π. Throw enough needles, count the crossings, and you have measured π with a sewing kit. We have the full story in Buffon's needle, and a version you can do on the kitchen floor.

It was the first sign that π is not really about circles. It is about anything with rotation hidden inside it, and almost everything has rotation hidden inside it. Here is the modern descendant of Buffon's experiment. No needles: just random points, and a count.

π by throwing darts

Lab 03 · chance

π ≈ 4 × 00

?

0darts thrown

—off from the real thing

The circle covers π/4 of the square, so the share of darts inside it, times four, drifts toward π. Slowly: to earn one more decimal you need a hundred times more darts.

Chance

6π² ≈ 61%

Pick two whole numbers at random. This is the probability that they share no common factor. It is Euler's sum of squares, turned upside down.

The bell curve

∫ e−x² dx = √π

The area under the curve that governs heights, exam marks and measurement errors. Why √π?

Pendulums

T = 2π √L/g

The time a pendulum takes to swing there and back. Every grandfather clock is quietly multiplying by π.

Waves

sin(x + 2π) = sin x

Sound, light, tides, alternating current. Anything that repeats is a point going round the unit circle, which is why Fourier's transform is full of π.

Factorials

n! ≈ √2πn (n/e)ⁿ

Stirling's formula for factorials: the number of ways to shuffle n cards. No circle in sight, and π anyway.

Five constants

eiπ + 1 = 0

The most quoted line in mathematics. Euler's identity says that turning halfway round is the same as multiplying by −1.

Why should one number run through all of it?

Mathematics can tell you how π gets into each of these formulas. It cannot tell you why the world is the kind of place where a ratio found by wrapping string around a plate also sets the swing of a pendulum, the spread of a bell curve and the odds that two numbers share a factor. The people in this story mostly took it the way Leibniz took his series of odd numbers, as a glimpse of an order that was put there, not invented. Johannes Kepler said it most plainly:

Geometry, which before the origin of things was coeternal with the divine mind, supplied God with patterns for the creation of the world.

Johannes Kepler, Harmonices Mundi, 1619

You do not have to settle the philosophy to feel the pull of it. A number written into the fabric of things, the same for a Babylonian scribe and a server in Ohio, that no one can ever write down in full. If anything deserves a day, that does.

Your turn

Somewhere in there is your birthday

If π is as fair as it looks, every finite string of digits turns up eventually. Your date of birth, your phone number, this year. Go and look.

We put the first million decimals of π behind the box below. Every one of the 366 possible birthdays, written as four digits, appears in the first 60,872 places; the last to show up is December 3 (1203). Six digits are harder. A date written as MMDDYY has about a 63% chance of appearing in the first million, so do not take it personally if yours is further out.

Find your birthday in π

Lab 04 · the first 1,000,000 decimals

A few landmarks to try. The first zero does not appear until place 32. At place 762 there are six 9s in a row, a spot known as the Feynman point. The string 314159 comes round again at place 176,451. And some numbers sit at the address they describe: the digits at place 16,470 are 16470.

Then there are the people who carry the digits in their heads. Reciting π from memory is an old sport with its own name, piphilology. In October 2006 a retired Japanese engineer, Akira Haraguchi, recited 100,000 decimals in public in a little over sixteen hours, pausing every couple of hours for rice balls. He remembers them as a long story, with a syllable for each digit.

  1. Walk the circle at 1:59.Line up, one digit each, in order. Circle something round 3.14 times. The Exploratorium has done it every year since 1988.
  2. Measure something.String, ruler, every round object in the house. Divide around by across. Average the answers and see how many digits your kitchen can find.
  3. Throw needles.A box of toothpicks and a sheet of ruled paper is a π machine. Here is the recipe.
  4. Eat pie, obviously.Before you cut it: circumference ÷ diameter. A 9-inch pie has 28.27 inches of crust to argue over.
  5. Learn thirty-seven digits.Enough for the whole universe. The π facts page has two mnemonics that make it painless.
  6. Read or watch.Our shelf of six books about π, or Darren Aronofsky's feverish Pi (1998) if the children are in bed.

Quick answers

Pi Day, in brief

When is Pi Day?

Pi Day is March 14 every year. In the month-first way of writing dates, March 14 is 3/14, and 3.14 are the first three digits of π. Many people celebrate at 1:59 PM, because 3.14159 are the first six digits.

Who invented Pi Day?

Pi Day was started in 1988 by Larry Shaw, a physicist at the Exploratorium science museum in San Francisco. The first celebration was a table of fruit pies and a walk around a circular room at 1:59 PM. Shaw led the museum's Pi Day parade every year until his death in 2017.

Is Pi Day an official holiday?

It is officially recognised but it is not a day off. The U.S. House of Representatives passed House Resolution 224 supporting the designation of Pi Day on March 12, 2009, and in November 2019 UNESCO proclaimed March 14 the International Day of Mathematics.

Why is Pi Day also Einstein's birthday?

It is a coincidence. Albert Einstein was born in Ulm, Germany, on March 14, 1879. The Exploratorium added his birthday to its Pi Day celebration, and Princeton, where Einstein lived for 22 years, holds a joint Pi Day and Einstein birthday festival.

How many digits of pi are known?

About 314 trillion. The record was set in 2025 by StorageReview, whose single server ran the Chudnovsky formula for 110 days. For comparison, NASA uses 15 decimals for interplanetary navigation, and 37 decimals are enough to measure a circle the size of the visible universe to the width of a hydrogen atom.

Does pi ever end or repeat?

No. Johann Heinrich Lambert proved in 1761 that π is irrational, which means it cannot be written as a fraction and its decimals never end or settle into a repeating pattern. In 1882 Ferdinand von Lindemann proved it is also transcendental, which is why squaring the circle is impossible.

Why is the number called pi?

The Welsh mathematician William Jones first used the Greek letter π for the number in 1706, as the initial of the Greek word for periphery. Leonhard Euler adopted the symbol in the 1730s, and his books made it standard.

What is Pi Approximation Day?

Pi Approximation Day is July 22, written 22/7 in the day-first date format. The fraction 22/7 is Archimedes' upper bound for π, about 3.1429. Some people also keep Tau Day on June 28, for 2π = 6.28.

Sources & further reading

  • Exploratorium, A Slice of Pi Day History; Reed Magazine, obituary of Larry Shaw (2018).
  • U.S. House of Representatives, H.Res. 224, 111th Congress (March 12, 2009).
  • UNESCO, International Day of Mathematics, proclaimed November 2019.
  • Archimedes, Measurement of a Circle, in T. L. Heath (ed.), The Works of Archimedes (Cambridge, 1897).
  • Petr Beckmann, A History of π (1971); Lennart Berggren, Jonathan Borwein and Peter Borwein, Pi: A Source Book (Springer, 3rd ed. 2004).
  • William Jones, Synopsis Palmariorum Matheseos (London, 1706), p. 263.
  • D. F. Ferguson, "Evaluation of π: are Shanks' figures correct?", The Mathematical Gazette 30 (1946).
  • NASA Jet Propulsion Laboratory, How Many Decimals of Pi Do We Really Need?
  • StorageReview, 314 trillion digits of π (2025).
  • Portraits and documents: Wikimedia Commons, public domain unless credited otherwise. Digits on this page were computed for it and checked against published tables.

Beyond Euclid

Liked this? Get one like it every week.

One email a week, handpicked by Ali. 242 issues so far. Free to join.

As an Amazon Associate, Abakcus earns from qualifying purchases.