Pi Symbol π

Click to copy π. Below are the shortcuts, the codes for HTML, LaTeX and programming, and the difference between π, Π, ∏ and the math alphabet versions.

π
GREEK SMALL LETTER PI

Pi

Math alphabet and other pi forms

Lookalikes

Other Greek letters used in math

Each click copies that symbol to your clipboard and adds it to this box.

How to type π

WhereShortcut
MacOption + P (U.S. keyboard layout). Careful: Option + Shift + P gives the product sign ∏, not capital Π
WindowsAlt + 227 on the numeric keypad (code page 437), or Windows key + . (period), then Symbols, Greek
Microsoft WordType 03C0, then press Alt + X
Linux (GTK apps)Ctrl + Shift + U, then 3c0, then Enter
HTMLπ (π), Π (Π), ϖ (ϖ)
LaTeX\pi, \Pi, \varpi in math mode
JavaScript / JSON"π"
Python"π" or "\N{GREEK SMALL LETTER PI}"

Mac shortcut from the macOS U.S. layout in the Unicode CLDR keyboard data. π is not in Windows-1252, so there is no Alt+0nnn code.

Which pi character?

CharacterNameUse it for
πGreek small letter pi, U+03C0The number 3.14159..., and Greek text. This is the one you almost always want
ΠGreek capital letter pi, U+03A0Greek text, and some physics and economics notation
∏N-ary product, U+220FThe product operator, ∏ xᵢ. Looks like Π but is a math operator
ϖGreek pi symbol, U+03D6The "variant pi" glyph some fields use as a separate symbol (LaTeX \varpi)
𝜋Mathematical italic small pi, U+1D70BInside math layouts only. In normal text it can break search and copy-paste, and normalization turns it back into π

Pi in code

Use the language constant rather than typing digits, and keep the π character for labels and output:

// JavaScript
const area = Math.PI * r ** 2
const label = `π ≈ ${Math.PI.toFixed(5)}`   // "π ≈ 3.14159"

# Python
import math
area = math.pi * r ** 2

-- SQL (PostgreSQL, MySQL)
SELECT PI();

Both JavaScript and Python allow π in strings without escaping, as long as the file is saved as UTF-8. Python 3 even accepts π as a variable name, but most style guides ask for ASCII identifiers, so prefer pi.

Pi in Markdown

MethodWriteResult
CharacterArea = πr²Area = πr² everywhere
HTML entityArea = &pi;r<sup>2</sup>Rendered by CommonMark and GitHub, shown literally inside code
Math$A = \pi r^2$Typeset formula where math is supported (GitHub, Obsidian, Pandoc)

The ² comes from the superscript generator; for full formulas use the Markdown math editor.

Which character is this?

All pi forms and related Greek letters

SymbolUnicode nameCode pointHTMLCSSWindows Alt code
Pi
πgreek small letter piU+03C0&pi; or &#x03C0;\03C0Alt+227
Πgreek capital letter piU+03A0&Pi; or &#x03A0;\03A0
ϖgreek pi symbolU+03D6&piv; or &#x03D6;\03D6
Math alphabet and other pi forms
𝜋mathematical italic small piU+1D70B&#x1D70B;\1D70B
𝛑mathematical bold small piU+1D6D1&#x1D6D1;\1D6D1
𝝅mathematical bold italic small piU+1D745&#x1D745;\1D745
𝞹mathematical sans-serif bold italic small piU+1D7B9&#x1D7B9;\1D7B9
ℼdouble-struck small piU+213C&#x213C;\213C
ℿdouble-struck capital piU+213F&#x213F;\213F
ᴨgreek letter small capital piU+1D28&#x1D28;\1D28
Lookalikes
∏n-ary productU+220F&prod; or &#x220F;\220F
пcyrillic small letter peU+043F&pcy; or &#x043F;\043F
Other Greek letters used in math
τgreek small letter tauU+03C4&tau; or &#x03C4;\03C4Alt+231
θgreek small letter thetaU+03B8&theta; or &#x03B8;\03B8
φgreek small letter phiU+03C6&phi; or &#x03C6;\03C6Alt+237
ωgreek small letter omegaU+03C9&omega; or &#x03C9;\03C9
σgreek small letter sigmaU+03C3&sigma; or &#x03C3;\03C3Alt+229
λgreek small letter lamdaU+03BB&lambda; or &#x03BB;\03BB
μgreek small letter muU+03BC&mu; or &#x03BC;\03BC
Δgreek capital letter deltaU+0394&Delta; or &#x0394;\0394
Σgreek capital letter sigmaU+03A3&Sigma; or &#x03A3;\03A3Alt+228
Ωgreek capital letter omegaU+03A9&Omega; or &#x03A9;\03A9Alt+234

More symbols to copy