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.
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 π
| Where | Shortcut |
|---|---|
| Mac | Option + P (U.S. keyboard layout). Careful: Option + Shift + P gives the product sign ∏, not capital Π |
| Windows | Alt + 227 on the numeric keypad (code page 437), or Windows key + . (period), then Symbols, Greek |
| Microsoft Word | Type 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?
| Character | Name | Use it for |
|---|---|---|
| π | Greek small letter pi, U+03C0 | The number 3.14159..., and Greek text. This is the one you almost always want |
| Π | Greek capital letter pi, U+03A0 | Greek text, and some physics and economics notation |
| ∏ | N-ary product, U+220F | The product operator, ∏ xᵢ. Looks like Π but is a math operator |
| ϖ | Greek pi symbol, U+03D6 | The "variant pi" glyph some fields use as a separate symbol (LaTeX \varpi) |
| 𝜋 | Mathematical italic small pi, U+1D70B | Inside 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
| Method | Write | Result |
|---|---|---|
| Character | Area = πr² | Area = πr² everywhere |
| HTML entity | Area = π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
| Symbol | Unicode name | Code point | HTML | CSS | Windows Alt code |
|---|---|---|---|---|---|
| Pi | |||||
| π | greek small letter pi | U+03C0 | π or π | \03C0 | Alt+227 |
| Π | greek capital letter pi | U+03A0 | Π or Π | \03A0 | |
| ϖ | greek pi symbol | U+03D6 | ϖ or ϖ | \03D6 | |
| Math alphabet and other pi forms | |||||
| 𝜋 | mathematical italic small pi | U+1D70B | 𝜋 | \1D70B | |
| 𝛑 | mathematical bold small pi | U+1D6D1 | 𝛑 | \1D6D1 | |
| 𝝅 | mathematical bold italic small pi | U+1D745 | 𝝅 | \1D745 | |
| 𝞹 | mathematical sans-serif bold italic small pi | U+1D7B9 | 𝞹 | \1D7B9 | |
| ℼ | double-struck small pi | U+213C | ℼ | \213C | |
| ℿ | double-struck capital pi | U+213F | ℿ | \213F | |
| ᴨ | greek letter small capital pi | U+1D28 | ᴨ | \1D28 | |
| Lookalikes | |||||
| ∏ | n-ary product | U+220F | ∏ or ∏ | \220F | |
| п | cyrillic small letter pe | U+043F | п or п | \043F | |
| Other Greek letters used in math | |||||
| τ | greek small letter tau | U+03C4 | τ or τ | \03C4 | Alt+231 |
| θ | greek small letter theta | U+03B8 | θ or θ | \03B8 | |
| φ | greek small letter phi | U+03C6 | φ or φ | \03C6 | Alt+237 |
| ω | greek small letter omega | U+03C9 | ω or ω | \03C9 | |
| σ | greek small letter sigma | U+03C3 | σ or σ | \03C3 | Alt+229 |
| λ | greek small letter lamda | U+03BB | λ or λ | \03BB | |
| μ | greek small letter mu | U+03BC | μ or μ | \03BC | |
| Δ | greek capital letter delta | U+0394 | Δ or Δ | \0394 | |
| Σ | greek capital letter sigma | U+03A3 | Σ or Σ | \03A3 | Alt+228 |
| Ω | greek capital letter omega | U+03A9 | Ω or Ω | \03A9 | Alt+234 |
More symbols to copy
- Special Characters: every symbol group on one page
- Degree Symbol: ° ℃ ℉ and the lookalikes to avoid
- Infinity Symbol: ∞ and ♾ with codes
- Math Symbols: × ÷ ± ≠ ≤ ≥ √ and more
- Section and Paragraph Symbols: § ¶ © ® ™
- Currency Symbols: € £ ¥ ₹ ₿ and 30 more
- Em Dash: dashes and a dash replacer
- Bullet Point Symbols: bullets and a list converter
- Arrow Symbols: arrows with LaTeX commands
- Check Mark Symbols: checks, crosses and boxes
- Invisible Character: blank characters and a hidden character finder