Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Google Sheets IMSQRT Function: How to Find Complex Square Roots

· 6 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

There is no IMSQRT function in Google Sheets. Google Sheets supports the real-number SQRT function and the complex-number functions IMREAL, IMAGINARY, COMPLEX, IMSUM, IMPRODUCT, IMDIV, IMPOWER and IMSUB, but IMSQRT itself is not one of them. If you type =IMSQRT("3+4i") into a cell, Sheets returns a #NAME? error because it does not recognise the function name. The practical workaround is to calculate the square root of a complex number yourself with IMPOWER and the value 0.5, which gives the same result for any complex input. This guide walks through that method, explains how to read the output, and covers the mistakes that make the formula fail.

What You'll Need

  • A Google account with access to Google Sheets, either in a browser or the mobile app.
  • A spreadsheet where you want to calculate square roots of complex numbers.
  • Your complex numbers written in a format Sheets accepts, such as 3+4i, -2-5i or plain real numbers like 9.
  • A basic understanding that a complex number has a real part and an imaginary part, written as a+bi.

Step-by-Step

  1. Open your spreadsheet. Go to Google Sheets in your browser, or open the Sheets app on your phone. Menu and button labels can differ slightly by version, device and region, but the formula behaviour is the same.
  2. Enter the complex number in a cell. Put the value in its own cell so the formula can reference it. For example, type 3+4i into cell A1. Sheets treats the lowercase i as the imaginary unit; do not put a space between the number and the i, and do not use a multiplication sign.
  3. Write the square root formula using IMPOWER. In an empty cell, type =IMPOWER(A1,0.5) and press Enter. IMPOWER raises a complex number to a power, and a power of 0.5 is the square root. The cell should now show 2+1i or a close equivalent.
  4. Check the result by squaring it. To confirm the answer, put =IMPOWER(B1,2) (or =IMPRODUCT(B1,B1)) in another cell, where B1 holds the square root. You should get back the original number, give or take tiny rounding differences.
  5. Fill the formula down a column. If you have a list of complex numbers in A1 through A10, click the small square at the bottom-right corner of the formula cell and drag it down, or copy the formula and paste it into the remaining cells. Relative references will adjust automatically.
  6. Format the output if needed. Complex results appear as text like 2+1i, not as a number you can plot or sum directly. If you need the two parts separately, use =IMREAL(B1) for the real part and =IMAGINARY(B1) for the coefficient of the imaginary part.
  7. Handle negative real numbers carefully. The square root of a negative real number is imaginary. If A1 contains -9, the formula =IMPOWER(A1,0.5) returns 0+3i, which is correct because 3i squared is -9. You do not need a separate formula for negative inputs.
  8. Use COMPLEX when building values from parts. If your real and imaginary parts are in separate cells, combine them first with =COMPLEX(C1,D1), where C1 is the real part and D1 is the imaginary part, then apply IMPOWER to that result. This avoids typing complex strings by hand and reduces syntax errors.

Common Mistakes

  • Typing IMSQRT. The most common failure is assuming the function exists because other spreadsheet programs offer it. Google Sheets does not, and the result is #NAME?. Use IMPOWER with 0.5 instead.
  • Using an uppercase I. Sheets expects the imaginary unit as a lowercase i or j inside quoted complex strings. 3+4I may be rejected or misread, so keep it lowercase.
  • Leaving out the exponent. Writing just =IMPOWER(A1) returns an error because the power argument is required.
  • Trying to use the result as a number. IMPOWER returns a text string for complex results. AVERAGE, SUM and chart series will not accept it directly unless the value is purely real, so extract parts with IMREAL and IMAGINARY first.
  • Expecting the principal root only. A complex number has two square roots that are negatives of each other. IMPOWER returns the principal one. If you need the other, negate the result with =IMPRODUCT(B1,-1).
  • Copying formatted text from elsewhere. Pasting values that contain spaces, currency symbols or non-ASCII characters breaks the complex number format. Retype them cleanly.

Tips

  • Combine IMPOWER with ARRAYFORMULA to process a whole column at once, for example =ARRAYFORMULA(IMPOWER(A1:A10,0.5)).
  • Round the extracted real and imaginary parts with ROUND so long decimals do not clutter your sheet: =ROUND(IMREAL(B1),4).
  • Use IMPOWER for other roots too. A cube root of a complex number is =IMPOWER(A1,1/3), and a fourth root is =IMPOWER(A1,0.25).
  • Name your input range and reference the name in the formula to keep the sheet readable when you build larger calculations.
  • Keep a small check column that squares the answer, so you can spot a broken input immediately when a result does not match the original number.
  • Remember that complex arithmetic is mainly useful for electrical engineering, signal processing and certain maths exercises; for ordinary positive numbers, SQRT remains the simplest option.

Troubleshooting

If that did not work, work through the following checks in order.

  1. Confirm the error type. A #NAME? error means the function name is wrong, which points to IMSQRT or a typo. A #VALUE! error usually means the input is not a valid complex number.
  2. Click the input cell and check it contains only the number and the lowercase i, with no extra spaces or text.
  3. Test with a simple value first, such as 3+4i, to prove the formula itself is correct before applying it to your data.
  4. Check the range reference. If you copy the formula to another sheet without adjusting the reference, it may point at an empty cell.
  5. Use COMPLEX to rebuild the value from separate parts, which catches hidden characters in hand-typed strings.
  6. If a result looks right but fails in later calculations, use IMREAL and IMAGINARY to convert it into ordinary numbers before summing, averaging or charting.
  7. If the sheet misbehaves overall, reload the page or reopen the app and try again; a stale session can cause formula recalculations to lag.

Frequently Asked Questions

Does Google Sheets have an IMSQRT function?

No. Google Sheets does not include IMSQRT. Use =IMPOWER(value,0.5) instead, which returns the principal square root of a complex number.

What is the difference between SQRT and IMPOWER with 0.5?

SQRT only accepts non-negative real numbers and returns an error for negative or complex inputs. IMPOWER with 0.5 accepts complex strings and returns a complex result, so it covers the same ground and more.

How do I get both square roots of a complex number?

Calculate the principal root with IMPOWER, then multiply it by -1 using =IMPRODUCT(result,-1). The two answers are negatives of each other.

Why does my result show a #VALUE! error?

That usually means the input is not in a valid complex format. Sheets expects something like 3+4i, with a lowercase i, no spaces and no extra characters.

Can I square root a whole column at once?

Yes. Wrap the formula in ARRAYFORMULA, for example =ARRAYFORMULA(IMPOWER(A1:A10,0.5)), and the function will fill each row of the range.

Can I use the complex result in charts?

Not directly, because it is text. Extract the real part with IMREAL and the imaginary part with IMAGINARY, place them in separate columns and chart those.