IMSQRT Function

Returns the square root of a complex number.

Category

Engineering

Available in

All versions, Microsoft 365

Returns

Complex number text

Want to practice IMSQRT in a real spreadsheet? Open a blank sheet in our Practice Sandbox and try it with live data, with the AI Excel tutor beside you. No Excel needed — just a free account.Try it free in the Sandbox

Overview

IMSQRT returns the principal square root — the one with a non-negative real part. Unlike SQRT, it happily takes negative numbers: the square root of −4 is 2i.

The result is text, shown to 15 significant digits. Wrap it in IMREAL or IMAGINARY to get a number you can format or round.

Syntax

=IMSQRT(inumber) Explain

Arguments

ArgumentRequired?What it does
inumberYesA complex number as text, like "3+4i" — or a plain number.

Examples

Example 1 — Worked examples

Each row applies the function to the value in column A.

B2fx=IMSQRT(A2)
AB
1ComplexSquare root
23+4i2+i
3164
42i1+i
51+i1.09868411346781+0.455089860562227i
=IMSQRT(A2) Explain

Common mistakes

  • #NUM! The text isn't a valid complex number — for example a space ("3 + 4i"), a capital I, or a letter other than i or j.
  • Square root of a negative number shows 1.22464679914735E-16+2i. That's the exact answer 2i plus floating-point noise in the real part (Excel shows the same). Read the parts with IMREAL/IMAGINARY and ROUND.

Notes

Kyle Stott

Author

Kyle Stott

Certified Microsoft Excel Expert

Kyle has worked professionally with Microsoft Excel for over a decade and has consulted on and taught Excel best practices to over 400 companies across 30+ countries.