Calculateus

Complex Number Calculator

Add, subtract, multiply and divide complex numbers, and find magnitude and angle.

Result

Result
4 + 6i
Magnitude of a+bi
5
Angle of a+bi
53.13°

About the Complex Number Calculator

Complex numbers extend ordinary arithmetic into two dimensions, pairing a real part with an imaginary part that behaves according to its own set of multiplication rules. Our Complex Number Calculator adds, subtracts, multiplies, and divides two complex numbers, and shows the magnitude and angle of the first one.

How It Works

For addition and subtraction, the calculator combines real parts together and imaginary parts together. For multiplication, it expands the product using the rule that i² equals −1. For division, it multiplies both numbers by the conjugate of the denominator to eliminate the imaginary part from the bottom, then simplifies.

(a+bi) + (c+di) = (a+c) + (b+d)i (a+bi) × (c+di) = (ac−bd) + (ad+bc)i (a+bi) ÷ (c+di) = [(ac+bd) + (bc−ad)i] ÷ (c²+d²)

Formula & Methodology

Addition and subtraction treat the real and imaginary components as entirely separate tracks, since you can only combine 'like terms' the same way you would with any binomial. Multiplication uses standard binomial expansion (FOIL), but with one extra step: because i² is defined as −1 rather than +1, the bi × di term flips sign and merges into the real part instead of staying separate. Division borrows a trick from rationalizing denominators - multiplying top and bottom by the denominator's conjugate (c−di) turns the denominator into the real number c²+d², since (c+di)(c−di) = c²+d², removing the imaginary part from underneath entirely.

Step-by-Step: Calculating It By Hand

  1. 1For addition/subtraction: combine the two real parts, then combine the two imaginary parts.
  2. 2For multiplication: expand (a+bi)(c+di), replacing i² with −1 as you simplify.
  3. 3For division: multiply both numbers by the conjugate of the denominator (c−di), then divide both resulting parts by c²+d².
  4. 4Magnitude and angle are found separately from the first complex number using √(a²+b²) and atan2(b, a).

Examples

Multiplying

(3+4i) × (1+2i) expands to (3×1 − 4×2) + (3×2 + 4×1)i = −5 + 10i.

Magnitude and angle

The complex number 3+4i has magnitude √(3²+4²) = 5 and an angle of about 53.13° from the positive real axis.

Advantages

  • Handles all four basic operations on complex numbers in one tool
  • Automatically applies the conjugate trick for division, avoiding a common manual error
  • Shows magnitude and angle (polar form) alongside the rectangular result
  • Fast alternative to expanding complex arithmetic by hand

Common Mistakes

  • Forgetting that i² equals −1 when expanding a multiplication, and leaving it as +1 instead
  • Dividing without multiplying by the conjugate first, which leaves an imaginary denominator
  • Mixing up which number's magnitude and angle are being shown (the first entered complex number, a+bi)
  • Treating the imaginary part like a separate real number rather than tracking it through each operation correctly

Edge Cases to Watch For

  • Division is undefined when the denominator's real and imaginary parts are both zero, since c²+d² would be zero.
  • A purely real number (b = 0) or a purely imaginary number (a = 0) is still a valid complex number and follows the same rules.
  • The magnitude of a complex number is always non-negative, representing its distance from the origin on the complex plane.
  • The angle (argument) is measured counterclockwise from the positive real axis and can range from −180° to 180°.

Common Use Cases

  • Algebra and precalculus coursework involving complex numbers
  • Electrical engineering calculations involving impedance and AC circuits
  • Signal processing and control systems that rely on complex arithmetic
  • Quick verification of manually expanded or simplified complex number expressions
Written & fact-checked by the Calculateus TeamLast updated August 5, 2026How we verify our formulas

Frequently asked questions

What does the magnitude and angle represent?

They're the polar form of the complex number a+bi - magnitude (√(a²+b²)) is its distance from the origin on the complex plane, and angle is the direction from the positive real axis, useful for multiplication/division or converting to Euler's form.

Conclusion

Complex numbers follow consistent, learnable rules once you treat the imaginary unit correctly - this handles all four operations plus the polar-form view in a single step. For real-valued equations that occasionally produce complex roots instead, our Quadratic Equation Solver shows how that connection comes up in practice.