Ekuation

Math

Complex Number Calculator

A visual complex number calculator that computes all standard operations on complex numbers in rectangular (a + bi) and polar (r∠θ) form. Enter one or two complex numbers, select an operation, and see the result instantly. Operations include addition, subtraction, multiplication, division, modulus, argument, conjugate, integer powers via De Moivre's theorem, and nth roots (all n distinct values). Supports engineering-friendly features and step-by-step polar form display.

Real component a in z₁ = a + bi

Imaginary component b in z₁ = a + bi

Real component c in z₂ = c + di

Imaginary component d in z₂ = c + di

Try an Example

Pick a scenario to see how the calculator works, then adjust the values

Signal Addition

Add two phasor signals in complex form to find the resultant.

Key values: z₁ = 3 + 4i · z₂ = 1 − 2i · Addition

Circuit Impedance

Divide two impedances to compute the transfer ratio.

Key values: z₁ = 3 + 4i · z₂ = 1 + 2i · Division

De Moivre Power

Raise a complex number to the 10th power using De Moivre's theorem.

Key values: z₁ = 1 + i · n = 10 · Power

Cube Roots of −8

Find all three cube roots of −8, visualized as equidistant points on a circle.

Key values: z₁ = −8 + 0i · n = 3 · nth Root

Documentation

About This Calculator

Complex numbers extend the real number line into a two-dimensional plane, allowing every polynomial equation to have roots. A complex number has the form z=a+biz = a + bi where aa is the real part, bb is the imaginary part, and ii satisfies i2=1i^2 = -1.

