U+03C0Greek Small Letter Pi
Pi Symbol
- Alt code
Alt 227- HTML
π- Unicode
U+03C0
The pi symbol (π) is Unicode U+03C0, HTML π, Alt 227 on Windows, Option+P on a Mac.
The pi symbol π is U+03C0, Greek Small Letter Pi: type it with Alt 227 on the Windows numeric keypad, Option+P on a Mac, π in HTML or \pi in LaTeX, or copy it from this page. It names the ratio of a circle's circumference to its diameter, about 3.14159, and it is a different character from the product sign ∏.
Render test
Checking whether this device has a font that can draw π.
| Symbol | π | |
|---|---|---|
| Unicode | U+03C0 | |
| Name | Greek Small Letter Pi | |
| HTML (named) | π | |
| HTML (decimal) | π | |
| HTML (hex) | π | |
| CSS content | \03C0 | |
| JavaScript / JSON | \u03C0 | |
| UTF-8 bytes | 0xCF 0x80 | |
| UTF-16 units | 0x03C0 | |
| Windows alt code | Alt 227 |
Source: Unicode Character Database. Code point verified as assigned in Unicode 17.0. Last updated . Report an error
How do you type the Greek small letter pi on each platform?
Find your platform in the first column.
| Where | How to type it |
|---|---|
| Any device | Press the copy button on this page, then paste with Ctrl+V on Windows or Cmd+V on a Mac. This is the only method that behaves the same everywhere. |
| Windows | Hold Alt and type 227 on the numeric keypad, then release Alt. 227 is the code page 437 number, which US-English Windows uses for codes without a leading zero; with the zero, Alt 0227 reads Windows-1252 and gives ã instead. The number row above the letters does not work for this. |
| macOS | Press Option+P on the US layout. Option+Shift+P types the product sign ∏, a different character. |
| iPhone and iPad | Add the Greek keyboard under Settings, General, Keyboard, Keyboards, or save π as a text replacement under Settings, General, Keyboard, Text Replacement. |
| Android (Gboard) | Tap ?123, then =\< to open the second symbol page, where the π sits. |
| Linux and ChromeOS | Press Ctrl+Shift+U, type 03c0, then press Enter or the space bar. |
| Microsoft Word | Type 03C0 and press Alt+X with the cursor right after the last digit. Inside an equation, \pi followed by a space gives π. |
| Google Docs | Insert, then Special characters, and search for pi. Inside an equation, \pi followed by a space works too. |
| Excel and Google Sheets | =UNICHAR(960) returns the symbol π as text. For the number itself, use =PI(). |
| HTML | Write π, π or π. Entity names are case-sensitive: Π is the capital Π. |
| CSS | Use content: "\03C0" in a ::before or ::after rule. |
| JavaScript | The escape \u03C0 produces π in a string. The number itself is Math.PI. |
| LaTeX | Write \pi in maths mode; \Pi is the capital letter and \prod the product operator. |
More detail per platform: Windows alt codes, special characters on a Mac, special characters in Word and HTML entities.
Which characters look like the Greek small letter pi?
Several characters render almost identically to this one, and picking the wrong one breaks search, sorting and screen readers even when it looks right on screen. The Greek small letter pi π is U+03C0. These are the ones it is confused with.
| Character | Code point | Name | What it is really for |
|---|---|---|---|
| Π | U+03A0 | Greek Capital Letter Pi | The capital letter, for Greek text. HTML Π. It is a different character from the product sign, even where fonts draw them alike. |
| ∏ | U+220F | N-Ary Product | The product operator, the multiplication counterpart of the summation sign ∑. Larger, and set as an operator in maths fonts. HTML ∏, and Option+Shift+P on a US Mac. |
| ϖ | U+03D6 | Greek Pi Symbol | A variant form of pi with a curled top, written \varpi in LaTeX. It is used as a symbol of its own in some physics and astronomy notation, not as a style of π. |
| п | U+043F | Cyrillic Small Letter Pe | The Cyrillic letter pe. In many fonts it resembles π, but it belongs to Russian and other Cyrillic alphabets, so pasting it as pi breaks search. |
The pi symbol and the number pi
The character π is only a label. To calculate with pi, use the constant your tool provides: =PI() in Excel and Google Sheets, Math.PI in JavaScript, math.pi in Python. Pi is irrational, so each of these is a rounded value; in JavaScript and Python it is 3.141592653589793.
Frequently asked questions
How do I type the pi symbol on a keyboard?
On Windows, hold Alt and type 227 on the numeric keypad. On a Mac, press Option+P. In HTML write π, and in LaTeX \pi. On Gboard, π is on the =\< symbol page; on an iPhone, add the Greek keyboard or copy it from this page.
What is the difference between π and ∏?
π U+03C0 is the Greek letter pi, used for the circle constant. ∏ U+220F is the n-ary product operator, which multiplies a sequence of terms the way ∑ adds them. On a Mac they are one key apart: Option+P and Option+Shift+P.
How do I write pi in Excel?
For the number, use =PI(). For the symbol as text, use =UNICHAR(960) or paste π from this page.
Why does Alt 0227 give ã instead of π?
With a leading zero, Windows reads Windows-1252, where 227 is ã. Pi only exists in code page 437, so type Alt 227 without the zero.
How do I copy the Greek small letter pi symbol?
Press the Copy π button at the top of this page, or click the large π, and it is placed on your clipboard. Paste it anywhere with Ctrl+V or Cmd+V. It is a real text character, so it works in documents, chats and code.
What is the Unicode code point for Greek small letter pi?
The Greek small letter pi has the Unicode code point U+03C0. In HTML you can write it as π or π, or with the named entity π.
What is the alt code for the Greek small letter pi symbol?
On Windows, hold the Alt key and type 227 on the numeric keypad, then release Alt. Copying the π from this page is quicker and works on any device.
Does the Greek small letter pi symbol work everywhere?
In almost every modern app and font, yes. If a font does not include this glyph you may see a placeholder box, but the underlying character U+03C0 is still correct and will render in a font that supports it. The render test on this page checks your own device.
Related symbols
Browse the full math symbols hub, or return to the searchable symbol grid.