Complex Number Calculator

Next

A complex number has the form a + bi, where a is the real part, b is the imaginary part and i is the square root of −1. This calculator takes two complex numbers, z₁ = a + bi and z₂ = c + di, and returns their sum, difference, product and quotient in standard x + yi form. It also reports the modulus (distance from the origin) and the argument (angle, in degrees) of z₁, so you can switch between rectangular and polar views at a glance.

How to use the calculator

  1. 1

    Enter z₁

    Type the real part a and imaginary part b of the first complex number.

  2. 2

    Enter z₂

    Type the real part c and imaginary part d of the second complex number.

  3. 3

    Read the results

    Sum, difference, product and quotient appear in a + bi form, with the modulus and argument of z₁.

The four operations

For z₁ = a + bi and z₂ = c + di, the arithmetic follows directly from treating i as a symbol with i² = −1:

  • Sum: (a + c) + (b + d)i
  • Difference: (a − c) + (b − d)i
  • Product: (ac − bd) + (ad + bc)i
  • Quotient: multiply top and bottom by the conjugate of z₂: [(ac + bd) + (bc − ad)i] / (c² + d²)

Division is only defined when the denominator c² + d² is non-zero, that is, whenever z₂ is not 0 + 0i.

Modulus and argument of z₁

The modulus is the distance from the origin to the point (a, b) in the complex plane: |z₁| = √(a² + b²). The argument is the angle that z₁ makes with the positive real axis, computed with the two-argument arctangent arg(z₁) = atan2(b, a) and shown here in degrees, in the range −180° to 180°.

Worked example

Let z₁ = 3 + 2i and z₂ = 1 + 4i.

Operation Calculation Result
Sum (3 + 1) + (2 + 4)i 4 + 6i
Difference (3 − 1) + (2 − 4)i 2 − 2i
Product (3·1 − 2·4) + (3·4 + 2·1)i −5 + 14i
Quotient [(3 + 8) + (2 − 12)i] / 17 ≈ 0.6471 − 0.5882i
Modulus z₁ √(3² + 2²) = √13 ≈ 3.6056
Argument z₁ atan2(2, 3) ≈ 33.69°

Pitfalls to avoid

  • Forgetting i² = −1. When multiplying, the bd·i² term flips sign and joins the real part, that is why the real part of the product is ac − bd, not ac + bd.
  • Dividing without the conjugate. You cannot split (a + bi)/(c + di) term by term; multiply by (c − di)/(c − di) first.
  • Mixing degrees and radians. The argument here is in degrees; many programming languages return radians from atan2. Multiply by 180/π to convert.
  • Quadrant errors. Use atan2, not plain arctan(b/a), or the angle for points with a negative real part lands in the wrong quadrant.

Frequently Asked Questions

They are the parts of the two inputs: z₁ = a + bi (a real, b imaginary) and z₂ = c + di (c real, d imaginary). Set b or d to 0 to work with a purely real number, or a or c to 0 for a purely imaginary one.

Degrees are easier to read for most people. The value comes from atan2(b, a) and ranges from −180° to 180°. To convert to radians, multiply by π/180.

Division by zero is undefined, so when both c and d are 0 the quotient cannot be computed and the calculator flags it. Every other operation (sum, difference, product) still works.

The numbers you enter are sent to our server only to calculate the results shown on the page, and in the step-by-step view they also appear in the page link between steps. They are not stored, kept or shared with anyone.

Related Tools