SQRTPI returns the square root of a number multiplied by pi (π). It is a shortcut for =SQRT(number*PI()) and is useful in geometry, statistics, and engineering calculations.
=SQRTPI(number)What does SQRTPI do?
SQRTPI is a Math & trigonometry function that calculates the square root of a number multiplied by pi. In other words, it returns √(number × π). Instead of typing =SQRT(A2*PI()), you can simply write =SQRTPI(A2). The function takes one argument, the number you want to multiply by pi before taking the square root.
This matters because pi appears in many formulas involving circles, normal distributions, and periodic signals. Manually multiplying by pi and then taking a square root is error-prone and clutters your spreadsheet. SQRTPI keeps formulas short and readable, which reduces mistakes when you share workbooks with colleagues or submit assignments.
A common real situation is estimating the radius of a circle from its area. The area formula is A = πr², so r = √(A/π). With SQRTPI you can rearrange this as r = A / SQRTPI(A), or use SQRTPI directly when your data already represents a value that needs multiplying by pi. It also appears in statistical quality control and physics labs where pi-scaled square roots are part of the calculation.
When to use SQRTPI
- Calculating the radius of a circle when you know its area and want a compact formula.
- Converting a variance-like value into a pi-scaled standard deviation in statistics coursework.
- Estimating distances or dimensions in engineering and physics problems that involve pi under a square root.
- Simplifying spreadsheet formulas in quality control where pi-scaled root calculations are repeated.
- Teaching or checking geometry homework where students must show the square root of pi times a number.
SQRTPI syntax
=SQRTPI(number)| Argument | Required? | What to enter |
|---|---|---|
number | Required | The value to multiply by pi before taking the square root. It must be zero or positive; negative numbers return an error. Example: =SQRTPI(4) returns 3.5449 because 4 × π = 12.566 and its square root is about 3.5449. |
What it returns: SQRTPI returns a positive number: the square root of (number × π). If number is 0, it returns 0. If number is negative, it returns the #NUM! error.
SQRTPI examples
1 Basic SQRTPI calculation
This example shows the simplest use. The goal is to see what SQRTPI does with a single positive number. Cell B2 holds 4, and the formula =SQRTPI(B2) multiplies 4 by pi (about 12.566) and then takes the square root, returning approximately 3.5449. The result is placed in D2, outside the table, and only refers to B2.
| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | Item | Value | |||
| 2 | Sample | 4 | 3.544907702 | ||
| 3 |
2 SQRTPI with a list of measurements
Here a lab technician records four measurements and wants the pi-scaled square root of each. The formula in D2 uses SQRTPI on the first measurement, B2. It multiplies 9 by pi (about 28.274) and takes the square root, giving about 5.3174. You could copy the formula down the column, but this example shows the single target cell for the first row.
| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | Sample ID | Measurement | |||
| 2 | S-01 | 9 | 5.317361553 | ||
| 3 | S-02 | 16 | |||
| 4 | S-03 | 25 | |||
| 5 | S-04 | 36 | |||
| 6 |
3 Radius from circle area using SQRTPI
A landscape designer has circular flower beds and knows only their areas. The radius of a circle is the square root of (area divided by pi). Because SQRTPI(area) equals the square root of (area × pi), the radius can be written as area divided by SQRTPI(area). For the first bed with area 50, SQRTPI(50) is about 12.5331, and 50 divided by 12.5331 gives about 3.9894, the radius in metres.
| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | Bed | Area (sq m) | |||
| 2 | Bed A | 50 | 3.989422804 | ||
| 3 | Bed B | 78.5 | |||
| 4 | Bed C | 113.1 | |||
| 5 |
4 Quality control: pi-scaled root of defect counts
A quality analyst tracks defect counts per batch and wants a pi-scaled root value for a control chart. The formula =SQRTPI(B2) takes the defect count 12, multiplies by pi (about 37.699) and returns the square root, about 6.1399. This value can be plotted alongside other batches to spot unusual variation. The target cell D2 sits outside the table and refers only to B2.
| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | Batch | Defects | |||
| 2 | B-100 | 12 | 6.139960248 | ||
| 3 | B-101 | 7 | |||
| 4 | B-102 | 15 | |||
| 5 | B-103 | 9 | |||
| 6 |
5 Physics lab: pi-scaled root of pendulum lengths
In a physics lab, students record pendulum lengths and need a pi-scaled square root for a period approximation exercise. The formula =SQRTPI(B2) multiplies the length 0.25 by pi (about 0.7854) and returns the square root, about 0.8862. This demonstrates how SQRTPI handles decimal inputs just as easily as whole numbers. The answer goes in D2, outside the table.
| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | Pendulum | Length (m) | |||
| 2 | P-1 | 0.25 | 0.8862269255 | ||
| 3 | P-2 | 0.5 | |||
| 4 | P-4 | 0.75 | |||
| 5 | P-5 | 1 | |||
| 6 |
Common SQRTPI errors and how to fix them
| Error | Why it happens | How to fix it |
|---|---|---|
| #NUM! | The number argument is negative, so the result would be the square root of a negative value. | Make sure the number is zero or positive. If your data can be negative, use =SQRTPI(ABS(B2)) or correct the source value. |
| #VALUE! | The number argument is text that cannot be converted to a number, such as a word or a date stored as text. | Check that the referenced cell contains a number. Remove spaces or non-numeric characters, or use =SQRTPI(VALUE(B2)) after cleaning the text. |
| #NAME? | The function name is misspelled, for example =SQRTPIE(4) or =SQRTPI without parentheses. | Type =SQRTPI( and let Excel suggest the function, or correct the spelling to SQRTPI. |
| #REF! | The formula refers to a cell that has been deleted or moved. | Edit the formula and point it to a valid cell in the table, or undo the deletion. |
Tips for using SQRTPI
- SQRTPI(x) is the same as SQRT(x*PI()). Use whichever is clearer for your audience.
- To find a radius from an area, use =Area/SQRTPI(Area) instead of typing pi twice.
- Wrap negative inputs with ABS if you only care about magnitude: =SQRTPI(ABS(B2)).
- Format the result with a fixed number of decimals so pi-scaled values are easy to compare.
- Remember that SQRTPI(0) returns 0, which is useful for empty or zero-count rows.
- Use a named range for your input column to make formulas like =SQRTPI(Measurement) easier to read.
Frequently asked questions
What is the difference between SQRT and SQRTPI?
SQRT returns the square root of a single number. SQRTPI first multiplies the number by pi, then returns the square root, so =SQRTPI(4) equals =SQRT(4*PI()).
Can SQRTPI handle negative numbers?
No. A negative number returns #NUM! because the square root of a negative value is not a real number. Use ABS or correct the input if you need a positive result.
Does SQRTPI work in Excel for the web and older versions?
Yes. SQRTPI is a standard function available in Excel 2007 and later, Excel for the web, and Excel for Microsoft 365.
How do I get the radius of a circle from its area using SQRTPI?
Use =Area/SQRTPI(Area). Since SQRTPI(Area) equals the square root of (Area × pi), dividing Area by that value gives the radius.
Related functions
Every example on this page was recalculated by SheetSkill’s spreadsheet engine. SQRTPI reference