Value of pi: 3.14, 22/7 and how many digits we need
The value of pi is 3.14159 26535 89793…, the distance around any circle divided by the distance across it. Its digits never end and never repeat. Here is what 3.14 and 22/7 get right, how many digits real work needs, and how many digits are known.

- 15decimal places NASA uses to steer spacecraft
- 37decimal places measure the universe to one atom
- 314 trilliondigits known, the record set in 2025
What is pi?
Take any circle. Its circumference, the distance around it, divided by its diameter, the distance across it, is always the same number: pi, written π. So the circumference is π times the diameter, and the area is π times the radius squared. A wheel one meter across rolls 3.14159… meters in one turn.
Pi to 2, 5, 10, 15 and 20 decimal places
| Decimal places | Pi, rounded |
|---|---|
| 2 | 3.14 |
| 5 | 3.14159 |
| 10 | 3.1415926536 |
| 15 | 3.141592653589793 |
| 20 | 3.14159265358979323846 |
At 10 places the last digit goes up, because the digits run on as 3.14159265358…, so 3.1415926535 rounds to 3.1415926536. The first 1,000 digits are in digits of pi.
Is pi equal to 22/7?
No. 22/7 is 3.142857142857…, and its six digits 142857 repeat forever, which the digits of pi never do. It matches pi only to 2 decimal places, 3.14, and is too big by about 0.00126, or 0.04%. Archimedes proved in the 3rd century BC that pi lies between 223/71 and 22/7, which is how 22/7 became the value learned at school. July 22, written 22/7, is Pi Approximation Day.
A far closer fraction is 355/113, found by the Chinese mathematician Zu Chongzhi in the 5th century. It is right to 6 decimal places and off by less than 3 parts in 10 million:
| Fraction | Value | Right to |
|---|---|---|
| 22/7 | 3.142857… | 2 places |
| 333/106 | 3.141509… | 4 places |
| 355/113 | 3.1415929… | 6 places |
142857 itself does turn up in pi, as every 6 digit string does: first at position 335,037, and 10,103 times in the first 10 billion digits, close to the 10,000 that chance predicts.

How many digits of pi does NASA use?
15 decimal places: 3.141592653589793. NASA's Jet Propulsion Laboratory uses this value for its most precise work, steering spacecraft between the planets, as Marc Rayman, its former chief engineer for mission operations, explains. With it, the circumference of a circle 40 billion miles across, about 64 billion kilometers, comes out wrong by about 1.5 centimeters, the width of a little finger.
Even the universe needs few digits. For a circle as wide as the known universe, 46 billion light years in radius, 37 decimal places give the circumference to within the width of a hydrogen atom.
3.141592653589793: the pi in calculators and code
3.141592653589793 is pi to 15 decimal places, and it is the pi most computers use. Math.PI in JavaScript, math.pi in Python and Math.PI in Java all hold it, because the standard number type in a computer keeps only about 16 significant digits. Calculators and spreadsheets give fewer digits:
| Where | Pi |
|---|---|
| 10 digit calculator | 3.141592654 |
| 12 digit calculator | 3.14159265359 |
| Excel, PI() | 3.14159265358979 |
| JavaScript, Python, Java | 3.141592653589793 |
A calculator rounds its last digit. A 10 digit one ends in 4 because pi goes on 3.141592653 58…, and 3.14159265358, cut off after 11 decimals, becomes 3.14159265359. The number a computer actually stores for 3.141592653589793 is 3.14159265358979311599…, a little under pi, by about 0.00000000000000012. That is why sin(π) in code gives this tiny number instead of 0.
How many digits of pi are known?
314 trillion. StorageReview and Micron Technology finished the record calculation on 18 November 2025, after 110 days on a single server. The record before it, 300 trillion digits, was set in April 2025.
piknows searches the first 10 billion of them. That is already enough to hold every 8 digit number, from 00000000 to 99999999, as does pi contain every number shows.
Does pi ever end?
No. Pi is irrational: it is not a fraction, so its digits never stop and never settle into a loop, as the digits of 22/7 do. Johann Lambert proved it in the 1760s. There is no last digit of pi, only the last digit anyone has computed so far. Try your own number in the first 10 billion:
Frequently asked questions
What is the value of pi?
3.14159265358979323846…, the circumference of any circle divided by its diameter. The digits never end and never repeat.
Is pi equal to 22/7?
No. 22/7 is 3.142857…, right to only 2 decimal places. 355/113 is far closer: 3.1415929…, right to 6.
Is pi exactly 3.14?
No. 3.14 is pi rounded to 2 decimal places. Pi is a little more: 3.14159…
How many digits of pi does NASA use?
For its most precise calculations, steering spacecraft between the planets, NASA's Jet Propulsion Laboratory uses 15 decimal places: 3.141592653589793.
Is 3.141592653589793 pi?
It is pi to 15 decimal places, the value JavaScript, Python and Java use, and the one NASA's Jet Propulsion Laboratory works with. Pi itself goes on, 3.14159265358979323846…, and never ends.
How many digits of pi have been calculated?
314 trillion, a record set by StorageReview and Micron Technology on 18 November 2025.
What is the last digit of pi?
There is none. Pi is irrational, so its digits go on forever without settling into a repeating pattern.