Visual Tools
Calculators
Tables
Mathematical Keyboard
Converters
Other Tools

Adding and Subtracting Complex Numbers Calculator

How to use
  1. Choose Add or Subtract with the two buttons. Learn more about the two operations
  2. Type the first number z1z_1 in Re z₁ and Im z₁, and the second number z2z_2 in Re z₂ and Im z₂. For 3+2i3 + 2i type 3 and 2.
  3. Read the result, then the real part and the imaginary part worked out separately. Learn more about reading the answer
  4. On the complex plane z1z_1 is navy, z2z_2 is blue and the result is amber.
  5. How it was found shows each step.

Sum
(3+2 i)+(1−4 i)=4−2 i\displaystyle (3 + 2\,i) + (1 - 4\,i) = 4 - 2\,i
Real part
3+1=4\displaystyle 3 + 1 = 4
Imaginary part
2+(−4)=−2\displaystyle 2 + (-4) = -2
Modulus of the result
∣z1+z2∣=25≈4.4721\displaystyle |z_1 + z_2| = 2\sqrt{5} \approx 4.4721
How it was found

Complex numbers are added part by part: real with real, imaginary with imaginary.

Real parts: 3+1=43 + 1 = 4. Imaginary parts: 2+(−4)=−22 + (-4) = -2.

So z1+z2=4−2 iz_1 + z_2 = 4 - 2\,i.

On the plane this is the parallelogram rule: draw z1z_1 (navy) and z2z_2 (blue) from the origin, complete the parallelogram, and the sum (amber) is its diagonal.

The sum is never longer than the two together: ∣z1+z2∣=4.4721≤∣z1∣+∣z2∣=7.7287|z_1 + z_2| = 4.4721 \le |z_1| + |z_2| = 7.7287. This is the triangle inequality.



Adding two complex numbers

DemoAdding two complex numbers
Step 0 of 3
Choose Add and type the two numbers. For z1=a+biz_1 = a + bi and z2=c+diz_2 = c + di the sum is

z1+z2=(a+c)+(b+d) iz_1 + z_2 = (a + c) + (b + d)\,i


Real parts are added to real parts, imaginary parts to imaginary parts. Nothing else happens: ii behaves like a letter in ordinary algebra, and like terms are collected.

Subtracting two complex numbers

DemoSubtracting two complex numbers
Step 0 of 3
Choose Subtract. The difference is found the same way:

z1−z2=(a−c)+(b−d) iz_1 - z_2 = (a - c) + (b - d)\,i


Take care with the signs when the second number has a negative part: subtracting −4i-4i adds 4i4i. Subtracting z2z_2 is the same as adding its opposite, −z2=−c−di-z_2 = -c - di.

Reading the answer

  • Sum or Difference is the result, written as a+bia + bi.
  • Real part and Imaginary part show the two small calculations that produce it.
  • Modulus of the result is its distance from the origin, exact where possible.

  • Each box accepts whole numbers, decimals, negative numbers and fractions such as 1/2. A purely real number has imaginary part 0; a purely imaginary one has real part 0.

The parallelogram rule

On the complex plane a number is an arrow from the origin. To add two numbers, place the second arrow at the tip of the first: where it ends is the sum. Doing it in the other order gives the same point, and the two paths form a parallelogram whose diagonal is z1+z2z_1 + z_2.

This is why addition of complex numbers is the same as addition of vectors, and why the order does not matter: z1+z2=z2+z1z_1 + z_2 = z_2 + z_1.
The sum z1+z2z_1 + z_2 is the diagonal of the parallelogram built on z1z_1 and z2z_2.

The difference as an arrow

The difference z1−z2z_1 - z_2 is the arrow that leads from z2z_2 to z1z_1. Moved so that it starts at the origin, it ends at the number z1−z2z_1 - z_2.

Its length, ∣z1−z2∣|z_1 - z_2|, is the distance between the two numbers on the plane.
The dashed arrow from z2z_2 to z1z_1, moved to the origin, is z1−z2z_1 - z_2.

The triangle inequality

The three arrows z1z_1, z2z_2 and z1+z2z_1 + z_2 form a triangle, and one side of a triangle is never longer than the other two together:

∣z1+z2∣≤∣z1∣+∣z2∣|z_1 + z_2| \le |z_1| + |z_2|


Equality holds only when the two numbers point in the same direction. The calculator shows both sides of this inequality for your numbers.

Common mistakes

  • Adding a real part to an imaginary part. 3+2i3 + 2i is not 5i5i. The two parts stay separate.
  • Losing a sign in subtraction. (3+2i)−(1−4i)(3 + 2i) - (1 - 4i) has imaginary part 2−(−4)=62 - (-4) = 6, not −2-2.
  • Adding moduli. ∣z1+z2∣|z_1 + z_2| is usually smaller than ∣z1∣+∣z2∣|z_1| + |z_2|.
  • Adding arguments. Angles add when numbers are multiplied, not when they are added.