notAcalculator logo

Complex Number Calculator

Add, subtract, multiply, or divide complex numbers and see the exact result, modulus, argument, complex conjugate, and polar form with step-by-step formulas.

Complex Number Calculator

Give us your feedback! Was this useful?

Introduction

The Complex Number Calculator performs the four standard arithmetic operations on complex numbers and reports not only the result but also its geometric fingerprint: the modulus, the argument in degrees, the conjugate, and the polar form. A complex number is written as z=a+biz = a + bi, where a is the real part and b is the real coefficient of the imaginary unit i. The imaginary unit is defined by a single equation that cannot be satisfied by any real number:

i2=−1i^2 = -1
[openstax-complex-numbers]

Every algebraic rule in this calculator flows from that definition. Because i squared is negative one, multiplying two complex numbers produces a real contribution and an imaginary contribution that must be collected separately, and dividing two complex numbers requires turning the denominator into a real number before the quotient can be written in the familiar a + bi shape. The standard algebraic identities for complex addition, multiplication, and division are derived from that definition alone. [khan-complex-numbers]

Complex numbers are not a curiosity invented for exams. They close the number system so that every polynomial equation has a solution. A quadratic equation such as x squared + 2x + 5 = 0 has no real solution because its discriminant is negative, yet it has two perfectly well-defined complex solutions. The Quadratic Equation Calculator shows the real-root case, and this calculator picks up exactly where that one stops. The Simplifying Radicals Calculator handles the real radical that appears when the discriminant is positive, while the Root Calculator explains why the square root of a negative number leaves the real line entirely.

Beyond algebra, complex numbers are the working language of alternating-current circuit analysis, where impedance combines resistance and reactance, of signal processing, where the Fourier transform decomposes a signal into complex exponentials, of control theory, where poles and zeros of a transfer function determine stability, and of quantum mechanics, where the wave function is inherently complex. Even the Mandelbrot set, one of the most recognizable images in mathematics, is generated by iterating the multiplication of complex numbers.

This calculator supports addition, subtraction, multiplication, and division of two complex numbers, with multiplication selected by default because it is the operation that reveals the most structure. For each computation it returns five linked values: the result in rectangular form, the modulus, the argument in degrees, the conjugate of the result, and the polar form written as r ∠ θ. Understanding how those five values relate to one another is the difference between using the tool as a black box and using it as a way to reason about complex arithmetic.

How to Use

The interface asks for two complex numbers, z₁ and z₂, and one operation. You enter four numeric fields in total: the real part and the imaginary part of each number. The operation selector sits between them and defaults to Multiply, so a first-time visitor can type two pairs of numbers and immediately see the most instructive operation. After pressing Calculate, the results panel shows the rectangular result, the modulus, the argument in degrees, the conjugate, and the polar form.

Enter only the coefficients, not the letters. For z₁ = 3 + 4i you type 3 in the real field and 4 in the imaginary field. Negative values are entered directly with a minus sign, so -5 + 10i is real part -5 and imaginary part 10. If a component is zero you may leave the field empty or type 0; both are treated as zero. The imaginary part is a coefficient, so entering 4 means 4i, never 4.

Example 1: Multiplication of 3 + 4i and 1 + 2i

This is the default configuration, so it is the fastest way to check that the calculator behaves as expected. Enter 3 and 4 for z₁, keep the operation on Multiply, then enter 1 and 2 for z₂. The calculator returns a result of -5 + 10i. That result has modulus 11.18034, argument 116.565051°, conjugate -5 - 10i, and polar form 11.18034 ∠ 116.565051°. The surprising part for most learners is that the product lands in the second quadrant: the real part is negative even though both inputs had positive real parts, because the term 8i² contributes -8 to the real component.

Example 2: Division of 3 + 4i by 1 + 2i

Change the operation to Divide and keep the same numbers. The calculator returns 2.2 - 0.4i. This is the result of multiplying both numerator and denominator by the conjugate of the denominator, 1 - 2i, which turns the denominator into the real number 5 and leaves the simplified quotient (11 - 2i) divided by 5. Division is the operation where the conjugate matters most, and the step-by-step derivation in the formula section shows exactly why the imaginary terms cancel in the denominator.

Example 3: Addition and Subtraction

