The number **π** (/paɪ/) is a mathematical constant that is the ratio of a circle's circumference to its diameter. The constant, sometimes written **pi**, is approximately equal to 3.14159. It has been represented by the Greek letter "π" since the mid-18th century. π is an irrational number, which means that it cannot be expressed exactly as a ratio of two integers (such as 22/7 or other fractions that are commonly used to approximate π); consequently, its decimal representation never ends and never repeats. Moreover, π is a transcendental number – a number that is not the root of any nonzero polynomial having rational coefficients. The transcendence of π implies that it is impossible to solve the ancient challenge of squaring the circle with a compass and straight-edge. The digits in the decimal representation of π appear to be random, although no proof of this supposed randomness has yet been discovered.

For thousands of years, mathematicians have attempted to extend their understanding of π, sometimes by computing its value to a high degree of accuracy. Before the 15th century, mathematicians such as Archimedes and Liu Hui used geometrical techniques, based on polygons, to estimate the value of π. Starting around the 15th century, new algorithms based on infinite series revolutionized the computation of π, and were used by mathematicians including Madhava of Sangamagrama, Isaac Newton, Leonhard Euler, Carl Friedrich Gauss, and Srinivasa Ramanujan.

In the 20th century, mathematicians and computer scientists discovered new approaches that – when combined with increasing computational power – extended the decimal representation of π to over 10 trillion (1013) digits. Scientific applications generally require no more than 40 digits of π, so the primary motivation for these computations is the human desire to break records, but the extensive calculations involved have been used to test supercomputers and high-precision multiplication algorithms.

Because its definition relates to the circle, π is found in many formulae in trigonometry and geometry, especially those concerning circles, ellipses, or spheres. It is also found in formulae from other branches of science, such as cosmology, number theory, statistics, fractals, thermodynamics, mechanics, and electromagnetism. The ubiquitous nature of π makes it one of the most widely known mathematical constants, both inside and outside the scientific community: Several books devoted to it have been published; the number is celebrated on Pi Day; and news headlines often contain reports about record-setting calculations of the digits of π. Several people have endeavored to memorize the value of π with increasing precision, leading to records of over 67,000 digits.

Read more about Pi: Use