Summary

The Excel SQRTPI function returns the square root of the product of a number and π (pi).

Purpose 

Get the square root of (number × π)

Return value 

A positive number.

Syntax

=SQRTPI(number)
  • number - A positive number to multiply by π before taking the square root.

Using the SQRTPI function 

The SQRTPI function calculates the square root of (number × π). This is equivalent to SQRT(number*PI()) but provides a more direct way to perform this calculation. The function returns a numeric value accurate to 15 digits.

=SQRTPI(1) // returns 1.77245385090552 (square root of π)

If the number argument is negative, SQRTPI returns a #NUM! error. If the number argument is not numeric, SQRTPI returns a #VALUE! error. 

Basic Examples

=SQRTPI(1) // returns 1.772453851 (square root of π)
=SQRTPI(4) // returns 3.544907702 (square root of 4π)

Comparison with Equivalent Formula

The SQRTPI function provides the same result as combining the SQRT and PI functions:

=SQRTPI(9) // 5.31736155271656
=SQRT(9*PI()) // 5.31736155271656 (equivalent)

Error Handling

The SQRTPI function will return errors in the following cases:

  • #NUM! error: When the number argument is negative
  • #VALUE! error: When the number argument is not numeric
=SQRTPI(-1) // Returns #NUM! error
=SQRTPI("text") // Returns #VALUE! error
=SQRTPI(TRUE) // Returns #VALUE! error
Dave Bruns Profile Picture

AuthorMicrosoft Most Valuable Professional Award

Dave Bruns

Hi - I'm Dave Bruns, and I run Exceljet with my wife, Lisa. Our goal is to help you work faster in Excel. We create short videos, and clear examples of formulas, functions, pivot tables, conditional formatting, and charts.