With z₁ = 3 + 4i and z₂ = 1 + 2i, addition returns 4 + 6i and subtraction returns 2 + 2i. These operations are component-wise: real parts combine with real parts and imaginary parts with imaginary parts, exactly like adding vectors in the plane. Because the operation is vector addition, the modulus and argument of the result are not simply the sums of the moduli and arguments of the inputs — only multiplication and division have that convenient property.

Reading the Five Results Together

The rectangular result answers "what is the value?" The modulus answers "how far from the origin?" The argument answers "in which direction?" The conjugate answers "what is the mirror image across the real axis?" The polar form packages the distance and the direction into a single expression. For the multiplication example, the modulus 11.18034 is the product of the two input moduli, since 5 times the square root of 5 equals 11.18033989. The argument 116.565051° is the sum of the two input arguments, 53.130102° plus 63.434949°. When your product and sum match the component-wise calculation, you have a strong numerical check on the work.

The Formula

Addition and Subtraction

Complex numbers add and subtract component-wise:

(a+bi)±(c+di)=(a±c)+(b±d)i(a + bi) \pm (c + di) = (a \pm c) + (b \pm d)i
[khan-complex-numbers]

With a = 3, b = 4, c = 1, and d = 2, addition gives (3 + 1) + (4 + 2)i = 4 + 6i, and subtraction gives (3 - 1) + (4 - 2)i = 2 + 2i. No interaction between the real and imaginary parts occurs, which is why addition is the easiest operation to verify mentally.

Multiplication

Multiplication expands by the distributive law and then applies i squared = -1:

(a+bi)(c+di)=(ac−bd)+(ad+bc)i(a + bi)(c + di) = (ac - bd) + (ad + bc)i
[purplemath-complex]

The step-through for the default example is worth doing by hand once. Multiply 3 + 4i by 1 + 2i using FOIL: 3 times 1 is 3, 3 times 2i is 6i, 4i times 1 is 4i, and 4i times 2i is 8i squared. Collecting the imaginary terms gives 10i, and replacing i squared with -1 turns the last term into -8. Adding 3 and -8 gives the real part -5, so the product is -5 + 10i. The cross terms 6i and 4i do not vanish, and that is precisely why complex multiplication rotates a point in the plane instead of merely scaling it.

Division and the Conjugate

Division is performed by multiplying the numerator and denominator by the conjugate of the denominator. The conjugate of c + di is c - di, and the product of a complex number with its conjugate is always real:

(c+di)(c−di)=c2+d2(c + di)(c - di) = c^2 + d^2
[wikipedia-complex-number]

Note that no i appears on the right-hand side. The two imaginary cross terms, +cdi and -cdi, cancel exactly, and the remaining real terms are c squared plus d squared because -d squared times i squared equals +d squared. This cancellation is the entire point of the maneuver: the denominator becomes the real number c squared + d squared, and a real denominator can be divided into the real and imaginary parts separately.

a+bic+di=(a+bi)(c−di)c2+d2=ac+bdc2+d2+bc−adc2+d2i\frac{a + bi}{c + di} = \frac{(a + bi)(c - di)}{c^2 + d^2} = \frac{ac + bd}{c^2 + d^2} + \frac{bc - ad}{c^2 + d^2}i

Applying this to (3 + 4i) divided by (1 + 2i): the conjugate of the denominator is 1 - 2i, and the squared modulus of the denominator is 1 squared plus 2 squared, which is 5. The numerator product is (3 + 4i)(1 - 2i) = 3 - 6i + 4i - 8i squared = 3 - 2i + 8 = 11 - 2i. Dividing both parts by 5 gives 2.2 - 0.4i, the exact value the calculator reports. Anyone who has rationalized a denominator containing a square root will recognize the technique immediately; the conjugate plays the same role for the imaginary unit that the radical's conjugate plays for a root. [purplemath-complex]

Modulus

The modulus measures distance from the origin in the complex plane and generalizes absolute value:

r=∣z∣=a2+b2r = |z| = \sqrt{a^2 + b^2}
[wolfram-complex-number]

For z = -5 + 10i, the modulus is the square root of 25 + 100, which is the square root of 125, equal to 11.18033989 and displayed as 11.18034. The modulus is never negative, and it is zero only for z = 0. Because of the identity z times its conjugate equals r squared, the modulus also gives a fast way to verify any division: the modulus of a quotient is the quotient of the moduli.

Argument

