dash–calculator

04 Numbers and Counting

Square Root of a Complex Number: Formula & Examples

Readout 04-0303 · Updated · Standard formula, shown below

The calculator on this page is switched off while it is checked. The formula is below, and the worked example shows how to do the sum by hand.

This calculator finds the square root of a complex number a + bi. You enter the real part a and the imaginary part b, and it returns the two square roots in standard rectangular form (x + yi) with a step-by-step explanation. The formula uses the modulus and the sign of the imaginary part to correctly place the roots in the complex plane.

Formula

For a complex number z = a + bi, its square roots are given by:

First root: x₁ + y₁i = √((|z| + a)/2) + sign(b) · √((|z| − a)/2) · i

Second root: x₂ + y₂i = −x₁ − y₁i

Where:

  • a = real part of the input (unitless)
  • b = imaginary part of the input (unitless)
  • |z| = √(a² + b²), the modulus (magnitude) of the complex number
  • sign(b) = +1 if b ≥ 0, −1 if b < 0

Both roots are returned in rectangular form (x + yi). The two roots are always negatives of each other, which is a fundamental property of square roots in the complex number system.

Worked Example

Using the default values a = 3 and b = 4 (the complex number 3 + 4i):

  1. Compute the modulus: |z| = √(3² + 4²) = √(9 + 16) = √25 = 5
  2. Real part of the first root: x₁ = √((5 + 3)/2) = √(8/2) = √4 = 2
  3. Imaginary part of the first root: y₁ = sign(4) · √((5 − 3)/2) = 1 · √(2/2) = √1 = 1
  4. First root: 2 + 1i
  5. Second root: −2 − 1i

Check: (2 + i)² = 4 + 4i + i² = 4 + 4i − 1 = 3 + 4i. The calculator outputs 2 + 1i and −2 − 1i, matching the manual calculation.

Why the Formula Works

Every complex number has exactly two square roots, except zero, which has one. The formula comes from converting the number to polar form. In polar form, a complex number is written as r(cos θ + i sin θ), where r is the modulus and θ is the argument (angle). The square root is then √r · (cos(θ/2) + i sin(θ/2)). The rectangular formula above is the algebraic equivalent, avoiding the need to compute the angle explicitly. The sign function ensures the correct angle half is chosen, because the arctangent alone only gives angles in a limited range.

How to Choose the Correct Root

When a problem asks for “the square root” of a complex number, it often expects the principal root. The principal square root is the one with a positive real part, or if the real part is zero, the one with a positive imaginary part. In the calculator, the first output (x₁ + y₁i) is the principal root. For example, for 3 + 4i, the principal root is 2 + 1i. The second root is its negative. In equations like z² = w, you must include both roots to get all solutions.

Common Mistakes and Pitfalls

  • Forgetting the sign of b: If b is negative, the imaginary part of the principal root must be negative. Using +√((|z|−a)/2) without the sign gives the wrong root. For example, for 3 − 4i, the principal root is 2 − 1i, not 2 + 1i.
  • Assuming the real part is always positive: For numbers with a negative real part (like −3 + 4i), the principal root has a small positive real part, but the expression √((|z|+a)/2) can be less than the imaginary part. Always compute both parts.
  • Mixing up the two roots: The two roots are always negatives of each other. If you get a result and its negative, you have both.
  • Rounding too early: When doing manual calculations, keep full precision until the final step to avoid errors. The calculator rounds to 4 decimal places for display, but uses full precision internally.

Applications and Context

Square roots of complex numbers appear in many fields. In electrical engineering, they are used to analyze AC circuits with impedance, where voltages and currents are represented as complex phasors. In control theory, they appear in the roots of characteristic equations. In quantum mechanics, complex square roots arise in wave functions. In mathematics, they are essential for solving quadratic equations with negative discriminants. For example, the equation z² = −1 has roots i and −i, which are the square roots of −1. The formula works for any complex number, including purely imaginary ones (a = 0) and negative real numbers (b = 0).

Limitations of the Formula

The formula as written uses the principal square root of real numbers, which is defined as the non-negative root. This is fine because the expressions inside the square roots are always non-negative. The modulus |z| is always greater than or equal to |a|, so (|z|+a)/2 ≥ 0 and (|z|−a)/2 ≥ 0. For the special case z = 0, the formula gives x₁ = 0 and y₁ = 0, which is the single root. The formula assumes the standard rectangular form; if you need the root in polar form, you can convert the result. The calculator works for any real a and b, but for very large magnitudes (beyond about 10^308), floating-point overflow may occur; in practice, such values are rare.

Frequently Asked Questions

What is the square root of i? The square root of i (which is 0 + 1i) is (√2/2) + (√2/2)i ≈ 0.7071 + 0.7071i. The other root is −0.7071 − 0.7071i. You can verify by squaring: (0.7071 + 0.7071i)² = 0.5 + 1i + 0.5i² = 0.5 + 1i − 0.5 = 1i.

How do you find the square root of a negative real number? For a negative real number like −4 (a = −4, b = 0), the modulus is 4, so x₁ = √((4 + (−4))/2) = 0, and y₁ = sign(0)·√((4 − (−4))/2) = 1·√4 = 2. The principal root is 2i, and the other is −2i. In general, √(−r) = i√r for r > 0.

Why are there two square roots for a complex number? In the complex number system, the fundamental theorem of algebra says a polynomial of degree n has n roots. The equation z² = w is a degree-2 polynomial, so it has two solutions (counting multiplicity). For w ≠ 0, they are always distinct and are negatives of each other. This is analogous to real numbers: 4 has roots 2 and −2.

Can a complex number have more than two square roots? No. The equation z² = w has exactly two solutions for any nonzero w. This is a unique property of the square root; higher-order roots (cube roots, fourth roots) have more roots (three, four, etc.), but square roots always come in pairs.

What is the principal square root of a complex number? The principal square root is the one with a positive real part, or if the real part is zero, the one with a positive imaginary part. This is the standard convention used in most calculators and programming languages. For example, the principal root of 3 + 4i is 2 + 1i, not −2 − 1i.

How do I use this in polar form? If you have the number in polar form as r(cos θ + i sin θ), the square roots are √r(cos(θ/2) + i sin(θ/2)) and √r(cos(θ/2 + π) + i sin(θ/2 + π)). The rectangular formula is often more convenient because it avoids angle calculations.

Related

Formula used
in a | Real part a | - | 3 | -100000 | 100000
in b | Imaginary part b | - | 4 | -100000 | 100000
out x1 | First root (real part) | - | sqrt((sqrt(a^2 + b^2) + a) / 2) | 4
out y1 | First root (imaginary part) | - | (b >= 0 ? 1 : -1) * sqrt((sqrt(a^2 + b^2) - a) / 2) | 4
out x2 | Second root (real part) | - | -1 * sqrt((sqrt(a^2 + b^2) + a) / 2) | 4
out y2 | Second root (imaginary part) | - | -1 * (b >= 0 ? 1 : -1) * sqrt((sqrt(a^2 + b^2) - a) / 2) | 4

Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.

More on this panel

The whole Numbers and Counting panel →