🇺🇸 USC
Math & Conversion
🧮

Complex Number Calculator

Add, multiply, divide & convert to polar form with steps

Last updated September 6, 2026

Method: Exact algebraic identities for complex arithmetic: (a + bi)(c + di) = (ac − bd) + (ad + bc)i for products, multiplication by the conjugate for quotients, r = √(a² + b²) and θ = atan2(b, a) for polar form, and De Moivre's theorem for integer powers.

Included: Addition, subtraction, multiplication, division, integer powers from −20 to 20, modulus, principal argument in degrees or radians, conjugate, trigonometric and polar form, a polar-to-rectangular converter and a step-by-step solution.

Not included: Roots of complex numbers, complex logarithms and exponentials, symbolic (exact radical) output, matrices of complex numbers and multi-term expression parsing. Values are shown rounded for display.

Real part (a)
Imaginary part (b)
i

z₁ = 3 + 4i

Real part (c)
Imaginary part (d)
i

z₂ = 1 - 2i

🧮 Result

11 - 2i
(3 + 4i) × (1 - 2i)
Modulus |z|
11.1803
Argument θ
-10.3048°
Conjugate
11 + 2i
Polar form
11.1803-10.3048°
Trigonometric form
11.1803(cos -10.3048° + i sin -10.3048°)

📝 Step by step

  1. 1
    Expand with FOIL
    (3 + 4i)(1 - 2i) = 3·1 + 3·-2i + 4i·1 + 4i·-2i
  2. 2
    Apply i² = −1
    Real part: (3)(1) − (4)(-2) = 11
  3. 3
    Collect the i terms
    Imaginary part: (3)(-2) + (4)(1) = -2
  4. 4
    Result
    11 - 2i

📐 Modulus, argument and polar form

NumberModulusArgumentConjugate
z₁ = 3 + 4i553.1301°3 - 4i
z₂ = 1 - 2i2.236068-63.4349°1 + 2i

⚡ Powers of z₁ (De Moivre)

nz₁ⁿModulusArgument
13 + 4i553.1301°
2-7 + 24i25106.2602°
3-117 + 44i125159.3903°
4-527 - 336i625-147.4796°
5-237 - 3,116i3,125-94.3495°

🔄 Polar to rectangular

Modulus r
Angle θ (degrees)
a + bi = r cos θ + i r sin θ
3 + 4i

Exact arithmetic on rounded display values. Results are computed in full double precision and rounded for display, so a value shown as 0 may be a very small rounding remainder. The argument is the principal value in the range −180° to 180° (−π to π).

Complex number calculator: everything you need to know

A complex number calculator works with numbers of the form a + bi, where i is the imaginary unit and i² = −1. Enter two numbers and it adds, subtracts, multiplies or divides them, then reports the modulus, argument and polar form. Example: (3 + 4i) × (1 − 2i) = 11 − 2i, with modulus 11.1803.

Three neighboring tools cover related questions: the Quadratic Formula Calculator is the right page when a negative discriminant hands you complex roots and you want them solved from a, b and c, the Square Root Calculator handles ordinary real square roots, and the Scientific Calculator covers general real-number arithmetic with trig and logs. Use this page when the numbers themselves have an imaginary part and you need the arithmetic, the modulus and argument, or a conversion between rectangular and polar form.

The four arithmetic rules

All complex arithmetic follows from one substitution: wherever i² appears, write −1. That single rule produces the four standard formulas:

(a + bi) + (c + di) = (a + c) + (b + d)i
(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²)

Addition and subtraction are componentwise, exactly like adding vectors: real with real, imaginary with imaginary. Multiplication is the binomial expansion with i² replaced by −1. Division is the only one that needs a trick, and that trick is the conjugate.

Worked example: all four operations on 3 + 4i and 1 − 2i

