Last copied
nothing yet. copy anything below.

How to type Pi

To type Pi (π), press Alt + 227 on Windows, holding Alt while typing the digits on the numeric keypad, or press Option + P on Mac, or write π in HTML. On any system you can copy it from this page, or enter its codepoint U+03C0 directly: Ctrl+Shift+U then 03c0 on Linux, or 03c0 then Alt+X in Microsoft Word.

Greek Small Letter Pi

π
Copy it
Unicode
U+03C0
Windows
Alt + 227
Ways to type Pi
WhereShortcutHow
WindowsAlt + 227Hold Alt and type the number on the numeric keypad.
MacOption + PPress the keys together.
HTMLπPaste this into HTML source.
UnicodeU+03C0GREEK SMALL LETTER PI

Other greek symbols

All greek alt codes

π lives in the Greek and Coptic block (U+0370-U+03FF), the Greek alphabet, used throughout mathematics and the sciences. Within Unicode it is classified as Ll, a lowercase letter. It has an uppercase counterpart and changes under case conversion. Its bidirectional class makes it left-to-right.

Its uppercase counterpart is Π (U+03A0). They are separate codepoints, so a byte comparison treats them as different characters even though a case-insensitive search does not.

What Pi is used for

In mathematical notation π is a variable: it stands for a quantity rather than acting on one, so an equation treats it the way it treats x, and the spacing around it is the spacing around a letter. That is the classification unicode-math gives it, and it is what decides how the symbol is set: $\muppi$ in LaTeX, in maths mode rather than in a sentence.

The command is \muppi rather than the \pi most people reach for, and the difference is not cosmetic: mup is unicode-math for maths, upright, and this codepoint is the upright letter. Plain LaTeX's short command gives the sloped math-italic letter, which is a different character with a different codepoint. Copying π into an equation gets you the upright one.

π is a letter before it is a symbol, and on the Greek keyboard layout it is simply P: the key your keycap already calls P. That is the route when you are typing Greek rather than reaching for one character. How to type Greek on a keyboard has the whole map.

What π gets confused with

Unicode's own confusables table, the one used to catch lookalike domain names, groups π with ϖ (U+03D6, Greek Pi Symbol), п (U+043F, Cyrillic Small Letter Pe), ℼ (U+213C, Double-Struck Small Pi), 𝝅 (U+1D745, Mathematical Bold Italic Small Pi) and 𝝿 (U+1D77F, Mathematical Sans-Serif Bold Small Pi). They are separate characters that render close enough to be mistaken for one another, so a search or a string comparison will separate them where your eye will not. If Pi is not matching where you expect it to, one of these is the usual reason.

What Unicode says about Pi

Unicode annotates π directly. Against U+03C0 the code chart carries the note “Math constant 3.141592...”. That is the standard saying what the character is for, rather than an inference from its name.

How Pi behaves in software

π is East Asian Ambiguous: one column in a Western locale and two in a CJK one. That is why a table that lines up on your machine can break on somebody else's, with no change to the text at all. It is a left-to-right character, so it holds that direction even inside a right-to-left paragraph.

Every way to write Pi

Encodings and escapes for Pi (π)
FormValue
CodepointU+03C0
Decimal960
UTF-8 bytesCF 80
UTF-16 bytes03 C0
HTML entityπ
HTML numericπ or π
CSS\03C0
JavaScript\u03C0
Python\u03C0
URL-encoded%CF%80
LaTeX, in maths mode$\muppi$
SVG03C0.svg · (SIL Open Font License)

If π arrives as Ï€

That is this exact character, undamaged: its two UTF-8 bytes CF 80 are being read one at a time as Windows-1252. The Latin-1 range is where this happens most, because it is the range every legacy system thought it already handled. Nothing is lost, and retyping will not help: the fix is at the reading end, which has to be told the text is UTF-8. An empty rectangle is the opposite complaint, and means the encoding is right and the font has no glyph for U+03C0.

Namepoint at any character
Unicode—
Windows—
Mac—
HTML—
COPIED