SQRT function

This article describes the formula syntax and usage of the SQRT function in Microsoft Excel.

Description

Returns a positive square root.

Syntax

SQRT(number)

The SQRT function syntax has the following arguments:

  • Number    Required. The number for which you want the square root.

Remark

If number is negative, SQRT returns the #NUM! error value.

Example

Copy the example data in the following table, and paste it in cell A1 of a new Excel worksheet. For formulas to show results, select them, press F2, and then press Enter. If you need to, you can adjust the column widths to see all the data.

Data

-16

Formula

Description

Result

=SQRT(16)

Square root of 16.

4

=SQRT(A2)

Square root of -16. Because the number is negative, the #NUM! error message is returned.

#NUM!

=SQRT(ABS(A2))

Avoiding the #NUM! error message by first using the ABS function to find the absolute value of -16 and then finding the square root.

4

Applies To: Excel 2016 Preview, Excel 2010, Excel Starter, Excel 2013, Excel Online, Excel 2016 for Mac, Excel for Mac 2011, Excel 2007



Was this information helpful?

Yes No

How can we improve it?

255 characters remaining

To protect your privacy, please do not include contact information in your feedback. Review our privacy policy.

Thank you for your feedback!

Support resources

Change language