Take z₁ = 3 + 4i and z₂ = 1 − 2i, the values the calculator loads by default. Working each operation by hand:

  • Sum: (3 + 1) + (4 − 2)i = 4 + 2i.
  • Difference: (3 − 1) + (4 + 2)i = 2 + 6i.
  • Product: real part 3·1 − 4·(−2) = 3 + 8 = 11; imaginary part 3·(−2) + 4·1 = −6 + 4 = −2. So the product is 11 − 2i.
  • Quotient: multiply top and bottom by the conjugate 1 + 2i. The numerator becomes (3 + 4i)(1 + 2i) = −5 + 10i and the denominator becomes 1² + 2² = 5, so the quotient is −1 + 2i.

Now check the product and the quotient against the polar rules. The modulus of z₁ is √(9 + 16) = 5 and its argument is 53.13°; the modulus of z₂ is √(1 + 4) = 2.2361 and its argument is −63.4349°. Multiplying should multiply the moduli and add the angles: 5 × 2.2361 = 11.1803 and 53.1301° − 63.4349° = −10.3048°, which is exactly the polar form of 11 − 2i. Dividing should divide the moduli and subtract the angles: 5 ÷ 2.2361 = 2.2361 and 53.1301° + 63.4349° = 116.5651°, which is exactly the polar form of −1 + 2i. The two routes always agree, and that agreement is the fastest way to catch a sign error.

Second worked example: division step by step

Divide 7 + 2i by 3 − 4i. The conjugate of the divisor is 3 + 4i, so multiply both parts of the fraction by it. The numerator becomes (7 + 2i)(3 + 4i) = 21 + 28i + 6i + 8i² = 21 + 34i − 8 = 13 + 34i. The denominator becomes 3² + 4² = 25, a plain real number. Dividing each part gives 13/25 + (34/25)i = 0.52 + 1.36i. Check it in polar form: |7 + 2i| = √53 = 7.2801 and |3 − 4i| = 5, so the quotient should have modulus 7.2801 ÷ 5 = 1.456, and indeed √(0.52² + 1.36²) = 1.456. The arguments behave the same way: 15.9454° − (−53.1301°) = 69.0755°, which matches the argument of 0.52 + 1.36i.

Modulus, argument and polar form

Plot a + bi as the point (a, b) in the complex plane and two quantities describe it completely: how far it is from the origin, and which direction it points. Those are the modulus and the argument:

r = |z| = √(a² + b²)    θ = atan2(b, a)    z = r(cos θ + i sin θ)

The modulus is just the Pythagorean theorem applied to the real and imaginary parts. The argument uses the two-argument arctangent so the quadrant comes out right: plain arctan(b/a) cannot tell 1 + i from −1 − i, because both give a ratio of 1. This calculator reports the principal argument between −180° and 180°, which is the standard convention. Add or subtract 360° and you get the same point, so an angle of 225° and an angle of −135° describe the identical number.

Rectangular to polar conversion table

Ten common values, converted with the formulas above. Angles are shown in degrees and in radians, since textbooks use both:

Rectangular Modulus r Argument (deg) Argument (rad)
1 + i1.414245.00°0.7854
3 + 4i5.000053.13°0.9273
−1 + i1.4142135.00°2.3562
−2 − 2i2.8284−135.00°−2.3562
5i5.000090.00°1.5708
55.00000.00°0.0000
−33.0000180.00°3.1416
−4i4.0000−90.00°−1.5708
1 − i1.4142−45.00°−0.7854
−4 + 3i5.0000143.13°2.4981

Notice how the four numbers with modulus 5 sit on the same circle and differ only by direction, and how a purely real negative number lands at exactly 180°. Going the other way is just as mechanical: 8∠120° becomes 8 cos 120° + i·8 sin 120° = −4 + 6.9282i.

Powers and De Moivre's theorem

Raising a complex number to a power by repeated multiplication gets ugly fast. Polar form makes it trivial, because multiplying two numbers multiplies their moduli and adds their angles. Apply that n times and you get De Moivre's theorem:

zn = rn(cos nθ + i sin nθ)

The table below tracks 1 + i, which has modulus 1.4142 and argument 45°, through the first eight powers. Each step multiplies the modulus by 1.4142 and rotates the point another 45°, so after eight steps it has gone all the way around and lands on the positive real axis:

