πKNOWS Blog Sign in

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.

A boy rolls a wheel along a line that ends at 3.14, on a sunny square

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 placesPi, rounded
23.14
53.14159
103.1415926536
153.141592653589793
203.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:

FractionValueRight to
22/73.142857…2 places
333/1063.141509…4 places
355/1133.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.

142857, the repeating digits of 22/7, found in pi at position 335,037 in the colors view
142857 repeats forever in 22/7. In pi it is one more string of digits, first at position 335,037.

Search 142857

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:

WherePi
10 digit calculator3.141592654
12 digit calculator3.14159265359
Excel, PI()3.14159265358979
JavaScript, Python, Java3.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.