The argument is the angle the vector makes with the positive real axis, measured counterclockwise:

θ=atan2⁡(b,a)\theta = \operatorname{atan2}(b, a)
[openstax-polar-form]

Using atan2 rather than a plain arctangent of b divided by a is essential because the plain quotient cannot distinguish the first quadrant from the third, or the second from the fourth. For z = -5 + 10i, the point lies in the second quadrant, and atan2 returns 116.565051°, an angle in the interval from -180° to 180°. A plain arctangent of 10 divided by -5 would have returned -63.434949°, which points in the opposite direction. Most scientific calculators report the argument in radians; multiplying by 180 and dividing by pi converts radians to degrees, which is why this tool reports degrees by default. For the product of the first example, the argument is the sum of the input arguments, 53.130102° + 63.434949° = 116.565051°, exactly as the calculator reports.

Polar and Exponential Form

Once the modulus and argument are known, the number can be written in polar form:

z=r(cos⁡θ+isin⁡θ)=r∠θz = r(\cos\theta + i\sin\theta) = r \angle \theta
[openstax-polar-form]

The exponential form z=reiθz = re^{i\theta} is equivalent by Euler's formula and is the standard notation in electrical engineering and physics. Multiplication and division become trivial in this representation: multiply the moduli and add the angles, or divide the moduli and subtract the angles. That is why the coordinates 11.18034 ∠ 116.565051° are more than a curiosity — they turn a tedious FOIL expansion into two additions.

De Moivre's Theorem and Powers

Raising a complex number to an integer power is a direct application of the angle-addition property:

zn=rn(cos⁡nθ+isin⁡nθ)z^n = r^n(\cos n\theta + i\sin n\theta)
[wolfram-demoivre]

De Moivre's theorem lets you compute high powers without ever expanding a binomial. To cube 1 + i, whose modulus is the square root of 2 and whose argument is 45°, apply the theorem: the new modulus is 2 raised to the three-halves, approximately 2.828, and the new argument is 135°, giving -2 + 2i. The same theorem, run backwards, extracts roots: the nth roots of a complex number are equally spaced around a circle of radius the nth root of r, separated by 360 divided by n degrees. Those roots are the vertices of a regular polygon, which is why complex numbers appear in geometry and in the design of phased antenna arrays.

Negative Discriminants and Quadratic Equations

A quadratic equation of the form ax2+bx+c=0ax^2 + bx + c = 0 has solutions given by the quadratic formula, and its behavior is decided by the discriminant b2−4acb^2 - 4ac. When the discriminant is negative, its square root is imaginary, and the two solutions form a conjugate pair:

x=−b±i∣b2−4ac∣2ax = \frac{-b \pm i\sqrt{|b^2 - 4ac|}}{2a}
[openstax-complex-numbers]

For x squared + 2x + 5 = 0, the discriminant is 4 - 20 = -16, so the square root of the absolute value is 4 and the solutions are -1 ± 2i. The real part is the axis of symmetry of the parabola, and the imaginary part is the vertical offset that keeps the curve from ever touching the horizontal axis. Every polynomial with real coefficients that has one complex root must also have the conjugate as a root, which is why complex solutions always arrive in pairs and why the graphs of such quadratics never intersect the x-axis.

Reference Table: Powers of i and Coordinate Forms

The imaginary unit repeats in a cycle of length four. Reducing the exponent modulo 4 tells you the value immediately, without multiplying anything.

11i01
22-1-10
33-i0-1
40110
51i01
62-1-10
73-i0-1
80110
The imaginary part of each power of i cycles through 1, 0, -1, 0 and repeats every four exponents, which is why any i raised to a huge power reduces to one of just four values.

The table shows the full cycle twice so the repetition is unmistakable. Dividing the exponent by 4 and keeping only the remainder is enough to evaluate any power of i, no matter how large. This reduction is a standard technique in electrical engineering, where powers of i appear when multiplying impedance terms. [wolfram-complex-number]

The same number can be written in several coordinate forms, and choosing the right one turns a hard computation into an easy one.

Rectangular or binomiala + bi3 + 4iAddition and subtraction
Polarr ∠ θ5 ∠ 53.130102°Multiplication and division
Exponentialr e^(iθ)5 e^(0.927295i)Calculus, differential equations, phasors
Trigonometricr(cos θ + i sin θ)5(cos 53.130102° + i sin 53.130102°)Proving identities, De Moivre
Conjugatea - bi3 - 4iDivision, modulus, roots of quadratics

