Arithmetic, Algebra & Number Theory Matrices, Vectors & Complex Numbers Rectangular and polar (modulus-argument) form

Complex Number Calculator

Enter two complex numbers as real and imaginary parts, pick an operation, and this calculator returns the answer in rectangular form a + bi together with its modulus, its argument in both degrees and radians, and the polar and exponential forms. Division is done the standard way — multiply top and bottom by the conjugate of the denominator — and every intermediate product is shown, so you can check a homework answer line by line rather than just confirming the final number. The Argand plot shows both inputs and the result as arrows from the origin.

Calculator

This calculator runs in your browser. Enable JavaScript for live results — the inputs, formula and worked example below remain fully readable without it.

Inputs this calculator takes, with typical values
InputWhat to enterExample
z₁ real part aThe part of the first number with no i attached.3
z₁ imaginary part bThe coefficient of i in the first number — enter 4 for 3 + 4i, not 4i.4
OperationDivision multiplies both parts of the fraction by the conjugate of z₂ to clear i from the denominator.z₁ × z₂ (multiply)
z₂ real part cThe part of the second number with no i attached.1
z₂ imaginary part dThe coefficient of i in the second number — enter −2 for 1 − 2i.-2

It returns

  • Result — real part — Read this together with the imaginary part below: the answer is (real part) + (imaginary part)i.
  • Result — imaginary part — The coefficient of i. A value of −2 means the answer ends in − 2i.
  • Modulus |result| — Distance from the origin on the Argand plane, √(real² + imaginary²).
  • Argument of the result — Principal value in degrees, measured anticlockwise from the positive real axis and reported in (−180°, 180°].
  • Argument in radians
  • Modulus |z₁|
  • Argument of z₁

The formula

(a+bi)(c+di)=(acbd)+(ad+bc)i
a+bic+di=(ac+bd)+(bcad)ic2+d2
z=r(cosθ+isinθ)=reiθ

In plain text: (a+bi)(c+di) = (ac − bd) + (ad + bc)i; (a+bi)÷(c+di) = ((ac+bd) + (bc−ad)i) ÷ (c²+d²)

  • a, bReal and imaginary parts of z₁ (—)
  • c, dReal and imaginary parts of z₂ (—)
  • iThe imaginary unit, defined by i² = −1 (—)
  • rModulus, √(a² + b²) — distance from the origin (—)
  • θArgument, atan2(b, a) — angle from the positive real axis (rad or °)

Multiplication is ordinary binomial expansion with i² replaced by −1. Division multiplies numerator and denominator by the conjugate of the denominator, which turns the denominator into the real number c² + d².

Updated Category Matrices, Vectors & Complex Numbers Verified against published test cases Reading time 12 min

What a complex number is and why arithmetic on it works

A complex number is a pair of real numbers written a + bi, where i is a symbol obeying one rule: i² = −1. The a is the real part and the b is the imaginary part, and both are ordinary real numbers — the imaginary part of 3 + 4i is 4, not 4i. Every rule of algebra you already know carries over unchanged, because complex numbers form a field: you can add, subtract, multiply and divide freely, and the results obey commutativity, associativity and distributivity exactly as real numbers do.

Complex numbers exist because polynomials demand them. x² + 1 = 0 has no real solution, and once you admit one root the fundamental theorem of algebra says every polynomial of degree n has exactly n roots counted with multiplicity. That is why the quadratic formula stops failing when the discriminant is negative, and why the eigenvalues of a rotation matrix are complex even though every entry of the matrix is real.

The picture that makes the arithmetic intuitive is the Argand diagram: plot the real part along the horizontal axis and the imaginary part along the vertical one, and each complex number becomes a point, or an arrow from the origin. Addition is then vector addition — the same head-to-tail rule as the vector calculators. Multiplication is the interesting one, because it is not vector-like at all: it scales the length and rotates the angle.

The four operations, and why division needs the conjugate

Addition and subtraction act on the two parts independently: (a + bi) ± (c + di) = (a ± c) + (b ± d)i. Nothing mixes, because you can only collect like terms.