This calculator supports nine operations: addition, subtraction, multiplication, division, modulus, argument, conjugate, integer powers (De Moivre's theorem), and nth roots. Results are displayed in both rectangular (a+bi)(a + bi) and polar (rθ)(r\angle\theta) form.


How to Use

  1. Select an operation from the radio cards: Add, Subtract, Multiply, Divide, Modulus, Argument, Conjugate, Power, or nth Root.
  2. Enter z₁ by filling in the real part (a) and imaginary part (b).
  3. Enter z₂ (for binary operations only) by filling in c and d.
  4. For Power, enter the integer exponent n. For nth Root, enter the root degree n (must be at least 2).
  5. Click Calculate to see the result in rectangular and polar form, along with the modulus and argument.

Formulas

Representations

A complex number can be expressed in rectangular, polar, or exponential form:

z=a+bi=r(cosθ+isinθ)=reiθz = a + bi = r(\cos\theta + i\sin\theta) = re^{i\theta}

where r=z=a2+b2r = |z| = \sqrt{a^2 + b^2} and θ=arg(z)=atan2(b,a)\theta = \arg(z) = \operatorname{atan2}(b, a).

Addition and Subtraction

z1±z2=(a±c)+(b±d)iz_1 \pm z_2 = (a \pm c) + (b \pm d)i

Multiplication

z1z2=(acbd)+(ad+bc)iz_1 \cdot z_2 = (ac - bd) + (ad + bc)i

In polar form: multiply moduli and add arguments.

z1z2=r1r2cis(θ1+θ2)z_1 \cdot z_2 = r_1 r_2 \cdot \operatorname{cis}(\theta_1 + \theta_2)

Division

z1z2=(ac+bd)+(bcad)ic2+d2\frac{z_1}{z_2} = \frac{(ac + bd) + (bc - ad)i}{c^2 + d^2}

In polar form: divide moduli and subtract arguments.

z1z2=r1r2cis(θ1θ2)\frac{z_1}{z_2} = \frac{r_1}{r_2} \cdot \operatorname{cis}(\theta_1 - \theta_2)

Modulus

z=a2+b2|z| = \sqrt{a^2 + b^2}

Argument

arg(z)=atan2(b,a)(π,π]\arg(z) = \operatorname{atan2}(b, a) \in (-\pi, \pi]

Important: Use atan2(b,a)\operatorname{atan2}(b, a), not arctan(b/a)\arctan(b/a), because atan2\operatorname{atan2} correctly identifies all four quadrants.

Conjugate

zˉ=abi\bar{z} = a - bi

Key identity: zzˉ=z2=a2+b2z \cdot \bar{z} = |z|^2 = a^2 + b^2.

Powers (De Moivre's Theorem)

zn=rn(cos(nθ)+isin(nθ))z^n = r^n(\cos(n\theta) + i\sin(n\theta))

Valid for all integers n (positive, negative, and zero). For the polar form advantage, trigonometric identity derivation, and applications, see the De Moivre Calculator guide.

nth Roots

zk=r1/n[cos ⁣(θ+2πkn)+isin ⁣(θ+2πkn)]z_k = r^{1/n}\left[\cos\!\left(\frac{\theta + 2\pi k}{n}\right) + i\sin\!\left(\frac{\theta + 2\pi k}{n}\right)\right]

for k=0,1,,n1k = 0, 1, \ldots, n-1. This produces exactly nn distinct roots, equally spaced around a circle of radius r1/nr^{1/n}. For the geometric arrangement, roots of unity, and worked examples, see the nth Root Calculator guide.


Worked Examples

Example 1: Adding Phasor Signals

Two signals have phasor representations V1=3+4iV_1 = 3 + 4i and V2=12iV_2 = 1 - 2i. Find the resultant phasor.

V1+V2=(3+1)+(42)i=4+2iV_1 + V_2 = (3+1) + (4-2)i = 4 + 2i

Modulus: 4+2i=16+4=204.47|4+2i| = \sqrt{16+4} = \sqrt{20} \approx 4.47. Argument: θ26.57°\theta \approx 26.57°.

Example 2: Dividing Complex Numbers

Compute (3+4i)÷(1+2i)(3+4i) \div (1+2i).

3+4i1+2i=(31+42)+(4132)i12+22=112i5=2.20.4i\frac{3+4i}{1+2i} = \frac{(3\cdot1+4\cdot2)+(4\cdot1-3\cdot2)i}{1^2+2^2} = \frac{11-2i}{5} = 2.2 - 0.4i

Example 3: Power via De Moivre

Compute (1+i)10(1+i)^{10}.

In polar form: r=2r = \sqrt{2}, θ=π/4\theta = \pi/4.

(1+i)10=(2)10cis(10π/4)=32cis(5π/2)(1+i)^{10} = (\sqrt{2})^{10} \cdot \operatorname{cis}(10 \cdot \pi/4) = 32 \cdot \operatorname{cis}(5\pi/2)

Since 5π/2=π/2+2π5\pi/2 = \pi/2 + 2\pi, the result is 32(cos(π/2)+isin(π/2))=32i32(\cos(\pi/2) + i\sin(\pi/2)) = 32i.

Example 4: Cube Roots of −8

Find all cube roots of 8-8.

Polar form: r=8r = 8, θ=π\theta = \pi. Cube root of modulus: r1/3=2r^{1/3} = 2.

z0=2cis(π/3)=1+3i1+1.732iz_0 = 2\operatorname{cis}(\pi/3) = 1 + \sqrt{3}\,i \approx 1 + 1.732i
z1=2cis(π)=2z_1 = 2\operatorname{cis}(\pi) = -2
z2=2cis(5π/3)=13i11.732iz_2 = 2\operatorname{cis}(5\pi/3) = 1 - \sqrt{3}\,i \approx 1 - 1.732i

These three roots are equally spaced at 120° intervals on a circle of radius 2.

Example 5: AC Circuit Impedance

An RLC series circuit has impedance Z=100+40jΩZ = 100 + 40j\,\Omega. Find the magnitude and phase angle.

Z=1002+402=11600107.7Ω|Z| = \sqrt{100^2 + 40^2} = \sqrt{11600} \approx 107.7\,\Omega
θ=arctan(40/100)21.8°\theta = \arctan(40/100) \approx 21.8°

The impedance magnitude is approximately 107.7 Ω with a phase angle of 21.8°.


Tips and Common Mistakes

  • Use atan2, not atan: atan2(b,a)\operatorname{atan2}(b, a) correctly identifies the quadrant for the argument. Plain arctan(b/a)\arctan(b/a) is ambiguous for quadrants II and III.
  • Radians vs. degrees: The argument is computed in radians by default. Multiply by 180/π180/\pi to convert to degrees.
  • Division requires the conjugate: When dividing, multiply both numerator and denominator by the conjugate of the denominator to rationalize it.
  • All n roots exist: When computing nth roots, there are always exactly nn distinct values. Do not stop at the principal root.
  • arg(0) is undefined: The argument of 0+0i0 + 0i has no defined value because there is no direction from the origin to itself.
  • Precision matters: Floating-point arithmetic can introduce small rounding errors. Results like 1.23×10161.23 \times 10^{-16} are effectively zero.
  • Engineering convention: Electrical engineers use jj instead of ii because ii represents electric current.

Glossary

Complex Number
A number of the form a+bia + bi with real part aa and imaginary part bb.
Real Part
The component aa in z=a+biz = a + bi. Denoted Re(z)\operatorname{Re}(z).
Imaginary Part
The component bb in z=a+biz = a + bi. Denoted Im(z)\operatorname{Im}(z).
Modulus (Absolute Value)
The distance from the origin: z=a2+b2|z| = \sqrt{a^2 + b^2}. Always non-negative.
Argument (Phase Angle)
The angle θ=atan2(b,a)\theta = \operatorname{atan2}(b, a) from the positive real axis to the point zz.
Polar Form
Expressing zz as r(cosθ+isinθ)r(\cos\theta + i\sin\theta) or rθr\angle\theta.
Rectangular (Cartesian) Form
Expressing zz as a+bia + bi.
Argand Diagram
A graphical representation of complex numbers on a 2D plane with real and imaginary axes.
De Moivre's Theorem
The formula zn=rncis(nθ)z^n = r^n \operatorname{cis}(n\theta) for integer powers of complex numbers.
nth Root
One of nn distinct values ww satisfying wn=zw^n = z.
Conjugate
The number zˉ=abi\bar{z} = a - bi, obtained by flipping the sign of the imaginary part.

Frequently Asked Questions

What is a complex number?

A complex number has the form z=a+biz = a + bi, where aa and bb are real numbers and i2=1i^2 = -1. Complex numbers extend the real number system and are essential in engineering, physics, and mathematics.

Why do engineers use j instead of i?

In electrical engineering, ii already represents electric current. To avoid confusion, engineers use jj for the imaginary unit. Mathematically, j=ij = i — they are the same concept.

What is the difference between modulus and argument?

The modulus z|z| is the distance from the origin (how far from zero). The argument arg(z)\arg(z) is the angle from the positive real axis (which direction from the origin). Together they define the polar form.

Why does the nth root of a complex number have n values?

The Fundamental Theorem of Algebra guarantees that the equation wn=zw^n = z has exactly nn solutions in the complex numbers. These roots are equally spaced around a circle on the Argand diagram, separated by angles of 2π/n2\pi/n.

What is Euler's formula?

Euler's formula states eiθ=cosθ+isinθe^{i\theta} = \cos\theta + i\sin\theta. The special case θ=π\theta = \pi gives Euler's identity: eiπ+1=0e^{i\pi} + 1 = 0, connecting five fundamental constants.

Can I compute negative powers?

Yes. For any nonzero zz, zn=1/znz^{-n} = 1/z^n. De Moivre's theorem handles negative exponents naturally: zn=rncis(nθ)z^{-n} = r^{-n} \operatorname{cis}(-n\theta). The only restriction is 0n0^{-n}, which is undefined.


References

  1. NIST Digital Library of Mathematical Functions: Complex Variables — National Institute of Standards and Technology (2024)
  2. NIST DLMF: Euler's Formula and Exponential Function — National Institute of Standards and Technology (2024)
  3. Mathematics LibreTexts: The Polar Form of Complex Numbers — LibreTexts Mathematics (2023)
  4. Mathematics LibreTexts: De Moivre's Theorem and Powers of Complex Numbers — LibreTexts Mathematics (2023)
  5. Wikipedia: Euler's Formula — Wikipedia / Community peer review (2024)
  6. Wikipedia: De Moivre's Formula — Wikipedia / Community peer review (2024)
  7. Wikipedia: Complex Number — Wikipedia / Community peer review (2024)
  8. Wikipedia: Fundamental Theorem of Algebra — Wikipedia / Community peer review (2024)

Disclaimer

This calculator is provided for educational and reference purposes. While we strive for accuracy, floating-point arithmetic inherently introduces small rounding errors. Results should not be used as the sole basis for engineering decisions in safety-critical applications. Always verify critical calculations independently.

The formulas implemented follow standard complex analysis conventions as documented by NIST, Wolfram MathWorld, and standard university-level textbooks. The principal argument convention used is (π,π](-\pi, \pi].

Specialized Calculators

Choose from 11 specialized versions of this calculator, each optimized for specific use cases and calculation methods.

Operation

11 Calculators
add
Complex Number Addition Calculator | Add Complex Numbers Online
Add two complex numbers with step-by-step results in rectangular and polar form.
additionbinaryvector-sum
Try This Calculator
subtract
Complex Number Subtraction Calculator | Subtract Complex Numbers
Subtract two complex numbers with results in rectangular and polar form.
subtractionbinary
Try This Calculator
multiply
Complex Number Multiplication Calculator | Multiply Complex Numbers
Multiply complex numbers using FOIL or polar form. See the rotation and scaling on the complex plane.
multiplicationrotationscaling
Try This Calculator
divide
Complex Division Calculator | Divide Complex Numbers Step-by-Step
Divide complex numbers by multiplying by the conjugate. See the step-by-step rationalization.
divisionconjugaterationalize
Try This Calculator
modulus
Complex Number Modulus Calculator | Absolute Value of Complex Number
Calculate the modulus (absolute value) |z| of any complex number.
modulusabsolute-valuemagnitude
Try This Calculator
argument
Complex Number Argument Calculator | Phase Angle Calculator
Calculate the principal argument (phase angle) of any complex number using atan2.
argumentphaseangle+1
Try This Calculator
conjugate
Complex Conjugate Calculator | Find the Conjugate of a Complex Number
Compute the complex conjugate and see the reflection on the Argand diagram.
conjugatereflection
Try This Calculator
power
De Moivre's Theorem Calculator | Complex Number Powers
Compute z^n for any integer n using De Moivre's theorem with polar form.
powerde-moivreexponent
Try This Calculator
nthRoot
nth Root of Complex Number Calculator | Find All Roots
Find all n distinct nth roots of a complex number, displayed as equally-spaced points on a circle.
nth-rootroots-of-unityroot-circle
Try This Calculator
modulus
Complex Number Converter | Rectangular to Polar Form
Convert complex numbers between rectangular (a+bi) and polar (r\u2220\u03b8) form with step-by-step work.
converterrectangular-to-polarpolar-to-rectangular
Try This Calculator
add
Phasor Calculator | AC Circuit Impedance Calculator
Perform phasor arithmetic for AC circuit analysis. Add, subtract, multiply, and divide impedances.
phasorimpedanceengineering+1
Try This Calculator

Related Calculators

6 Calculators

More Math calculators

Calculator Search

Search and find calculators