Select the cell, hold Alt and type 227 on the numeric keypad, then release Alt to insert π. On a Mac, press Option + P.
Without a numeric keypad, use =UNICHAR(960) for π or =UNICHAR(928) for the capital Π (Excel 2013 and later). In Insert → Symbol, set from to Unicode (hex) and type 03C0 in the Character code box instead of scrolling for it.
To calculate with pi, use the PI() function, not the symbol. =PI() returns 3.14159265358979, so the area of a circle with the radius in A2 is =PI()*A2^2 and the circumference is =2*PI()*A2.
The π symbol is text. Typed into a formula such as =2*π*A2 it returns #NAME?, and a cell holding π can’t be multiplied. Use the symbol in labels and headings, and PI() in the maths.
Leave out the leading zero: Alt + 227 gives π, but Alt + 0227 gives ã. Alt codes without a zero follow the Windows regional code page, so if 227 returns a different character on your PC, use UNICHAR(960).
Changing a cell’s font to Symbol makes a typed p display as π, but the cell still holds the letter p. Change the font, paste it into another app, or test it with a formula, and you get p back.
PI π is a mathematical constant (about 3.14159) used in the equations related to round or spherical things, which could be anything like buildings, orbits, planets, etc., to find the area and circumference of those things.
In Excel, there are multiple ways to insert the PI symbol in the spreadsheet, and here I will show you all of them. If you need the value of pi in a calculation, use the PI function instead (covered at the end).
Insert PI Symbol from Symbol Dialog Box
- First select the cell, where you want to insert the “Pi” symbol and then go to the “Insert” tab.
- After that, click on the “Symbol” icon under the “Symbols” group in the ribbon to open the symbol dialog box.

- Within the symbol dialog box, choose “Unicode (hex)” in the “from” field. To jump straight to the symbol, type 03C0 in the “Character code” box (or pick “Greek and Coptic” in the “Subset” list).
- Now, scroll down a bit with the scroll bar on the right, select the “Pi” symbol, and then click the “Insert” button to insert it.

- Once inserted, click the “Close” button to close the dialog box.

Insert PI Symbol Using Alt Key
The below method using the “ALT” key to insert this symbol only works if your keyboard has a numeric keypad on it.
- First, select a cell.
- After that, press and hold the Alt key.
- Then press “2 2 7” on the number keypad only (without a 0 in front).
- Now release the “Alt” key, and the symbol will be added to the cell.
Make sure you don’t type a 0 first: Alt + 0227 gives you “ã” instead of π, because codes with a leading 0 use a different character set.

Insert PI Symbol Using AutoCorrect in Excel
If you are a frequent user of the “Pi” symbol, then this “AutoCorrect” method could be fast.
- First, go to the “File” tab in the ribbon and then click on “Options” and you will get the “Excel Options” dialog box opened.
- After that, click on “Proofing” from the left side panel and then click on “AutoCorrect Options”.

- Now, to replace any word with the “Pi” symbol, enter that word in the “Replace” box and the “Pi” symbol using the “Alt + 227” keys in the “With” box.
- Once done, click OK to save it.

As you can see in the above image, we have entered “PI” in uppercase to be replaced with the “Pi” symbol, so now whenever we type the word “PI”, it will be replaced with the “Pi” symbol. As AutoCorrect works in all Office apps, a code you won’t type by accident, like “\pi”, is a safer choice than a real word.
Insert PI Symbol using the Font Style
PI has a different symbol in lowercase and uppercase.
- First, in the cell, enter the letter “p” in lowercase if you want the lowercase symbol of “Pi”, or enter “P” in uppercase if you want the uppercase symbol of “Pi”.
- After that, go to the “Home” tab and change the font to “Symbol”, and the letter “P” will be shown as the “Pi” symbol.

In the above screenshot, we have entered “P” both in lowercase and uppercase to show you how the “Pi” symbol looks in uppercase and lowercase. Keep in mind that the cell still contains the letter “p”; if you copy it to another app or change the font, it shows “p” again.
Notes
- For Mac users, simply press the “Option + P” shortcut keys to insert the “Pi” symbol in the spreadsheet.
- To insert the symbol into multiple cells, simply use the copy and paste option or click on the “Fill handle” and drag it over the cells.
Insert PI Symbol with a Formula
In Excel 2013 and later, the UNICHAR function returns the character for a Unicode number. 960 is the lowercase π:
=UNICHAR(960)
For the uppercase Π, use 928 instead. You can also join the symbol with text for a label:
="Area = "&UNICHAR(960)&"r²"
Use the Value of PI in Calculations
The symbol is only text, so you can’t calculate with it. When you need the value of pi in a formula, use the PI function, which returns 3.14159265358979 (accurate to 15 digits). For example, with the radius in A1, this formula gives you the area of a circle:
=PI()*A1^2
And this one gives you the circumference:
=2*PI()*A1
Frequently Asked Questions
Why does Alt + 0227 give me ã instead of π?
Alt codes that start with 0 use the Windows character set, where 227 is “ã”. Type Alt + 227 without the 0 to get π.
How do I type π on a laptop without a number keypad?
Use the Symbol dialog box, the UNICHAR formula, or set up the AutoCorrect entry once and type your code whenever you need the symbol.
Can I use the π symbol in a formula?
No. Excel reads π as text, so a formula that multiplies by the symbol gives an error. Use PI() for the value of pi.
Written by
Puneet Gogia
Microsoft MVP — Excel · Founder, Excel Champs
Twelve years of teaching Excel, and a decade before that using it as a data analyst. Every tutorial here is written from a file I actually built.