Multiplication is binomial expansion followed by one substitution. (a + bi)(c + di) = ac + adi + bci + bdi², and replacing i² with −1 gives (acbd) + (ad + bc)i. The minus sign in the real part is the whole content of i² = −1, and it is where nearly every hand-calculation slip happens.

Division starts from a problem: you cannot leave i in a denominator and read off the two parts. The fix uses the conjugate, written z̄ — the same number with the sign of the imaginary part flipped. A number times its conjugate is always real, because (c + di)(cdi) = c² − (di)² = c² + d². Multiply the top and bottom of the fraction by z̄2 and the denominator becomes that real number, leaving (ac + bd) + (bcad)i over c² + d².

Polar form makes multiplication and division trivial. Write z = r(cos θ + i sin θ), where r = √(a² + b²) is the modulus and θ = atan2(ba) is the argument. Then multiplying two complex numbers multiplies their moduli and adds their arguments; dividing divides the moduli and subtracts the arguments. Euler's identity e = cos θ + i sin θ turns that into ordinary index laws: r1e1 × r2e2 = r1r2ei(θ12).

Worked example: (3 + 4i) ÷ (1 − 2i), checked two ways

Set z1 = 3 + 4i, z2 = 1 − 2i and choose divide.

  1. Conjugate of the denominator. z̄2 = 1 + 2i.
  2. New denominator. (1 − 2i)(1 + 2i) = 1² + 2² = 1 + 4 = 5.
  3. New numerator. (3 + 4i)(1 + 2i) = 3 + 6i + 4i + 8i² = 3 − 8 + 10i = −5 + 10i.
  4. Divide through. (−5 + 10i) ÷ 5 = −1 + 2i.
  5. Modulus. √((−1)² + 2²) = √5 = 2.2360680.
  6. Argument. The point (−1, 2) is in the second quadrant. The reference angle is atan(2 ÷ 1) = 63.434949°, so θ = 180° − 63.434949° = 116.565051°, which is 2.0344439 radians.
  7. Exponential form. 2.2360680 ei × 2.0344439.

Now check it in polar form, which uses none of the same arithmetic. |z1| = √(9 + 16) = 5 and arg z1 = atan(4 ÷ 3) = 53.130102°. |z2| = √(1 + 4) = 2.2360680 and arg z2 = −63.434949°. Dividing: the modulus is 5 ÷ 2.2360680 = 2.2360680, and the argument is 53.130102° − (−63.434949°) = 116.565051°. Both routes agree, which is the check worth doing on any complex division you do by hand.

How to read the modulus and the argument

The modulus is a size and the argument is a direction. Together they say the same thing as the real and imaginary parts, and which pair you want depends on the question. Rectangular form answers “how far right and how far up”; polar form answers “how long and which way round”. Electrical engineers live in polar form because a sinusoidal voltage is naturally described by an amplitude and a phase, and impedance combines by exactly the complex multiplication rule above.

Read the argument carefully, because its range is a convention. This calculator returns the principal argument in (−180°, 180°], which is what atan2 gives and what most software uses. Adding any whole number of full turns describes the same point, so −90° and 270° are the same direction. Two consequences catch people out: the argument on the negative real axis is reported as +180° rather than −180°, and adding two arguments in polar multiplication can produce a value outside the principal range that needs 360° added or subtracted to bring it back.

Zero is the one number with no argument. Its modulus is 0, and every direction from the origin is as good as any other, so the argument output is left blank rather than reported as 0°. That is not a limitation of this page — arg(0) is genuinely undefined.

A useful sanity check on any product or quotient: the modulus of a product must equal the product of the moduli, and the modulus of a quotient the quotient of the moduli. For the worked example above, 5 × 2.2360680 = 11.180340, and |11 − 2i| = √125 = 11.180340. If those two disagree, the error is in the rectangular arithmetic.

Rectangular and polar forms of common complex numbers

