Complex Number Calculator
The comprehensive complex number calculator for arithmetic operations (z₁ ± z₂, z₁ × z₂, z₁ / z₂), conjugate division, modulus |z| = √(a² + b²), argument phase, polar/exponential conversions, and De Moivre powers with live 2D Argand plane visualization.
Complex Number 1 (z₁)
a + biComplex Number 2 (z₂)
c + diArgand Plane (Complex Coordinate Plot)
Re × ImHow to Calculate and Simplify Complex Numbers
A complex number is an algebraic quantity of the form z = a + bi, where a is the real component, b is the imaginary component, and i is the imaginary unit satisfying i² = −1. Complex numbers can be computed in standard rectangular form, converted to polar form r(cos θ + i sin θ), or expressed in Euler exponential form r · e^(iθ).
Anatomy of Complex Numbers & The Argand Plane
The real number line cannot represent square roots of negative numbers, such as √(−1). To resolve this limitation and complete the algebraic closure of numbers (the Fundamental Theorem of Algebra), mathematics defines the imaginary unit i such that:
A complex number z combines a real component and an imaginary component into a two-dimensional mathematical entity: z = a + bi.
The horizontal displacement along the real x-axis.
The vertical displacement along the imaginary y-axis (scaled by i).
The Euclidean distance or length of the vector from the origin.
Reflection across the real axis; crucial for complex division.
Algebraic Operations: Add, Subtract, Multiply & Divide
Addition & Subtraction
Add or subtract real and imaginary components independently (component-wise vector addition):
Multiplication
Expand algebraically with the FOIL method and substitute i² = −1:
Division (Conjugate Multiplication)
Multiply numerator and denominator by the conjugate of the divisor (c − di) to convert the denominator into a pure real number:
Complex Representation Systems Comparison
Depending on the mathematical or engineering task, complex numbers can be expressed in rectangular, polar, exponential, or phasor notation:
| System | Mathematical Form | Key Parameters | Ideal Application | Computation Advantage |
|---|---|---|---|---|
| Cartesian (Rectangular) | z = a + bi | a = Re(z), b = Im(z) | Addition & Subtraction | Linear arithmetic, no trig functions |
| Polar (Trigonometric) | r(cos θ + i sin θ) | r = |z|, θ = Arg(z) | Geometric rotations & vectors | Explicit sinusoidal decomposition |
| Euler Exponential | z = r • eiθ | r = magnitude, θ = radians | Multiplication, Powers, Calculus | Exponents add: z₁z₂ = r₁r₂ ei(θ₁+θ₂) |
| Phasor (Engineering) | r ∠ θ | RMS amplitude, Phase angle | AC Electrical circuit impedance | Compact frequency-domain analysis |
Modulus, Argument & Polar Conversion (Euler's Formula)
Through Euler's Formula (eiθ = cos θ + i sin θ), any complex number can be translated between rectangular coordinates (a, b) and polar coordinates (r, θ):
Always a positive real number representing Euclidean vector length.
Principal argument θ ∈ (−π, π] radians.
The most compact notation for multiplication, division, and powers.
Powers & Roots with De Moivre's Theorem
Multiplying a complex number by itself n times in rectangular form requires tedious binomial expansions. In polar form, De Moivre's Theorem makes calculating powers instantaneous:
Similarly, the n distinct nth roots of z are uniformly distributed around a circle of radius r1/n at angles (θ + 2kπ) / n for k = 0, 1, ..., n − 1.
Step-by-Step Worked Examples
Calculate (3 + 4i) × (1 − 2i).
1. FOIL Expansion: 3(1) + 3(−2i) + 4i(1) + 4i(−2i) = 3 − 6i + 4i − 8i².
2. Substitute i² = −1: 3 − 2i − 8(−1) = 3 − 2i + 8.
3. Combine like terms: (3 + 8) − 2i = 11 − 2i.
Result: 11 − 2i (Modulus = √(121 + 4) = √125 ≈ 11.1803).
Calculate (5 − 2i) / (2 + 3i).
1. Identify denominator conjugate: Denominator is (2 + 3i), so its conjugate is (2 − 3i).
2. Multiply numerator and denominator by (2 − 3i):
Top: (5 − 2i)(2 − 3i) = 10 − 15i − 4i + 6i² = 10 − 19i − 6 = 4 − 19i.
Bottom: (2 + 3i)(2 − 3i) = 2² + 3² = 4 + 9 = 13.
Result: (4/13) − (19/13)i ≈ 0.3077 − 1.4615i.
Common Calculation Pitfalls & Conjugate Errors
Remember that i² = −1. When multiplying (+bi)(−di) = −bdi² = −bd(−1) = +bd. A double-negative sign error here invalidates the entire real part.
When calculating the angle θ for numbers in Quadrants II or III (a < 0), simple arctan(b/a) gives the wrong angle. Always use the 4-quadrant atan2(b, a) function.
Engineering, Quantum & Real-World Applications
AC Circuit Impedance
Electrical engineering uses phasor notation Z = R + jX where resistance is real and reactance (capacitive/inductive) is imaginary.
Quantum State Vectors
Quantum mechanics represents state wavefunctions as complex probability amplitudes on the Bloch sphere with interference phases.
Fourier Transforms & DSP
Digital Signal Processing decomposes audio, radar, and medical imaging into frequency spectra using complex exponentials.
Lead Developer & Founder of Basic Math Tools. Specializes in browser-native computational algorithms and applied mathematics.
Mathematics & curriculum specialists. Audited against standard algebraic and arithmetic principles.