# PI Function in Excel

Returns the mathematical constant called PI

Returns the mathematical constant called PI

The PI Function in Excel returns the mathematical constant “pi.” To recap, PI is the ratio of a circle’s circumference and its diameter. Often, we would use the PI Function in Excel especially when our business is required to do geometric calculations. These calculations would entail calculating the area of a new office space, a new factory, etc.

When a human does a PI calculation, it will approximate PI as 3.14. However, Excel stores the value of PI accurately to 15 digits and up to 14 decimal places.

The syntax for the PI function is **=** **PI()**

In Excel, if you just input = PI(), you will get the value of PI as shown below:

To learn more, launch our free Excel crash course now!

Let’s take an example to understand it. Let’s assume we are given 8 as the radius and are required to calculate the area of the circle. The formula to use would be:

- To do, this you would first open your Excel spreadsheet. Now input A1 = 8 (radius).
- The next step would be to input the formula in the adjacent cell as shown below:

Remember the PI function takes no arguments. The PI function, as we all are aware in Excel, stores the value up to 15 decimals. However, as seen above, the answer is only up to four decimals. What happened here was that Excel rounded up the answer to correspond with the cell’s degree of accuracy. We can increase the number of decimal places as required. As shown below, I raised it to 15 decimal places. This was done by going to Home tab > Format button > Format Cells. The Format Cells dialog would by default display the *Number* tab.

Now select *Number* under the category and then type 14 into the *Decimal Places* field to use all 14 digits of the constant PI in the formula. Click OK.

To learn more, launch our free Excel crash course now!

You can also use the PI function in VBA. Type:

**application.worksheetfunction.PI()**

For the function’s arguments, you can either enter them directly into the function or define the variables to use instead.

If you want to learn more about functions and become an expert on them, check our CFI’s Free Excel Crash Course! Go through our step by step instructions and demonstrations on how to become an Excel power user.

Thanks for reading CFI’s guide to important Excel functions! By taking the time to learn and master these functions, you’ll significantly speed up your financial analysis. To learn more, check out these additional resources:

To master the art of Excel, check out CFI’s FREE Excel Crash Course, which teaches you how to become an Excel power user. Learn the most important formulas, functions, and shortcuts to become confident in your financial analysis.

Launch CFI’s Free Excel Course now to take your career to the next level and move up the ladder!