The rectangular form is the natural home of addition, because the components combine independently. The polar and exponential forms are the natural home of multiplication and exponentiation, because angles add. Moving between them requires only the modulus and the argument, which is why the calculator reports both alongside every result.

Practical Tips

Multiply by the conjugate before dividing, always. The safest habit is to write the conjugate of the denominator immediately, multiply numerator and denominator by it, and only then simplify. Skipping the step and trying to divide the real and imaginary parts directly leads to errors that are hard to trace. If the denominator is c + di, the multiplier is c - di and the new denominator is c squared + d squared.

Watch the sign of i squared. Most mistakes in complex multiplication come from treating i squared as +1 instead of -1. In the default example, forgetting that step would produce 3 + 10i instead of -5 + 10i, a completely different point. Whenever a real part changes sign relative to your first estimate, check whether an i squared term was converted correctly.

Use atan2, not a plain arctangent. The inverse tangent of b divided by a returns the same value for 1 + i and for -1 - i, even though those points are in opposite quadrants. If your calculated argument disagrees with the calculator by exactly 180°, the quadrant was probably picked by hand from a single ratio. The sign of both a and b is needed to place the angle correctly.

Check the modulus with the conjugate product. Because z times its conjugate equals r squared, you can verify any result with one multiplication. For -5 + 10i, the modulus is the square root of 125; multiplying (-5 + 10i)(-5 - 10i) gives 25 + 100 = 125, which confirms the value. This check catches sign errors that survive a visual inspection.

Prefer polar form for repeated multiplication. Multiplying three complex numbers in rectangular form requires nine products. In polar form you multiply three moduli and add three angles. When you see a product of several complex factors, convert first and convert back at the end, especially when the factors are repeated.

Reduce powers of i modulo four. Before expanding any expression containing a large power of i, divide the exponent by four and replace the power with the corresponding value from the cycle i, -1, -i, 1. This collapses sprawling expressions in one line and is the reason the cycle appears in virtually every complex-number textbook exercise.

Track the degree convention. This calculator reports the argument in degrees, while most scientific calculators and programming languages return radians. Converting between them requires multiplying by pi over 180 or its reciprocal. Working in the wrong unit will produce an argument that looks plausible but is off by a factor of roughly 57, so check one known case such as 1 + i, whose argument must be 45° or 0.785398 radians.

Limitations

The calculator handles exactly two complex numbers per operation. Expressions with three or more operands must be evaluated in stages, combining two numbers at a time, which means intermediate results are rounded before the next step. For most purposes the rounding is invisible, but a chain of divisions can accumulate a visible error in the last few decimal places.

Results are computed in double-precision floating point, so they carry roughly fifteen significant digits. Values such as the square root of 125 are irrational and are necessarily truncated at the displayed precision, and the same is true of arguments, which are reported to six decimal places. Numbers that are mathematically equal may therefore differ in the final displayed digit.

The argument is reported as a principal value in the interval from -180° to 180°, exclusive of -180°. An angle of 190° is therefore displayed as -170°, which is the same direction but a different number. When you need an angle in a specific range, such as 0 to 360 degrees for a phase calculation, you must adjust the reported value manually.

The argument of zero is undefined, and the calculator does not assign a value to it; dividing by a complex number whose modulus is zero is likewise rejected, since the conjugate method would require dividing by c squared + d squared, which would be zero. Complex exponentiation, complex roots, and logarithms of complex numbers are outside the scope of this tool: the De Moivre formula is provided so those results can be derived by hand or with a scientific calculator once the modulus and argument are known.

Finally, the tool does not preserve exact symbolic forms. A result that is exactly 2.2 is shown as 2.2, but a result such as one divided by three will appear as a rounded decimal, not as a fraction. For exact arithmetic with surds and fractions, the Simplifying Radicals Calculator keeps the symbolic structure that a floating-point calculator must discard.

Frequently Asked Questions

