SQRT Function (LibreOffice Calc)
The SQRT function in LibreOffice Calc returns the positive square root of a number. Learn syntax, examples, common errors, and best practices.
Compatibility
▾| Excel | ✔ |
| Gnumeric | ✔ |
| Google_sheets | ✔ |
| Libreoffice | ✔ |
| Numbers | ✔ |
| Onlyoffice | ✔ |
| Openoffice | ✔ |
| Wps | ✔ |
| Zoho | ✔ |
What the SQRT Function Does ▾
- Returns the positive square root of a number
- Equivalent to
POWER(number; 0.5) - Works with integers, decimals, and expressions
- Useful for geometry, statistics, and scientific math
- Returns an error for negative inputs
It is designed to be simple, precise, and universally compatible.
Syntax ▾
SQRT(number)
Arguments
- number:
The numeric value whose square root is to be calculated.
Must be non‑negative.
Basic Examples ▾
Square root of a positive number
=SQRT(25)
Returns 5.
Square root of a decimal
=SQRT(2.25)
Returns 1.5.
SQRT with a cell reference
=SQRT(A1)
Returns the square root of A1.
Equivalent POWER expression
=POWER(A1; 0.5)
Same result as SQRT(A1).
Advanced Examples ▾
SQRT in geometric formulas
=SQRT(A1^2 + B1^2)
Computes the hypotenuse using the Pythagorean theorem.
SQRT in variance or standard deviation calculations
=SQRT(A1 / (B1 - 1))
Useful for manual statistical formulas.
SQRT with ABS to avoid negative inputs
=SQRT(ABS(A1))
Ensures the argument is non‑negative.
SQRT for distance calculations
=SQRT((A1 - B1)^2 + (C1 - D1)^2)
Computes Euclidean distance between two points.
SQRT in financial modeling
=SQRT(A1 * B1)
Useful for geometric means and volatility calculations.
Common Errors and Fixes ▾
Err:502 — Invalid argument
Occurs when:
- number is negative
- number is non‑numeric
- a formula returns an error passed into SQRT
Fix:
Ensure the argument is non‑negative and numeric.
SQRT returns Err:503 (overflow)
Occurs when:
- The result is too large for Calc to represent
(rare for SQRT, more common for POWER)
SQRT returns 0 unexpectedly
Possible causes:
- number is extremely small
- number is stored as text
- cell is empty
Fix:
Convert text to numbers using:
Data → Text to Columns → OK
Best Practices ▾
- Use SQRT for clarity when computing square roots
- Use POWER(number; 0.5) only when building generalized exponent formulas
- Avoid passing negative numbers unless wrapped in ABS
- Use SQRT in geometry, statistics, and distance calculations
- Use parentheses to ensure correct order of operations
Related Patterns and Alternatives ▾
- Use POWER(number; 0.5) for generalized exponentiation
- Use POWER(number; 1/3) for cube roots
- Use EXP and LN for exponential/logarithmic models
- Use ABS to sanitize negative inputs
- Use A1 ^ 0.5 as a shorthand for square roots
By mastering SQRT and its combinations with other math functions, you can build precise, readable numeric models in LibreOffice Calc that handle square root calculations cleanly and consistently.