Math & trig function

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

C2fx=PI()*B2^2
ABC
1TableRadius (m)
2Meeting table0.61.131

Result: 1.131

π × 0.6² ≈ 1.131 m² (3 decimals), useful for ordering a glass top or varnish.

2Distance covered by a wheel

D2fx=PI()*B2*C2
ABCD
1WheelDiameter (m)Revolutions
2Delivery trolley0.710002,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

D2fx=PI()*B2^2*C2
ABCD
1TankRadius (m)Height (m)
2Rainwater1.22.511.31

Result: 11.31

π × 1.2² × 2.5 ≈ 11.31 m³, about 11,310 litres (2 decimals).

⬇Practice workbookExamples with live formulas + practice sheets · .xlsx · 15 KB

Common errors and how to fix them

ErrorWhy it happensFix
#NAME?Written as =PI without brackets.Always type PI().

Tips

  • Degrees to radians: =angle*PI()/180, or simply RADIANS.
  • In VBA use Application.WorksheetFunction.Pi or 4 * 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.

LanguageFunction name
FinnishPII
ItalianPI.GRECO
RussianПИ
TurkishPİ