n (1 + i)n Modulus Argument
11 + i1.414245.00°
22i2.000090.00°
3−2 + 2i2.8284135.00°
4−44.0000180.00°
5−4 − 4i5.6569−135.00°
6−8i8.0000−90.00°
78 − 8i11.3137−45.00°
81616.00000.00°

The same theorem explains the powers of 3 + 4i, whose modulus is 5: the moduli of the successive powers are 25, 125, 625 and 3,125, and the rectangular values are −7 + 24i, −117 + 44i, −527 − 336i and −237 − 3,116i. Notice that the modulus grows as a plain geometric sequence while only the angle does anything interesting.

The powers of i cycle every four steps

Because i sits at modulus 1 and angle 90°, multiplying by i is a quarter turn. Four quarter turns bring you back to the start, which is why the powers of i repeat with period four:

Exponent Value Angle Remainder of n ÷ 4
i0, i4, i810
i1, i5, i9i90°1
i2, i6, i10−1180°2
i3, i7, i11−i−90°3

So i27 has remainder 3 and equals −i, and i100 has remainder 0 and equals 1. No calculator needed once you see the pattern.

How to use this complex number calculator

  1. Enter the first number: type the real part in the left box and the imaginary part in the right box. For 3 + 4i that is 3 and 4; for −2i it is 0 and −2.
  2. Pick the operation: the five choice cards cover add, subtract, multiply, divide and integer power. The layout changes to match, so the power option asks for an exponent instead of a second number.
  3. Enter the second number (or the exponent). For powers, the shortcut buttons jump straight to the common cases 2, 3, 4, 5 and −1, where −1 is the reciprocal.
  4. Choose the angle unit: degrees or radians. This affects every angle shown on the page, including the polar-to-rectangular converter at the bottom.
  5. Read the result card: the headline is the answer in rectangular form, and the tiles underneath give its modulus, argument, conjugate, polar form and trigonometric form.
  6. Follow the steps: the numbered breakdown shows the algebra as you would write it on paper, which is what you need if the work has to be shown, not just the answer.

Two extra tables sit below the steps: one listing the modulus, argument and conjugate of both inputs, and one running the first five powers of the first number so you can see De Moivre's theorem in action on your own values.

Who this calculator is for

  • Algebra 2 and precalculus students checking homework on complex arithmetic, conjugates and polar form.
  • Engineering undergraduates converting between rectangular and phasor notation for AC circuits.
  • Electrical and RF engineers who need a quick impedance or reflection-coefficient calculation without opening a full math package.
  • Signal-processing and controls students working with poles, zeros and transfer functions.
  • Anyone who hit a negative discriminant in a quadratic and wants to verify the pair of complex roots.
  • Teachers and tutors who need worked examples with visible intermediate steps.

Key terms explained

  • Imaginary unit (i): the number defined by i² = −1. Engineers usually write j instead, because i is already taken by current.
  • Real part and imaginary part: in a + bi, a is the real part and b is the imaginary part. Both are ordinary real numbers; the i is a label, not part of b.
  • Purely imaginary: a number whose real part is zero, such as 5i. It sits on the vertical axis of the complex plane.
  • Conjugate: a − bi, the mirror image of a + bi across the real axis. A number times its conjugate is always the real value a² + b².
  • Modulus: the distance from the origin, √(a² + b²). Also called the absolute value or magnitude.
  • Argument: the direction angle measured from the positive real axis, counterclockwise positive.
  • Principal value: the argument reduced to the range −180° to 180°, which is what this calculator reports.
  • Polar form: r(cos θ + i sin θ), often abbreviated r∠θ. Engineers call this phasor notation.
  • Complex plane: the two-dimensional picture with the real part on the horizontal axis and the imaginary part on the vertical axis.

