Introduction
Priya, an electrical engineering student in Chicago, is stuck on a lab report at 11 p.m. She needs to find the total impedance of two AC circuit branches wired in series. The first branch has an impedance of 3 + 2i ohms. The second has 1 - 4i ohms. To combine them she has to add two complex numbers, then convert the result to polar form so she can read off the magnitude and phase angle. She tries it by hand, second-guesses the sign of the imaginary part, and starts over twice. A simple arithmetic slip turns a ten-minute task into an hour of frustration.
Complex numbers extend the real number line by adding an imaginary axis. Every complex number has the form a + bi, where a is the real part, b is the imaginary part, and i is the imaginary unit defined by i squared = -1. They let you solve equations that have no real solution, such as x squared + 1 = 0, and they give a compact way to represent quantities that have both a size and a direction, like an AC voltage with a phase shift. This calculator handles the arithmetic and the conversions so you can focus on the engineering or physics behind the numbers.
What This Calculator Does and Why It Matters
The tool works in two modes. In Two Numbers mode you enter two complex numbers and pick an operation: add, subtract, multiply, or divide. The calculator returns the result in rectangular form (a + bi) and in polar form, both as r times e raised to i times theta and as r times the quantity cosine theta plus i times sine theta. Each step of the working is shown so you can verify it by hand. In Single Number mode you enter one complex number and the tool reports its modulus, argument in radians and degrees, conjugate, reciprocal, square, and square root.
These operations show up across math and engineering. When a quadratic equation has a negative discriminant, its two roots are complex conjugates, which is why this tool pairs well with our Quadratic Equation Calculator. Complex entries also appear in linear algebra, so the Matrix Calculator is a natural companion when you scale up to systems with complex coefficients.
How the Calculation Works
Addition
(a + bi) + (c + di) = (a + c) + (b + d)i
Add the real parts together and the imaginary parts together. The two components stay independent, which is what makes complex addition so straightforward.
Subtraction
(a + bi) - (c + di) = (a - c) + (b - d)i
Subtract the real parts and the imaginary parts separately. Watch the signs, since the second number may have a negative imaginary part that turns a subtraction into an addition.
Multiplication
(a + bi)(c + di) = (ac - bd) + (ad + bc)i
Use the FOIL method, then replace i squared with -1. The cross terms ad and bc carry the factor i, while the product of the two imaginary parts produces a real term because i squared equals -1. That single substitution is where most hand-calculation errors happen.
Division
(a + bi) / (c + di) = [(a + bi)(c - di)] / (c squared + d squared)
Multiply the numerator and the denominator by the conjugate of the denominator. The denominator becomes a real number, c squared + d squared, which you then divide into both the real and imaginary parts of the numerator. If c and d are both zero, the denominator is zero and division is undefined.
Modulus
|z| = sqrt(a squared + b squared)
The modulus is the distance from the origin to the point (a, b) in the complex plane. It is always zero or positive.
Argument
theta = atan2(b, a)
The argument is the angle from the positive real axis to the line connecting the origin to (a, b). The atan2 function places the angle in the correct quadrant, which a plain arctangent cannot do on its own. The calculator shows the angle in both radians and degrees.
Polar Form
z = r(cos(theta) + i*sin(theta)) = r * e^(i*theta)
Here r is the modulus and theta is the argument. The exponential version comes from Euler's formula, which links the trigonometric and exponential representations of a complex number. Polar form makes multiplication, division, and finding powers far simpler than rectangular form does.
How to Use the Calculator
- Pick a mode at the top: Two Numbers for arithmetic, or Single Number for properties of one value.
- Enter the real part (a) and the imaginary part (b) of your first complex number. The tool shows z1 in a + bi form as you type.
- In Two Numbers mode, also enter the real part (c) and imaginary part (d) of the second number.
- In Two Numbers mode, choose an operation: add, subtract, multiply, or divide.
- Read the result in rectangular and polar form on the right, along with the step-by-step working.
- In Single Number mode, review the modulus, argument, conjugate, reciprocal, square, and square root cards.
- Use the Copy Result button to paste the answer into your notes or report.
Example Calculations
Example 1: Priya's AC Impedance
Priya adds the two branch impedances, 3 + 2i and 1 - 4i. Real parts: 3 + 1 = 4. Imaginary parts: 2 + (-4) = -2. The total impedance is 4 - 2i ohms. To get the magnitude she finds the modulus: sqrt(4 squared + (-2) squared) = sqrt(16 + 4) = sqrt(20) = 4.47 ohms. The phase angle is atan2(-2, 4) = -0.464 radians, or about -26.6 degrees. Her series circuit presents 4.47 ohms of magnitude with a -26.6 degree phase shift, which tells her the current will lead the voltage.
Example 2: Multiplying Two Complex Numbers
Marcus, a physics student in Austin, multiplies 2 + 3i by 1 - 2i for a wave function problem. Using FOIL: 2 times 1 = 2, 2 times -2i = -4i, 3i times 1 = 3i, and 3i times -2i = -6i squared. Since i squared = -1, that last term becomes +6. Real part: 2 + 6 = 8. Imaginary part: -4i + 3i = -1i. The product is 8 - i. In polar form the modulus is sqrt(64 + 1) = 8.06 and the argument is atan2(-1, 8) = -0.124 radians, or -7.1 degrees. Multiplying two complex numbers multiplies their moduli and adds their arguments, a fact Marcus uses to combine rotations in his simulation.
Real-World Scenarios
AC Circuit Impedance in Electrical Engineering
Resistors, capacitors, and inductors all respond differently to alternating current. A resistor adds a real impedance, while a capacitor or inductor adds a purely imaginary one. Combining components in series or parallel means adding, multiplying, or dividing complex impedances. The modulus gives the total opposition to current flow, and the argument gives the phase shift between voltage and current. Engineers read these two values straight off the polar form, which is why this calculator reports both representations.
Quantum Mechanics and Wave Functions
In quantum mechanics the state of a particle is described by a complex-valued wave function. Probability amplitudes are complex numbers, and the probability of finding a particle in a region is the squared modulus of the amplitude. When two paths interfere, you add their complex amplitudes before taking the modulus, which is why complex addition explains the bright and dark fringes in a double-slit experiment. The argument of each amplitude sets the phase that determines whether interference is constructive or destructive.
Signal Processing and Fourier Transforms
The Fourier transform breaks a signal into a sum of sine and cosine waves, and it is most compactly written using complex exponentials through Euler's formula. Each frequency component is a complex number whose modulus is the amplitude of that frequency and whose argument is its phase. Multiplying a signal by a complex exponential shifts its phase, which is the basis of modulation in communications systems. Fast Fourier Transform algorithms, which power everything from audio equalizers to MRI image reconstruction, rely on complex arithmetic at every step.
Common Mistakes to Avoid
- Forgetting i squared equals -1 in multiplication: When two imaginary terms multiply, the result is real and positive if both signs match. Skipping this substitution is the most frequent source of wrong answers.
- Using the wrong sign in a conjugate: The conjugate of a + bi is a - bi, which flips only the imaginary part. Flipping the real part too, or forgetting to flip at all, breaks the division method.
- Mixing up degrees and radians for the argument: The atan2 function returns radians. If your work expects degrees, convert by multiplying by 180 divided by pi. This calculator shows both units to prevent confusion.
- Dividing by zero: If the second number is 0 + 0i, its modulus is zero and division is undefined. The calculator flags this case instead of returning a misleading value.
Limitations
This calculator handles the four basic operations on two complex numbers and the standard single-number properties. It does not compute arbitrary integer powers higher than two, roots beyond the square root, logarithms, or exponentials of complex numbers. It does not solve polynomial equations or plot functions in the complex plane. Results use floating-point arithmetic, so very large or very small inputs can show small rounding errors. For multi-valued functions like the complex logarithm, only the principal value would apply, and this tool does not currently provide it.
Authoritative Research and Resources
To go deeper, these trusted sources cover complex numbers from introductory to advanced levels:
- Khan Academy - Complex Numbers: A free, structured course that starts with the imaginary unit and builds up to polar form and the complex plane, with practice problems at each step.
- MIT OpenCourseWare - Complex Numbers and Euler's Formula: Lecture notes from a differential equations course that connect complex arithmetic to Euler's formula and Fourier analysis, aimed at engineering students.
- Wolfram MathWorld - Complex Number: A concise technical reference that lists the formal definitions, identities, and properties of complex numbers for quick lookup.