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.
—
Send feedback
💡 Share your idea or report a problem
✓ Thanks! We'll take a look.
Learn more
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.
Common questions
Need something this doesn't cover?
Suggest a tool — we'll build it →