What changes the result the most

  • The sign of the imaginary part: a single flipped sign turns a number into its conjugate and mirrors the argument, so a stray minus is the most common source of a wrong answer.
  • Which number is the divisor: division is not commutative. Swapping the two inputs inverts the modulus and negates the argument.
  • The quadrant: −1 − i and 1 + i have the same modulus but arguments 180° apart, and only the two-argument arctangent tells them apart.
  • The exponent: the modulus grows geometrically with n, so a modest base like 3 + 4i reaches a modulus of 3,125 by the fifth power.
  • The angle unit: 45 degrees and 45 radians are wildly different directions. Radians are the default in most software; degrees are common in circuit work.

Tips for working with complex numbers

  • Choose the form that fits the job. Add and subtract in rectangular form; multiply, divide and raise to powers in polar form. Converting first often saves more work than it costs.
  • Check with the modulus. Because |z₁z₂| = |z₁| × |z₂| and |z₁/z₂| = |z₁| ÷ |z₂|, one quick multiplication verifies an entire product or quotient.
  • Rationalize before you simplify. An answer is not in standard form while an i remains in the denominator. Multiply by the conjugate first, then reduce.
  • Reduce powers of i early. Replace i27 with −i at the start of a problem rather than carrying the exponent through every line.
  • Sketch the point. Even a rough plot of (a, b) tells you which quadrant the argument belongs in and catches a sign error in seconds.
  • Watch the units in engineering work. Phasor magnitudes may be peak or RMS values depending on the convention in use, and the two differ by a factor of √2.

Where complex numbers show up in practice

Complex numbers are the natural language for anything that rotates or oscillates, because multiplying by a unit-modulus complex number is exactly a rotation. In AC circuit analysis, impedance is written Z = R + jX, so a resistance of 30 ohms in series with a net reactance of 40 ohms gives an impedance of 30 + 40j, a magnitude of 50 ohms and a phase angle of 53.13° between voltage and current. Ohm's law then works unchanged, with complex numbers standing in for real ones. The same structure runs through the Fourier transform in signal processing, pole and zero locations in control systems, the reflection coefficient in RF work, and the wavefunctions of quantum mechanics. In every one of these, the modulus carries the size of the effect and the argument carries the phase, which is why this calculator always shows both.

Limitations and assumptions

  • Results are computed in double-precision floating point and rounded for display, so a value shown as 0 can be a tiny rounding remainder rather than an exact zero.
  • Output is decimal, not symbolic: an answer of √2/2 appears as 0.7071 rather than an exact radical.
  • The argument is always the principal value between −180° and 180°; if your textbook wants an angle in the range 0° to 360°, add 360° to any negative result.
  • Exponents are restricted to whole numbers from −20 to 20. Fractional exponents, complex roots, complex logarithms and complex exponentials are outside the scope of this tool.
  • The calculator handles two numbers and one operation at a time. A longer expression has to be evaluated one step at a time, feeding each result back in as the next input.
  • It does not parse typed expressions such as "(3+4i)*(1-2i)"; the real and imaginary parts go in separate boxes.

How it compares to related calculators

This page answers "what is the result of this complex-number operation, and what is it in polar form?" If your question is different, a sister tool fits better:

Sources

Every figure on this page comes from deterministic mathematics, so no external data source applies. Specifically:

  • The four arithmetic identities, the conjugate rule, the modulus √(a² + b²), the argument atan2(b, a) and De Moivre's theorem are exact definitions and theorems of complex algebra, not measured values.
  • Every number in the worked examples and the tables above was computed directly from those identities and verified independently.
  • The degree and radian angle measures follow the International System of Units, in which the radian is the coherent SI unit for plane angle and the degree is the accepted non-SI unit equal to π/180 rad, as documented in NIST Special Publication 811, Guide for the Use of the International System of Units.
  • The engineering convention of writing the imaginary unit as j, and of expressing AC impedance as Z = R + jX, is standard practice in electrical engineering; the ohm values used above are illustrative, not measured.

⚠️ Common mistakes & edge cases

Forgetting that i² = −1

