How to type Alt+227
- Make sure Num Lock is on.
- Hold down the Alt key.
- Type 227 on the numeric keypad. The number row above the letters will not work.
- Release Alt. The pi symbol π appears.
Alt+227 is a classic code from the CP437 table used by the original IBM PC, which is why there is no leading zero. This symbol does not exist on the Windows-1252 table, so the classic code is the only Alt code for it.
On a laptop without a numpad
Press Win+. to open the emoji panel, pick the Symbols tab and search for "pi". Or open Character Map from the Start menu. In Microsoft Word you can type 03C0 followed by Alt+X. Some laptops have a hidden numpad on the J, K, L, U, I and O keys that activates with Fn.
On a Mac
Alt codes do not exist on macOS, but this symbol has a shortcut: press Option+P.
In HTML and code
Use π in HTML, "\03C0" in CSS and "\u03C0" in JavaScript. See the Pi Symbol guide for every platform.
Frequently asked questions
What does Alt+227 type?+
Alt+227 types the pi symbol, π (Unicode U+03C0). Hold Alt, type 227 on the numeric keypad, then release Alt.
Why do I need the code without a zero?+
Alt+227 is a classic CP437 code from the original IBM PC character set. It has no leading zero.
Alt+227 does not work. Why?+
Check that Num Lock is on and that you are using the numeric keypad rather than the number row. Laptops without a numpad cannot enter Alt codes: use Win + . for the symbol panel, Character Map, or copy the symbol from this page.
How do I type π on a Mac?+
Press Option+P on a Mac. Alt codes themselves do not work on macOS.