Greek
How to type Pi (π)
Copy the character, or use the shortcut that matches your keyboard and app.
Windows
Hold Alt and type 227 on the numeric keypad.
Mac
Option + P
Microsoft Word
Type 03C0 then Alt + X
Google Docs
Insert → Special characters → pi
How to insert it
Copy
Click the keycap, then paste with Ctrl+V or Cmd+V.
Alt code
Num Lock on, hold Alt, type 227, release Alt.
Code
Use the Unicode, HTML, CSS, or JS value below in documents and stylesheets.
- Unicode
U+03C0- HTML decimal
π- HTML hex
π- CSS
\03C0- JavaScript
\u{03C0}- Alt code
Alt + 227
Related
About the Pi
The Pi (π, U+03C0) the ratio of a circle's circumference to its diameter, about 3.14159 — the most famous constant in mathematics.
Mathematical symbols live or die by precision — a lookalike won't do. These get typed constantly in school documents, spreadsheets, and technical writing, which is why the Alt code and Unicode value in the reference table are worth memorizing.
If you type π regularly, stop copying it. On Windows, hold Alt and type 227 on the numeric keypad. On a Mac, press Control+Command+Space to open the Character Viewer and find it instantly. In Word, type 3c0 and press Alt+X. The full code list is in the reference table below.
In Unicode it lives in the Greek and Coptic block, so it behaves the same everywhere Unicode is supported — which today means virtually every device, app, and browser. Related symbols: Infinity, Plus-minus, Square root.
Pi quick reference
| Symbol | π |
|---|---|
| Name | Pi |
| Unicode | U+03C0 |
| Alt code | Alt + 227 |
| HTML decimal | π |
| HTML hex | π |
| HTML entity | π |
| CSS | \03C0 |
| JavaScript | \u03C0 |
| URL encoded | %CF%80 |
Compatibility: Displays correctly on iPhone, Android, Windows and Mac.
How to type π on your phone
iPhone / iPad
iPhones have no Alt codes. The fastest way is to copy the symbol above and paste it where you need it. To reuse it often, save it as a text replacement: go to Settings → General → Keyboard → Text Replacement, tap +, paste the symbol into Phrase and give it a Shortcut.
Android
On Gboard, tap ?123 then =\< to open the symbols keyboard — many symbols hide under a long-press on related keys. Otherwise just copy the symbol above and paste it; it works in every app.