The most common multiplication error is expanding the brackets correctly and then leaving the i² term alone. In (3 + 4i)(1 − 2i), the term 4i × (−2i) equals −8i², which is +8, not −8. Miss that sign flip and you get 3 − 2i instead of 11 − 2i.

Leaving an i in the denominator

A quotient is not finished until the denominator is real. Always multiply the top and bottom by the conjugate of the denominator, which turns c + di into c² + d². Only then can you split the fraction into a real part and an imaginary part.

Using arctan(b/a) instead of atan2(b, a)

Plain arctangent cannot see the quadrant. For −1 − i the ratio b/a is 1, so a calculator returns 45° when the true argument is −135°. If you compute the angle by hand, always check which quadrant the point lies in and add or subtract 180° when the real part is negative.

Mixing degrees and radians

An angle of 1.5708 is 90° in radians but almost due east in degrees. Set the angle unit before you read any argument, and when you convert polar to rectangular by hand, make sure your device's trig mode matches the unit you wrote down.

Adding moduli instead of numbers

Moduli multiply and divide cleanly, but they do not add. |z₁ + z₂| is generally less than |z₁| + |z₂| because the two arrows point in different directions: |3 + 4i| + |1 − 2i| = 7.2361, while the actual |4 + 2i| is only 4.4721.

Treating −135° and 225° as different answers

They are the same direction. Arguments are only defined up to a full turn, so any two angles that differ by 360° describe the identical complex number. This calculator always reports the principal value between −180° and 180°.

Note: Results are shown rounded. For exact symbolic answers involving radicals, keep the algebra by hand and use this calculator to check the decimal value.

❓ Frequently asked questions

What is a complex number?

A complex number has the form a + bi, where a is the real part, b is the imaginary part, and i is the imaginary unit defined by i² = −1. Every real number is also a complex number with b = 0, and a number like 5i with a = 0 is called purely imaginary. Complex numbers were invented so that every polynomial equation has a solution, including ones like x² + 1 = 0 that have no real answer.

How do you multiply two complex numbers?

Multiply them like two binomials (FOIL), then replace i² with −1 and collect terms. The general rule is (a + bi)(c + di) = (ac − bd) + (ad + bc)i. For example, (3 + 4i)(1 − 2i) gives a real part of 3·1 − 4·(−2) = 11 and an imaginary part of 3·(−2) + 4·1 = −2, so the product is 11 − 2i.

How do you divide complex numbers?

Multiply the numerator and the denominator by the conjugate of the denominator. That turns the denominator into the real number c² + d², after which you divide each part separately: (a + bi) / (c + di) = ((ac + bd) + (bc − ad)i) / (c² + d²). For example, (3 + 4i) / (1 − 2i) becomes (3 + 4i)(1 + 2i) / 5 = (−5 + 10i) / 5 = −1 + 2i.

What is the modulus of a complex number?

The modulus, written |z|, is the distance from the origin to the point (a, b) in the complex plane: |z| = √(a² + b²). It is the Pythagorean theorem applied to the real and imaginary parts. For z = 3 + 4i the modulus is √(9 + 16) = 5. The modulus is always a non-negative real number and it is multiplicative, meaning |z₁z₂| = |z₁| × |z₂|.

What is the argument of a complex number?

The argument is the angle θ between the positive real axis and the line from the origin to the point, measured counterclockwise. It is found with θ = atan2(b, a), which picks the correct quadrant automatically. This calculator reports the principal argument in the range −180° to 180° (−π to π radians). For 3 + 4i the argument is about 53.13°, or 0.9273 radians.

What is polar form and when should I use it?

Polar form writes a complex number as r(cos θ + i sin θ), often shortened to r∠θ, where r is the modulus and θ is the argument. Rectangular form a + bi is easier for addition and subtraction; polar form is far easier for multiplication, division and powers, because you simply multiply or divide the moduli and add or subtract the angles.

How do I convert between rectangular and polar form?