Modulus is √(a² + b²); argument is the principal value from atan2(b, a), shown to four decimal places.
zModulus |z|Argument (degrees)Argument (radians)Quadrant
11.0000000.00000.000000positive real axis
i1.00000090.00001.570796positive imaginary axis
−11.000000180.00003.141593negative real axis
−i1.000000−90.0000−1.570796negative imaginary axis
1 + i1.41421445.00000.785398first
−1 + i1.414214135.00002.356194second
−1 − i1.414214−135.0000−2.356194third
1 − i1.414214−45.0000−0.785398fourth
√3 + i2.00000030.00000.523599first
3 + 4i5.00000053.13010.927295first
−3 + 4i5.000000126.86992.214297second
5 − 12i13.000000−67.3801−1.176005fourth

The three 5-modulus and 13-modulus entries come from the 3-4-5 and 5-12-13 Pythagorean triples, which is why their moduli are whole numbers. Note that −3 + 4i and 3 + 4i share a modulus but differ in argument by 180° − 2 × 53.1301° = 73.7398°.

The powers of i repeat every four steps

i1 = i, i2 = −1, i3 = −i, i4 = 1, and then the cycle restarts. So to evaluate in for any whole n, take n modulo 4 and look up the answer: i27 has 27 mod 4 = 3, so i27 = −i. In polar terms this is obvious — i has modulus 1 and argument 90°, so raising it to the nth power leaves the modulus at 1 and turns the argument to 90n degrees, which returns to where it started after four quarter-turns. The modulo calculator handles the index reduction for large exponents.

Mistakes and conventions worth checking

  • Dropping the minus sign in ac − bd. The real part of a product subtracts. If your answer has the wrong sign on the real part, this is almost always why.
  • Entering 4i instead of 4. The imaginary-part field takes the coefficient only. For 3 − 5i, enter 3 and −5.
  • Using atan(b/a) instead of atan2(b, a). Plain arctangent cannot distinguish the first quadrant from the third, or the second from the fourth, because dividing b by a throws away both signs. It puts −1 + 2i at −63.43° instead of 116.57°.
  • Assuming −180° and +180° are interchangeable in output. They describe the same direction, but the principal-value convention picks +180°, and a program comparing arguments for equality will see them as different.
  • Expecting an order relation. There is no consistent way to say one complex number is greater than another. You can compare moduli, and this calculator gives you both, but 3 + 4i is neither larger nor smaller than 5i even though both have modulus 5.
  • Reading √(−4) as unambiguous. Both 2i and −2i square to −4. The principal square root convention picks 2i, but any formula that relies on √(zw) = √z·√w for complex arguments is unsafe.

Where complex arithmetic is actually used

Electrical engineering is the largest consumer. A steady sinusoidal voltage or current is represented as a phasor — a complex number whose modulus is the amplitude and whose argument is the phase — and the impedance of an inductor is jωL while a capacitor's is 1 ÷ (jωC). Engineers write j rather than i to avoid a clash with current, but the algebra is identical. Series and parallel combinations then reduce to exactly the multiplication and division on this page, which is why dividing by the conjugate is a working technique rather than a classroom exercise.

Control theory and signal processing use the same objects differently: the poles and zeros of a transfer function are complex numbers, and whether their real parts are negative decides whether a system is stable. The discrete Fourier transform is a sum of terms e−2πikn/N, each one a unit-modulus complex number, and the fast Fourier transform is an exploitation of the fact that those arguments repeat.

Pure mathematics uses complex numbers to make results uniform. Every degree-n polynomial has exactly n complex roots, so a cubic always has three and the awkward case-splitting for real coefficients disappears. Matrices with real entries can have complex eigenvalues, and when they do the pair is always a conjugate pair, which corresponds to a rotation in the plane. If you need vector geometry in three dimensions rather than two, the cross product is the tool — complex numbers only encode rotation in the plane, and the three-dimensional generalisation is quaternions rather than anything on this page.

Key terms

Imaginary unit i
The number defined by i² = −1. Engineers usually write j instead, to keep i for current.
Conjugate
z̄ = a − bi for z = a + bi. Multiplying a number by its conjugate always gives the real number a² + b², which is the modulus squared.
Modulus
|z| = √(a² + b²), the distance from the origin on the Argand plane. Also called the absolute value or magnitude.
Argument
arg z = atan2(b, a), the angle from the positive real axis. The principal value is taken in (−180°, 180°].
Argand diagram
The plane with the real part on the horizontal axis and the imaginary part on the vertical, on which every complex number is a point.
Phasor
A complex number standing for a sinusoid of known frequency, with the modulus giving amplitude and the argument giving phase.

