tech on the net

MS Excel: PI Function (WS)

Learn how to use the Excel PI function with syntax and examples.

Description

The Microsoft Excel PI function returns the mathematical constant called pi, which is 3.14159265358979.

Syntax

The syntax for the Microsoft Excel PI function is:

PI( )

Parameters or Arguments

There are no parameters or arguments for the PI function.

Applies To

The PI function can be used in the following versions of Microsoft Excel:

  • Excel 2013, Excel 2011 for Mac, Excel 2010, Excel 2007, Excel 2003, Excel XP, Excel 2000

Type of Excel Function

The PI function can be used in Microsoft Excel as the following type of function:

  • Worksheet function (WS)

Example (as Worksheet Function)

Let's look at some Excel PI function examples and explore how you would use the PI function as a worksheet function in Microsoft Excel:

Microsoft Excel

Based on the spreadsheet above, the following Excel PI examples would return:

=PI() would return 3.141592654
=PI() * A1 would return 59.69026042
=PI() / A2 would return 0.184799568
=PI() + A3 would return -9.858407346