Going from rectangular to polar: r = √(a² + b²) and θ = atan2(b, a). Going back from polar to rectangular: a = r cos θ and b = r sin θ. For example, 8∠120° converts to 8 cos 120° + i·8 sin 120° = −4 + 6.9282i. The polar-to-rectangular box in this calculator does the second direction for you in whichever angle unit you selected.

What is a complex conjugate and why is it useful?

The conjugate of a + bi is a − bi: the same number with the sign of the imaginary part flipped. Its usefulness comes from the fact that a number times its conjugate is always real, since (a + bi)(a − bi) = a² + b². That is exactly what makes division work, because multiplying by the conjugate clears i out of the denominator. For 3 + 4i the conjugate is 3 − 4i and the product is 25.

What is De Moivre's theorem?

De Moivre's theorem says that raising a complex number to an integer power n raises the modulus to the power n and multiplies the argument by n: zⁿ = rⁿ(cos nθ + i sin nθ). It turns a long chain of multiplications into one exponent and one angle. For z = 1 + i with r = 1.4142 and θ = 45°, z⁸ has modulus 1.4142⁸ = 16 and angle 8 × 45° = 360°, which lands exactly on 16.

What are the powers of i?

They cycle through four values: i¹ = i, i² = −1, i³ = −i, i⁴ = 1, and then the pattern repeats. To evaluate any power of i, divide the exponent by 4 and use the remainder: i²⁷ has remainder 3, so i²⁷ = −i. This four-step cycle is a rotation by 90° each time you multiply by i, which is the clearest way to see why i is a quarter turn in the complex plane.

Can this calculator handle negative and zero exponents?

Yes. A zero exponent gives 1 for any non-zero base, and a negative exponent gives the reciprocal: z⁻ⁿ = 1 / zⁿ, computed by taking the conjugate over the squared modulus. The exponent is limited to whole numbers from −20 to 20 so the results stay inside the range where double-precision arithmetic is still exact for typical integer inputs.

Why can't I divide by 0 + 0i?

Division by zero is undefined for complex numbers just as it is for real numbers. In the division formula the denominator becomes c² + d², and that expression is zero only when both c and d are zero. The calculator detects this case and shows a message instead of an infinite or NaN result.

Where are complex numbers actually used?

They are the standard tool for anything that rotates or oscillates. Electrical engineers write impedance as Z = R + jX so that Ohm's law works for AC circuits; a 30 ohm resistance with 40 ohm net reactance gives |Z| = 50 ohm at a 53.13° phase angle. Signal processing uses them for the Fourier transform, control theory for pole locations, and quantum mechanics for wavefunctions. In engineering the imaginary unit is usually written j instead of i to avoid a clash with current.

Does the order matter when I multiply or divide?

Multiplication is commutative, so z₁z₂ and z₂z₁ give the same answer. Division is not: z₁ / z₂ and z₂ / z₁ are reciprocals of each other, so swapping the inputs inverts the modulus and flips the sign of the argument. With 3 + 4i and 1 − 2i, one order gives −1 + 2i and the other gives −0.2 − 0.4i.

Is this complex number calculator free?

Yes. It is completely free, with no sign-up and no limit on how many calculations you can run. Every operation happens in your browser, so nothing you type is sent anywhere, and you can change the numbers as often as you like to check homework or to sanity-check an engineering calculation.

💡 Good to know

Multiplying by i is a 90° rotation

Every complex multiplication is a stretch plus a turn. Because i has modulus 1 and argument 90°, multiplying by i leaves the size alone and rotates the point a quarter turn counterclockwise. That is the whole reason complex numbers describe waves and rotations so cleanly.

Complex roots always come in conjugate pairs

If a polynomial has only real coefficients and one root is 2 + 3i, then 2 − 3i is a root too. That is why a quadratic with a negative discriminant produces two mirror-image answers rather than one lone complex value.

Engineers write j, mathematicians write i

They mean the same thing. In electrical engineering the letter i is already used for current, so the imaginary unit is written j and impedance appears as R + jX. If you are reading a circuits textbook, just substitute j for i everywhere on this page.

Related Calculators