PI function
Returns the constant π (3.14159265358979), accurate to 15 digits.
Available in All versions of Excel, Excel for the web, Excel for Mac
In every Excel versionWorks in Google Sheets
Syntax
PI()This function takes no arguments.
Returns: 3.14159265358979.
How PI works
PI returns π, the ratio of a circle's circumference to its diameter, accurate to 15 significant digits. It takes no arguments but the brackets are required: =PI(). Use it in any formula involving circles, cylinders, spheres, rotation or angles: tank volumes, pipe areas, wheel distances, pizza sizes or conversions between degrees and radians.
Typing 3.14 instead introduces an error of about 0.05%, which matters in engineering and when results are multiplied many times. RADIANS and DEGREES use π internally, and SQRTPI combines it with a square root.
Examples
1Area of a round table top
| A | B | C | |
|---|---|---|---|
| 1 | Table | Radius (m) | |
| 2 | Meeting table | 0.6 | 1.131 |
Result: 1.131
π × 0.6² ≈ 1.131 m² (3 decimals), useful for ordering a glass top or varnish.
2Distance covered by a wheel
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Wheel | Diameter (m) | Revolutions | |
| 2 | Delivery trolley | 0.7 | 1000 | 2,199.11 |
Result: 2,199.11
One revolution covers π × 0.7 m; 1,000 revolutions ≈ 2,199.11 m (2 decimals).
3Volume of a cylindrical tank
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Tank | Radius (m) | Height (m) | |
| 2 | Rainwater | 1.2 | 2.5 | 11.31 |
Result: 11.31
π × 1.2² × 2.5 ≈ 11.31 m³, about 11,310 litres (2 decimals).
Common errors and how to fix them
Tips
- Degrees to radians:
=angle*PI()/180, or simply RADIANS. - In VBA use
Application.WorksheetFunction.Pior4 * Atn(1).
Google Sheets
PI also exists in Google Sheets and works the same way for everyday use, so the examples above work there too.
PI in other languages
In a non-English version of Excel the function has a local name. Excel translates formulas automatically when a file is opened in another language.