Engineering function

IMSQRT function

Returns the principal square root of a complex number, for example the square root of "1+i" or of a negative number like -4.

Available in Excel 2007 and later (Excel 2003 needed the Analysis ToolPak add-in), Microsoft 365, Excel for the web, Excel for Mac

Excel 2007 and laterWorks in Google Sheets

Syntax

IMSQRT(inumber)
ArgumentWhat it means
inumberRequiredA complex number as text such as "3+4i" or "5-2j", a cell containing one, or a plain number. Build it with COMPLEX to avoid typing errors.

Returns: A complex number as text.

How IMSQRT works

IMSQRT returns the square root of a complex number. Unlike SQRT, it happily accepts negative numbers, because their roots are imaginary: the square root of -4 is 2i. It is used when solving quadratic equations that have no real roots, and in formulas for wave propagation and characteristic impedance (Z0 = √(Z/Y)).

Excel computes it in polar form, √r ∠ θ/2, which always gives the principal root (the one with a non-negative real part); the other root is its negative. Because it goes through angles, results that should be exactly 0 can show a residue like 1.22464679914735E-16. Like all IM functions, it reads complex numbers written as text (x+yi or x+yj) and returns its answer as text with up to 15 significant digits, so you can feed the result straight into another IM function.

Examples

1Square root of 1+i

B2fx=IMSQRT(A2)
AB
1Complex
21+i1.09868411346781+0.455089860562227i

Result: 1.09868411346781+0.455089860562227i

|1+i| = √2 and its angle is 45°, so the root has size 2^(1/4) and angle 22.5°.

2Square root of a negative number

B2fx=IMSQRT(A2)
AB
1Value
2-41.22464679914735E-16+2i

Result: 1.22464679914735E-16+2i

The answer is 2i. The real part should be 0 but shows a floating-point residue of about 1.2E-16 because the angle π/2 cannot be represented exactly. =ROUND(IMREAL(B2),10) confirms it is 0.

3Complex roots of a quadratic

D2fx=IMSUM(-B2/(2*A2), IMDIV(IMSQRT(B2^2-4*A2*C2), 2*A2))
ABCD
1abc
2125-1+2i

Result: -1+2i

For x² + 2x + 5 = 0 the discriminant is -16. IMSQRT(-16) is 4i (with a tiny residue in the real part, which disappears when added to -1), giving the root -1+2i; the other root is -1-2i.

⬇Practice workbookExamples with live formulas + practice sheets · .xlsx · 15 KB

Common errors and how to fix them

ErrorWhy it happensFix
#NUM!The text is not a valid complex number — for example it contains spaces (3 + 4i), a capital I, or a misplaced sign.Create the value with COMPLEX or remove spaces with SUBSTITUTE.

Tips

  • Functions that work through angles (polar form) can leave rounding residue such as 1.22464679914735E-16 where the exact answer is 0. Wrap the result in IMREAL/IMAGINARY and ROUND if you need clean numbers.
  • For real non-negative numbers, ordinary SQRT is faster and returns a number instead of text.

Google Sheets

IMSQRT also exists in Google Sheets and works the same way for everyday use, so the examples above work there too.

IMSQRT in other languages

In a non-English version of Excel the function has a local name. Excel translates formulas automatically when a file is opened in another language.

LanguageFunction name
DanishIMAGKVROD
DutchC.WORTEL
FinnishKOMPLEKSI.NELIÖJ
FrenchCOMPLEXE.RACINE
GermanIMWURZEL
HungarianKÉPZ.GYÖK
ItalianCOMP.RADQ
Norwegian (Bokmål)IMROT
PolishPIERWIASTEK.LICZBY.ZESP
Portuguese (Brazil)IMRAIZ
Portuguese (Portugal)IMRAIZ
RussianМНИМ.КОРЕНЬ
SpanishIM.RAIZ2
SwedishIMROT
TurkishSANKAREKÖK