Frequently asked questions

How do you divide two complex numbers by hand?

Multiply the top and bottom by the conjugate of the denominator, then divide through by the real number that results. For (3 + 4i) ÷ (1 − 2i), the conjugate is 1 + 2i; the denominator becomes 1² + 2² = 5, the numerator becomes (3 + 4i)(1 + 2i) = −5 + 10i, and dividing gives −1 + 2i. The reason it works is that (c + di)(c − di) = c² + d², which is always real and always positive unless the denominator is zero.

What is the modulus and argument of a complex number?

The modulus is its distance from the origin, √(a² + b²), and the argument is the angle its arrow makes with the positive real axis, atan2(b, a). For 3 + 4i the modulus is 5 and the argument is 53.1301°. Together they give the polar form 5 ∠ 53.1301°, which is equivalent to the rectangular form but far more convenient for multiplication, division and powers.

Why does multiplying complex numbers rotate them?

Because in polar form multiplication adds the arguments. Writing z1 = r1e1 and z2 = r2e2, the ordinary index law gives r1r2ei(θ12). So the moduli multiply and the angles add. Multiplying by i, whose modulus is 1 and argument 90°, therefore leaves the length alone and turns the arrow a quarter-turn anticlockwise.

Can I compare two complex numbers to see which is bigger?

No, not in any way consistent with the arithmetic. There is no ordering of the complex numbers under which the usual rules for inequalities survive multiplication. What you can compare is moduli, which are ordinary non-negative real numbers — and this calculator reports them for both the inputs and the result. Just note that equal moduli do not mean equal numbers: 3 + 4i, −3 + 4i and 5i all have modulus 5.

What is the difference between i and j notation?

Nothing mathematical. Electrical and electronic engineering writes j for the imaginary unit because i is already taken by instantaneous current, so an impedance appears as R + jX. Mathematics, physics and most software use i. Every formula on this page is unchanged by the substitution; if your textbook writes jωL, read it as iωL here.

Why does the calculator show no argument when the result is zero?

Because arg(0) is undefined. The argument is the direction of the arrow from the origin to the point, and zero sits at the origin, so there is no direction to report. Some software returns 0 for atan2(0, 0) as a convention, which is convenient but not correct, and it can hide a genuine bug. This page leaves the field blank and raises a note instead.

How do I raise a complex number to a power?

Convert to polar form and use De Moivre's theorem: (r ∠ θ)n = rn ∠ nθ. Raise the modulus to the power and multiply the argument by it. For (1 + i)8, the modulus is √2 and the argument 45°, so the answer has modulus (√2)8 = 16 and argument 360° — that is, 16 exactly. Repeated multiplication on this page reaches the same place one step at a time.

Is every real number also a complex number?

Yes. A real number is a complex number whose imaginary part is zero, so 7 is 7 + 0i with modulus 7 and argument 0°. Set both imaginary-part fields to zero here and every operation reduces to ordinary real arithmetic, including the division step, where the conjugate of a real number is itself and the denominator c² + d² collapses to c².

What does a conjugate pair mean for polynomial roots?

If a polynomial has only real coefficients and one of its roots is a + bi with b non-zero, then a − bi is also a root. That is why complex roots of real polynomials always come in pairs, and why a cubic with real coefficients always has at least one real root — three roots cannot split into conjugate pairs without one left over. The same fact explains why real matrices have complex eigenvalues only in conjugate pairs.

References

  • Visual Complex Analysis — Tristan Needham, Oxford University Press
  • Complex Variables and Applications, 9th ed. — James Ward Brown and Ruel V. Churchill, McGraw-Hill
  • NIST Digital Library of Mathematical Functions, §1.9 Complex NumbersNational Institute of Standards and Technology
  • IEEE Standard for Floating-Point Arithmetic, IEEE 754-2019 (atan2 and signed zero) — IEEE