Google Sheets function · Math
SQRT in Google Sheets: syntax and examples
SQRT returns the positive square root of a non-negative number. It is the inverse of squaring.
Syntax
SQRT(value)
Arguments
| Argument | Type | Required | What it does |
|---|---|---|---|
value | number | yes | The number to take the square root of. It must be zero or positive. |
Examples
The examples use this table, starting in A1:
| Area | Delta | Side a | Side b |
| 81 | -4 | 3 | 4 |
=SQRT(A2)Result: 9
Side of a square with area 81.
Run in a Google Sheet (English US locale) on .
=SQRT(ABS(B2))Result: 2
ABS removes the sign first, so a negative input works.
Run in a Google Sheet (English US locale) on .
=SQRT(C2^2 + D2^2)Result: 5
Hypotenuse of a right triangle with legs 3 and 4.
Run in a Google Sheet (English US locale) on .
=ROUND(SQRT(2), 4)Result: 1.4142
An irrational root rounded to four decimals.
Run in a Google Sheet (English US locale) on .
=IFERROR(SQRT(B2), "negative")Result: negative
A negative input would return #NUM!. IFERROR swaps it for text.
Run in a Google Sheet (English US locale) on .
Common errors
- A negative number returns #NUM!. ABS removes the sign, IFERROR swaps the error for your own text.
- Non-numeric text such as "abc" returns #VALUE!, while numeric text such as "9" is converted and returns 3.
- In a locale that uses ";", ROUND(SQRT(2), 4) with a comma separator returns #ERROR!.
Compared with Excel
Same syntax in Excel.