❓ What is a complex number?
✅ A complex number is a number of the form a + bi, where a and b are real numbers and i is the imaginary unit defined by i squared equals -1. The real part a moves the point along the horizontal axis and the imaginary part b moves it along the vertical axis, so every complex number corresponds to exactly one point in the plane.
❓ How do I use this calculator?
✅ Enter the real and imaginary coefficients of z1 and z2, choose an operation, and press Calculate. The operation selector defaults to Multiply. The results show the rectangular result, the modulus, the argument in degrees, the conjugate of the result, and the polar form.
❓ Why is i squared equal to -1?
✅ The imaginary unit is defined that way so that every polynomial equation has a solution. No real number squares to a negative value, so extending the number system with a symbol whose square is -1 closes that gap. Every rule of complex arithmetic follows from that one definition.
❓ How do I divide complex numbers?
✅ Multiply the numerator and the denominator by the conjugate of the denominator. For (a + bi) divided by (c + di), multiply both parts by c - di. The denominator becomes c squared plus d squared, which is a real number, and the quotient can then be written as a real part plus an imaginary part.
❓ Why does multiplying by the conjugate make the denominator real?
✅ The conjugate of c + di is c - di. When the two are multiplied, the cross terms cdi and -cdi have opposite signs and cancel, and d squared times i squared becomes -d squared. The result is c squared plus d squared with no imaginary term at all, so the denominator is a real number.
❓ What are the modulus and the argument?
✅ The modulus is the distance from the origin to the point, calculated as the square root of a squared plus b squared. The argument is the angle from the positive real axis to the point, calculated with the two-argument arctangent of b and a. Together they are the polar coordinates of the complex number.
❓ Why does the calculator use atan2 instead of arctangent?
✅ The plain arctangent of b divided by a cannot tell which quadrant the point is in, because it loses the individual signs of a and b. The two-argument arctangent uses both signs and returns the correct angle anywhere in the plane, including the second and third quadrants where a plain arctangent would point in the wrong direction.
❓ What is the polar form?
✅ The polar form writes a complex number as r angle theta, where r is the modulus and theta is the argument. Equivalently it is r times the quantity cosine theta plus i sine theta, or r times e to the power i theta. Multiplication in polar form multiplies the moduli and adds the angles.
❓ How many times do I need to multiply i by itself to get back to 1?
✅ Four times. The powers of i cycle through i, -1, -i, and 1, and then repeat. So i raised to the fourth power equals 1, i raised to the fifth equals i again, and any exponent can be reduced by taking the remainder when dividing it by four.
❓ Why do quadratic equations get complex solutions?
✅ The quadratic formula contains the square root of the discriminant, b squared minus 4ac. When the discriminant is negative, that square root is imaginary and the two solutions become a conjugate pair of complex numbers. Geometrically, the parabola never crosses the x-axis, and the real part of the solution is the axis of symmetry.
❓ What is De Moivre's theorem used for?
✅ It computes powers and roots of complex numbers by raising the modulus to the power and multiplying the angle by the power. It turns a long binomial expansion into two arithmetic operations, and running it backwards produces the equally spaced nth roots of a complex number.
❓ Can this calculator add three complex numbers at once?
✅ No. It operates on exactly two complex numbers per calculation. To combine three, add the first two, note the result, and then use that result as z1 with the third number as z2. The same staging approach works for any longer expression, with each step rounded to double precision.

References

  1. [1]Complex Numbers - College Algebra 2e. OpenStax. (n.d.). Retrieved from https://openstax.org/books/college-algebra-2e/pages/2-4-complex-numbers
  2. [2]Complex Numbers - Algebra 2. Khan Academy. (n.d.). Retrieved from https://www.khanacademy.org/math/algebra2/x2ec2f6f830c9fb89:complex
  3. [3]Complex Numbers. Purplemath. (n.d.). Retrieved from https://www.purplemath.com/modules/complex.htm
  4. [4]Complex number. Wikipedia. (n.d.). Retrieved from https://en.wikipedia.org/wiki/Complex_number
  5. [5]Complex Number - Wolfram MathWorld. (n.d.). Retrieved from https://mathworld.wolfram.com/ComplexNumber.html
  6. [6]de Moivre's Identity - Wolfram MathWorld. (n.d.). Retrieved from https://mathworld.wolfram.com/deMoivresIdentity.html
  7. [7]Polar Form of Complex Numbers - Precalculus 2e. OpenStax. (n.d.). Retrieved from https://openstax.org/books/precalculus-2e/pages/8-5-polar-form-of-complex-numbers

Last updated: October 19, 2026

1b

UnByte — Independent Software Engineering

Every calculator references authoritative sources — Editorial policy