How to Type the Pi Symbol (π)
Every shortcut for every device, in one place
The pi symbol isn't sitting on your keyboard waiting to be pressed. On a standard English layout, there's no dedicated key for it. But every major operating system has a way to type it — some easier than others. This page covers all of them: desktop, laptop, phone, tablet, and even HTML for web developers.
Or if you just need the symbol right now, here you go:
Quick Reference Table
| Platform | Shortcut | Notes |
|---|---|---|
| Windows | Alt + 227 | NumLock must be on, use numeric keypad |
| Mac | Option + P | Works everywhere, no setup needed |
| Linux | Ctrl+Shift+U, 03c0 | Type the Unicode hex, then Enter |
| Android (Gboard) | ?123 → =/< → π | Top row of extended symbols |
| iPhone / iPad | Greek keyboard → π | Add via Settings first |
| Microsoft Word | Alt + 227 | Or Insert → Symbol → Greek |
| Google Docs | Insert → Special Characters | Search "pi" |
| LaTeX | \pi | In math mode |
| HTML | π | Or π or π |
How to Type Pi on Windows
2. Place your cursor where you want the symbol
3. Hold Alt and type 227 on the numeric keypad
4. Release Alt — π appears
This works in Word, Excel, Notepad, and most Windows applications. If you don't have a numeric keypad (common on laptops), try Alt + Fn + 227 using the embedded numpad keys.
2. Click the Ω symbols tab at the top
3. Navigate to "Language Symbols"
4. Find and click π
This method works on Windows 10 and later. It's handy if you don't have a numeric keypad.
2. Check "Advanced view"
3. Search for "pi"
4. Select π, click Select, then Copy
5. Paste with Ctrl + V
How to Type Pi on Mac
That's it. Option + P. Works in every app — Pages, Word, Google Docs, Notes, Messages, Safari, you name it. No setup, no configuration. Mac makes this one easy.
2. Search "pi" in the search bar
3. Double-click π to insert
The Character Viewer also shows font variations of the symbol, which is useful if you need a specific style.
2. Hold Option and type 03C0
3. Release — π appears
How to Type Pi on Linux
2. Type 03c0
3. Press Enter or Space
This works in GTK-based applications (which covers most of the Linux desktop). The 03c0 is the Unicode code point for lowercase pi. For uppercase Pi (Π), use 03a0.
If you have a Compose key configured (common in Ubuntu and Fedora), this sequence produces π. The Compose key is usually mapped to Right Alt or Caps Lock — check your keyboard settings.
echo -e "\u03c0" — prints π in the terminalxdotool key ctrl+shift+u 03c0 Return — types π in the active window
How to Type Pi on Android
2. Tap =/< for extended symbols
3. Find π on the top row and tap it
This is the fastest way if you're using Google's Gboard, which comes pre-installed on most Android phones. The π symbol is available without any setup — just two taps from the main keyboard.
On some keyboards (including certain Gboard versions), long-pressing the letter P on the standard layout reveals π as a popup option. Try it — if it works on your keyboard, it's the fastest method available.
2. Add "Greek" as a language
3. When typing, tap the globe icon to switch to Greek
4. Tap the π key (same position as P on QWERTY)
How to Type Pi on iPhone & iPad
2. Tap Add New Keyboard → select Greek
3. When typing, tap the 🌐 globe icon to switch to Greek
4. Tap π (top row, second from right)
5. Tap 🌐 again to switch back to English
This is the only built-in way to type π on iOS. Apple's standard English keyboard doesn't include the symbol, not even on long-press.
2. Tap the + button
3. Phrase: π (paste the symbol)
4. Shortcut: ppi (or any trigger you like)
5. Tap Save
Now whenever you type "ppi" in any app, iOS will auto-replace it with π. Use a shortcut like "ppi" rather than just "pi" so it doesn't interfere with normal words like "pie" or "pilot".
Pi Symbol in HTML, CSS & JavaScript
If you're building a website and need to display π, you have several HTML options:
In CSS, you can insert pi using the content property:
In JavaScript:
Pi Symbol in Popular Applications
Three options: (1) Use Alt + 227 on the numeric keypad. (2) Go to Insert → Symbol, set Subset to "Greek and Coptic", find π, and click Insert. (3) In the equation editor (Alt + =), type \pi and press Space — Word converts it to a formatted π. The equation editor method is best for math-heavy documents.
Use Alt + 227 to type the symbol in a cell. If you need the numeric value, use the function =PI() which returns 3.14159265358979 to 15 digits.
Go to Insert → Special Characters, search "pi", and click the symbol to insert. On Mac, Option + P also works inside Google Docs.
In math mode, simply type \pi for lowercase (π) or \Pi for uppercase (Π). For the variant form (ϖ), use \varpi.
Which Method Should You Use?
It depends on how often you need it and where you're typing:
If you type π once in a while, just come back to this page and use the copy button at the top. Paste it wherever you need it. No shortcuts to memorize.
If you're on a Mac, remember Option + P. It's the most elegant shortcut across all platforms — two keys, no setup, works everywhere.
If you're on Windows with a numeric keypad, Alt + 227 becomes second nature after a few uses. Without a numpad, the Win + period emoji panel is your best bet.
If you're on a phone and use π regularly, set up a text replacement shortcut. It takes 30 seconds and saves you from switching keyboards every time.
If you're a web developer, use π in HTML. It's readable, semantic, and every browser supports it.
Frequently Asked Questions
What is the Alt code for the pi symbol?
The Alt code for lowercase pi (π) is Alt + 227. Hold Alt, type 227 on the numeric keypad with NumLock on, then release Alt. For uppercase Pi (Π), use Alt + 928. Note that Alt codes only work with the numeric keypad, not the number row at the top of the keyboard.
How do I type pi on a Mac?
Press Option + P. This is the simplest pi shortcut on any platform and works in every application without any configuration.
What is the HTML code for pi?
Use π (named entity), π (decimal), or π (hex). For uppercase Pi: Π or Π. For the pi variant (ϖ): ϖ or ϖ.
How do I type pi in Microsoft Word?
Fastest way: hold Alt and type 227 on the numeric keypad. Alternatively, go to Insert → Symbol → Greek and Coptic subset and select π. For equations, open the equation editor with Alt + = and type \pi.
Can I type pi on a laptop without a numeric keypad?
Yes. On Windows, press Win + period to open the emoji panel and find π under Symbols → Language Symbols. On Mac laptops, Option + P works regardless of keyboard size. On Linux, use Ctrl + Shift + U followed by 03c0.
Is there a pi emoji?
No. As of 2026, there is no official pi emoji in the Unicode emoji set. The π character is classified as a text symbol (Greek Small Letter Pi, U+03C0), not an emoji. You can still use it in messages — it just won't appear with emoji styling.