Returns the positive square root of a number. Essential for distance calculations (Pythagorean theorem), statistical analysis (standard deviation), engineering calculations, and scientific computations.
Master the fundamentals of Excel SQRT function
The SQRT function returns the positive square root of a number. It's mathematically equivalent to raising a number to the power of 0.5 (POWER(number, 0.5)), but SQRT is faster and more readable. SQRT is essential for distance calculations using the Pythagorean theorem, statistical analysis (standard deviation), engineering calculations, and scientific computations.
Always returns positive square root
Only works with non-negative numbers
Equivalent to POWER(number, 0.5)
SQRT is faster than POWER(number, 0.5)
Function-specific parameters
Function-specific return type
Calculate distances using Pythagorean theorem
Calculate standard deviation and variance
Perform engineering and scientific computations
Use in financial calculations and modeling
Exact matching required
Returns numeric position
Handles missing text gracefully
=SQRT(number)The number for which you want the square root. Must be non-negative (≥ 0).
The positive square root of the number
Description: Returns the positive square root of a number. Equivalent to POWER(number, 0.5).
Calculate square root
Returns 4 because √16 = 4. SQRT always returns the positive square root (principal root).
Use SQRT function in VBA to calculate square roots
' Basic SQRT in VBA
Range("C1").Value = Application.WorksheetFunction.Sqrt(16)
' Returns: 4
' Calculate distance using Pythagorean theorem
Sub CalculateDistance()
Dim side1 As Double, side2 As Double
Dim distance As Double
side1 = Range("A1").Value
side2 = Range("B1").Value
distance = Application.WorksheetFunction.Sqrt(side1 ^ 2 + side2 ^ 2)
Range("C1").Value = distance
End Sub
' Calculate square root with error handling
Sub SafeSQRT()
Dim number As Double
number = Range("A1").Value
If number < 0 Then
Range("B1").Value = "#NUM!"
Else
Range("B1").Value = Application.WorksheetFunction.Sqrt(number)
End If
End Sub
' Calculate square roots for range
Sub CalculateSQRTs()
Dim cell As Range
For Each cell In Range("A1:A10")
If IsNumeric(cell.Value) And cell.Value >= 0 Then
cell.Offset(0, 1).Value = Application.WorksheetFunction.Sqrt(cell.Value)
End If
Next cell
End SubCalculate distance/hypotenuse
Calculate standard deviation
Perform engineering computations
Use in scientific calculations
SQRT returns #NUM! for negative numbers
=IF(A1<0, "#NUM!", SQRT(A1)) or =SQRT(ABS(A1))Solution: Ensure the number is non-negative (≥ 0). Use ABS to handle negative values: SQRT(ABS(number)). Check for negative values in formulas.
SQRT results have unexpected precision
=ROUND(SQRT(A1), 4)Solution: Combine SQRT with ROUND for specific decimal places: ROUND(SQRT(number), digits). SQRT of irrational numbers will have many decimal places.
Uncertainty about SQRT vs POWER(0.5)
Use SQRT(16) not POWER(16, 0.5)Solution: SQRT is faster and clearer than POWER(number, 0.5). Always use SQRT for square roots. Use POWER for other fractional powers.
SQRT calculation includes negative intermediate values
=SQRT(ABS(calculation))Solution: Check formulas that feed into SQRT. Use ABS to ensure non-negative: SQRT(ABS(calculation)) or validate: IF(result<0, "Error", SQRT(result)).