Practice free

IMSQRT function

IMSQRT returns the square root of a complex number as text in complex number form. To get a plain number, wrap the result in IMREAL or IMAGINARY.

Example

Read it as a sentence: find the square root of the complex number 1+i, then keep only its real part, which gives 1.09868411346781.

Practice this in the app

Syntax

IMSQRT(inumber)

inumber (required)
A complex number as text, like "3+4i".

Returns: The result as a complex number in text form.

What Excel actually returns

Each formula below was run in desktop Excel. The result is exactly what the cell showed, errors included.

FormulaExcel showsCase
=IMSQRT("3+4i") 2+i "3+4i"
=IMSQRT("3+4j") 2+j Suffix j
=IMSQRT(5) 2.23606797749979 Pure real number 5
=IMSQRT("5") 2.23606797749979 Pure real text "5"
=IMSQRT("i") 0.707106781186548+0.707106781186547i Pure imaginary "i"
=IMSQRT("-2i") 1-i "-2i"
=IMSQRT("3+4I") #NUM! Uppercase I
=IMSQRT("abc") #NUM! Invalid text

Watch out for

  • Result is text; wrap in IMREAL or IMAGINARY to get a number.

Where it works

Excel
IMSQRT is in every version of Excel from 2007 on.
Google Sheets
Same name, same behaviour for everyday use.

Part of Engineering functions. Every result on this page was measured in desktop Excel, build 16.0.20527. Last updated .