Complex Number Calculator: Convert, Add, Subtract, Multiply, and Divide

A Complex Number Calculator computes complex-number operations (add, subtract, multiply, divide) and converts between rectangular (a + bi) and polar (r∠θ) forms. It outputs magnitude, angle, and the real/imaginary parts so you can verify answers quickly.

What a Complex Number Calculator Does

Complex numbers have two parts: a real component and an imaginary component. A calculator for complex numbers lets you work with them in the form that matches your problem, then returns consistent results across operations.

  • Rectangular form: z = a + bi
  • Polar form: z = r∠θ, where r is magnitude and θ is the angle

In practice, rectangular form is easiest for addition and subtraction, while polar form is often fastest for multiplication and division.

Core Concepts and Formulas

1) Converting Between Rectangular and Polar

Given z = a + bi, the magnitude and angle are:

  • Magnitude: r = √(a² + b²)
  • Angle: θ = atan2(b, a)

Given polar z = r∠θ, convert to rectangular using:

  • Real part: a = r cos(θ)
  • Imaginary part: b = r sin(θ)

Use atan2 (not plain arctan) to get the correct quadrant for θ.

2) Addition and Subtraction

For z₁ = a₁ + b₁i and z₂ = a₂ + b₂i:

  • Add: z₁ + z₂ = (a₁ + a₂) + (b₁ + b₂)i
  • Subtract: z₁ − z₂ = (a₁ − a₂) + (b₁ − b₂)i

Angles are not added directly in rectangular operations; the correct method is to combine real and imaginary parts first.

3) Multiplication

For rectangular inputs, multiply like polynomials:

z₁z₂ = (a₁ + b₁i)(a₂ + b₂i) = (a₁a₂ − b₁b₂) + (a₁b₂ + a₂b₁)i

If you use polar form, multiplication is even simpler:

  • Magnitudes multiply: r = r₁r₂
  • Angles add: θ = θ₁ + θ₂

4) Division

For rectangular division, a common approach multiplies numerator and denominator by the complex conjugate of the denominator:

If z₂ = c + di, then conjugate(z₂) = c − di.

That produces a real denominator, making it easier to compute real and imaginary parts accurately.

In polar form, division is straightforward:

  • Magnitudes divide: r = r₁ / r₂
  • Angles subtract: θ = θ₁ − θ₂

Division by a zero-magnitude complex number is undefined.

How to Use the Complex Number Calculator

Choose an input mode that matches your data, enter values, pick the operation, and read the results. The calculator returns both rectangular and polar outputs so you can cross-check your work.

  1. Select input form: rectangular (a, b) or polar (r, θ)
  2. Enter values: provide z₁ and z₂ (except for single-number conversions)
  3. Choose operation: add, subtract, multiply, or divide
  4. Review results: real/imaginary parts, magnitude, and angle

Angles can be shown in degrees or radians. Internally, the calculator converts to radians when using trigonometric functions.

Practical Examples

Example 1: Adding Two Signals in Rectangular Form

Suppose a circuit analysis uses complex impedances. Let z₁ = 3 + 4i and z₂ = 1 − 2i. To add them:

  • Real parts: 3 + 1 = 4
  • Imaginary parts: 4 + (−2) = 2

So z₁ + z₂ = 4 + 2i. A calculator also converts this to polar (r∠θ) to help interpret magnitude and phase.

Example 2: Multiplying Phasors Using Polar Form

Phasors in AC analysis often use polar form. If z₁ = 2∠30° and z₂ = 5∠−10°, then:

  • Magnitude: r = 2 × 5 = 10
  • Angle: θ = 30° + (−10°) = 20°

So z₁z₂ = 10∠20°. Converting back to rectangular gives the real and imaginary parts you may need for further steps.

Common Mistakes (and How to Avoid Them)

  • Using arctan instead of atan2: you can land in the wrong quadrant for θ.
  • Mixing degrees and radians: always check the angle unit setting.
  • Dividing by zero magnitude: if r₂ = 0, division is undefined.
  • Adding angles for addition/subtraction: only multiply/divide uses angle addition/subtraction in polar form.

Frequently Asked Questions

How do you convert a + bi into polar form r∠θ?

Compute magnitude r = √(a² + b²). Then compute the angle θ using θ = atan2(b, a) so the result lands in the correct quadrant. If you need degrees, convert θ from radians to degrees after using atan2.

What is the fastest way to multiply complex numbers?

Use polar form. Multiply magnitudes (r = r₁r₂) and add angles (θ = θ₁ + θ₂). Then convert back to rectangular if needed using a = r cos(θ) and b = r sin(θ). This avoids lengthy polynomial expansion.

How do you divide complex numbers without messy algebra?

Use polar form: divide magnitudes (r = r₁/r₂) and subtract angles (θ = θ₁ − θ₂). If you must use rectangular form, multiply numerator and denominator by the denominator’s conjugate to make the denominator real and simplify computations.

Why does the calculator show two different forms for the same answer?

Rectangular form (a + bi) and polar form (r∠θ) represent the same complex number in different coordinate systems. The calculator computes both from the same underlying values so you can verify results and choose the representation that best fits your next step.

Can I enter angles in degrees and radians?

Yes. The calculator accepts an angle unit choice. Internally, it converts to radians for trigonometric functions like sin and cos, then converts the displayed angle back to your selected unit so the output is easy to read and compare to your work.

Next Steps

Use the calculator above to verify classwork, check lab results, and speed up homework. When you understand the formulas behind it, you can choose the best form—rectangular or polar—for each operation and avoid common errors.

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top