Complex Number Calculator

Perform arithmetic operations on complex numbers with magnitude and argument.

Enter two complex numbers in a+bi form. Choose an operation (addition, subtraction, multiplication, division) and see the result with magnitude and argument calculations.

Updated June 2026 · How this works

Worth knowing
How It Works
The formula, explained simply

Complex numbers extend real numbers by including the imaginary unit i, where i² = -1. Every complex number can be written as a+bi, where a is the real part and b is the imaginary coefficient.

This calculator performs the four basic operations on complex numbers using standard algebraic rules. Addition and subtraction work component-wise: add real parts together and imaginary parts together. Multiplication uses the distributive property with the key rule that i² = -1, so terms like bi × di become -bd. Division requires multiplying both numerator and denominator by the complex conjugate of the denominator.

The calculator also computes magnitude (absolute value) and argument (angle) for each result. Magnitude represents the distance from the origin in the complex plane, while argument shows the angle from the positive real axis. These polar coordinates become essential when working with complex exponentials in engineering and physics applications.

Complex arithmetic appears throughout electrical engineering, quantum mechanics, and signal processing. AC circuit analysis uses complex numbers to represent voltage and current phasors, while Fourier transforms rely on complex exponentials to decompose signals into frequency components.

When To Use This
Right tool, right situation

Use complex number calculations when dealing with oscillatory systems, AC electrical circuits, or signal processing applications. In electrical engineering, complex numbers represent AC voltages and currents where the real part is the in-phase component and the imaginary part is the quadrature component.

Quantum mechanics requires complex number arithmetic for wave functions and probability amplitudes. The magnitude squared |ψ|² gives probability density, while the argument represents phase relationships between quantum states. Fourier analysis uses complex exponentials to decompose signals into frequency components.

Control systems engineering uses complex numbers to analyze system stability through pole-zero plots in the complex plane. The location of poles and zeros determines whether a system is stable, oscillatory, or unstable. Root locus techniques plot how poles move as system parameters change.

Computer graphics applications use complex numbers for 2D rotations and transformations. Multiplying by e^(iθ) rotates a point by angle θ around the origin, making complex arithmetic useful for animation and geometric calculations.

Common Mistakes
Why results sometimes look wrong

The most common error is treating i as a variable instead of the imaginary unit where i² = -1. When expanding (2+3i)², many people get 4+12i+9i² and leave it there, forgetting that i² = -1, so the correct answer is 4+12i-9 = -5+12i.

Division mistakes often occur when students try to divide complex numbers like fractions without using the conjugate method. To divide (a+bi)/(c+di), you must multiply both numerator and denominator by the conjugate (c-di), not just the denominator. This eliminates the imaginary part from the denominator.

Argument calculation errors happen when using the wrong arctangent function. The standard arctan only covers -90° to 90°, missing half the complex plane. Always use atan2(imaginary, real) which correctly handles all four quadrants and gives results from -180° to 180°.

Magnitude confusion occurs when students think |a+bi| = |a| + |b|. The magnitude is actually √(a²+b²), not the sum of absolute values. For example, |3+4i| = 5, not 7. This connects to the geometric interpretation: complex numbers represent points in a plane, and magnitude is the distance from origin.

The Math
Worked examples and deeper derivation

Complex number operations follow specific algebraic rules derived from the fundamental property i² = -1.

Addition: (a+bi) + (c+di) = (a+c) + (b+d)i Subtraction: (a+bi) - (c+di) = (a-c) + (b-d)i Multiplication: (a+bi)(c+di) = (ac-bd) + (ad+bc)i Division: (a+bi)/(c+di) = [(ac+bd) + (bc-ad)i] / (c²+d²)

The magnitude formula |z| = √(a²+b²) comes from the Pythagorean theorem, treating the complex number as a point (a,b) in the coordinate plane. The argument θ = atan2(b,a) uses the two-argument arctangent function to handle all four quadrants correctly.

Polar form representation z = r∠θ = r(cos θ + i sin θ) simplifies multiplication and division: multiply magnitudes and add arguments for multiplication, divide magnitudes and subtract arguments for division. Euler's formula e^(iθ) = cos θ + i sin θ connects complex numbers to exponential functions, forming the foundation for complex analysis and many engineering applications.

Engineering calculation
First: 3+4i, Second: 1+2i, Operation: Addition
Adding (3+4i) + (1+2i) gives 4+6i with magnitude 7.211 and argument 56.3°.
Signal processing
First: 5+0i, Second: 0+3i, Operation: Multiplication
Multiplying 5 × 3i gives 15i, a pure imaginary number at 90° on the complex plane.
Circuit analysis
First: 6+8i, Second: 2-i, Operation: Division
Dividing (6+8i) ÷ (2-i) gives 0.8+4.4i with the quotient having lower magnitude than the dividend.

Common questions

How do I multiply complex numbers step by step?
Use the FOIL method: (a+bi)(c+di) = ac + adi + bci + bdi². Since i² = -1, this becomes (ac-bd) + (ad+bc)i. The calculator handles this automatically when you select multiplication.
What is the magnitude and argument of a complex number?
Magnitude is the distance from origin, calculated as √(a²+b²). Argument is the angle from positive real axis, found using atan2(b,a). Together they form the polar representation of complex numbers.
Can I divide by zero in complex number operations?
No, division by 0+0i is undefined, just like real number division by zero. The calculator checks for this and won't display a result when the denominator has zero magnitude.

Need something this doesn't cover?

Suggest a tool — we'll build it →