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

PlatformShortcutNotes
WindowsAlt + 227NumLock must be on, use numeric keypad
MacOption + PWorks everywhere, no setup needed
LinuxCtrl+Shift+U, 03c0Type the Unicode hex, then Enter
Android (Gboard)?123 → =/< → πTop row of extended symbols
iPhone / iPadGreek keyboard → πAdd via Settings first
Microsoft WordAlt + 227Or Insert → Symbol → Greek
Google DocsInsert → Special CharactersSearch "pi"
LaTeX\piIn math mode
HTML&pi;Or &#960; or &#x3C0;

How to Type Pi on Windows

Windows
Method 1: Alt Code (fastest)
1. Make sure NumLock is on
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.

Method 2: Emoji & Symbol Panel
1. Press Win + . (period)
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.

Method 3: Character Map
1. Open Start Menu, search "Character Map"
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

macOS
Method 1: Keyboard Shortcut (easiest of all platforms)
Hold Option and press P

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.

Method 2: Character Viewer
1. Press Cmd + Ctrl + Space
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.

Method 3: Unicode Hex Input
1. Switch keyboard input to "Unicode Hex Input" from the menu bar
2. Hold Option and type 03C0
3. Release — π appears

How to Type Pi on Linux

Linux
Method 1: Unicode Input (works on most distros)
1. Press Ctrl + Shift + U
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.

Method 2: Compose Key
Press Compose then p then i

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.

Method 3: Terminal
echo -e "\u03c0" — prints π in the terminal
xdotool key ctrl+shift+u 03c0 Return — types π in the active window

How to Type Pi on Android

Android
Method 1: Gboard Symbols (quickest)
1. Tap ?123 to switch to numbers/symbols
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.

Method 2: Long-press P

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.

Method 3: Add Greek Keyboard
1. Open Gboard Settings → Languages
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

iOS / iPadOS
Method 1: Greek Keyboard
1. Go to Settings → General → Keyboard → Keyboards
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.

Method 2: Text Replacement (recommended for regular use)
1. Go to Settings → General → Keyboard → Text Replacement
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

Web Development

If you're building a website and need to display π, you have several HTML options:

<!-- HTML Entity (named) --> &pi; → π &Pi; → Π (uppercase) <!-- HTML Entity (decimal) --> &#960; → π &#928; → Π <!-- HTML Entity (hexadecimal) --> &#x3C0; → π &#x3A0; → Π

In CSS, you can insert pi using the content property:

.pi::before { content: "\03C0"; }

In JavaScript:

const pi = "\u03C0"; // π const piValue = Math.PI; // 3.141592653589793

Pi Symbol in Popular Applications

Applications
Microsoft Word

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.

Microsoft Excel

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.

Google Docs

Go to Insert → Special Characters, search "pi", and click the symbol to insert. On Mac, Option + P also works inside Google Docs.

LaTeX

In math mode, simply type \pi for lowercase (π) or \Pi for uppercase (Π). For the variant form (ϖ), use \varpi.

Python
import math print(math.pi) # 3.141592653589793 print("\u03c0") # prints: π

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 &pi; 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 &pi; (named entity), &#960; (decimal), or &#x3C0; (hex). For uppercase Pi: &Pi; or &#928;. For the pi variant (ϖ): &piv; or &#982;.

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.

Copy Paste Pi Symbol


Related Pages