Pi symbol (π)
π (pi) is the circumference of any circle divided by its diameter: 3.14159…, the same for every circle.
- capital pi
- Unicode
U+03C0- HTML
π- Alt code
Alt 227- LaTeX
\pi
What it means
Measure around a circle, divide by the distance across it, and you get π, whatever the size. So the circumference is , or , and the area is . A circle 10 cm across is about 31.4 cm around.
π never ends and never repeats: 3.14159 26535 89793 23846… Fractions like 22/7 and the 3.14 on calculators are handy approximations, not its value.
The sign is the small Greek letter pi, first used for this number by William Jones in 1706, likely from the Greek word for perimeter. The capital Π means something else in maths: a product of many terms, as Σ means a sum. 14 March (3/14) is Pi Day.
How to type it
| Windows | Hold Alt and type 227 on the number pad |
|---|---|
| Mac | Option + P |
| Word | Type 03C0, then press Alt + X |
| Google Docs | Insert > Special characters, then search “pi” |
| iPhone and Android | Tap Copy above. To keep it to hand, add a text replacement: on iPhone in Settings > General > Keyboard > Text Replacement, on Android in Gboard’s settings under Dictionary > Personal dictionary |
| HTML | π or π |
In LaTeX
In LaTeX, \pi gives the lowercase pi (π) and \Pi gives the uppercase pi (Π), both in maths mode; \varpi produces the variant form (ϖ).
LaTeX command
\PiNot the symbol you meant? Draw it to find the command →
Typing up handwritten notes? Convert a whole page of handwriting to LaTeX →
Lowercase pi, \pi, is best known as the constant π ≈ 3.14159, the ratio of a circle's circumference to its diameter. As a variable it also denotes the prime-counting function \pi(x), a projection map in geometry and algebra, and a probability or mixing proportion in statistics and machine learning. It must be used in maths mode.
Uppercase pi, \Pi, is the letter form and can denote a product of spaces, a projection operator or osmotic pressure. Note that the large product operator in expressions like \prod_{k=1}^{n} k is the separate command \prod, not \Pi; \prod grows with its limits, while \Pi stays letter-sized.
The variant \varpi gives a curly form (ϖ) resembling a cursive omega, useful as a distinct second pi, for instance a longitude of perihelion in orbital mechanics. All three commands render without extra packages in KaTeX; \pi is italic by default, and \boldsymbol{\pi} makes it bold.
Other forms
\pilowercase pi\Piuppercase pi (Π)\varpicurly / variant formExamples
$\pi \approx 3.14159$the circle constant
$A = \pi r^2$the area of a circle
$\pi(x) \sim \frac{x}{\ln x}$the prime-counting function
$\Pi$uppercase pi (the letter, not \prod)
$\varpi$the variant form
Tips and common mistakes
- The large product operator is
\prod, not\Pi;\prodenlarges and takes limits,\Piis a plain letter. \varpiis the curly variant (ϖ); use it when you need a pi distinct from\pi.- All pi commands are maths-mode only; wrap them in .
- For a bold pi (a stationary distribution or policy) use
\boldsymbol{\pi}, not\mathbf. - The constant is the italic
\piby default; that is the standard mathematical convention.
Working from handwritten notes?
LatexNotes turns a photo or PDF of handwritten mathematics into LaTeX, graphs and all. It is built with real pdflatex before you see it, and the .tex file is yours to edit or take to Overleaf. Free to try, no sign-up.
See how handwriting to LaTeX works, step by step, or go from GoodNotes to LaTeX if you write on an iPad (Notability works the same way).
Convert your maths to LaTeX →FAQ
How do I type π on a Mac?
Option + P.
Is π exactly 22/7?
No. 22/7 = 3.142857…, a little more than π. π is irrational: no fraction equals it exactly.
What is the difference between \Pi and \prod?
\Pi is the uppercase letter pi (Π), letter-sized. \prod is the product operator that grows to fit its limits, as in \prod_{k=1}^{n} k. Use \prod for products.
How do I write a variant pi?
Use \varpi, which renders the curly form ϖ. It works in KaTeX and standard LaTeX without extra packages.
How do I type the constant pi?
Use \pi inside maths mode, for example or .