Complex Number Calculator

Calculate complex arithmetic, principal powers and roots. Convert rectangular and polar forms, inspect calculation steps, and plot values on an Argand diagram.

Complex number calculator

A complex number is z = a + bi, where i² = −1. Enter two values as a + bi or r ∠ θ; results update as you type.

Complex number A

Examples: 3+4i, -2.5i, i, -i, 7, or 3e-4+2e-3i. Each component is limited to ±1e100; input is limited to 160 characters.

Rectangular value: 3 + 4i

Complex number B

Examples: 3+4i, -2.5i, i, -i, 7, or 3e-4+2e-3i. Each component is limited to ±1e100; input is limited to 160 characters.

Rectangular value: 1 − 2i

Examples:

Operations on A and B

Values use IEEE 754 floating-point arithmetic and are rounded to 12 significant digits. Complex powers use the principal branch.

A + B

4 + 2i
Show calculation steps

(3 + 4i) + (1 − 2i) = (3 + 1) + (4 + -2)i = 4 + 2i.

A − B

2 + 6i
Show calculation steps

(3 + 4i) − (1 − 2i) = (3 − 1) + (4 − -2)i = 2 + 6i.

A × B

11 − 2i
Show calculation steps

(3 + 4i)(1 − 2i) = (3×1 − 4×-2) + (3×-2 + 4×1)i = 11 − 2i; use i² = −1.

A ÷ B

-1 + 2i
Show calculation steps

Multiply the numerator and denominator by conjugate(B) = 1 + 2i, then evaluate with scale-safe arithmetic: A ÷ B = (A × conjugate(B)) / (B × conjugate(B)) = -1 + 2i.

A^B (principal value)

-21.0831396907 − 24.0002107094i
Show calculation steps

A^B = exp((u ln|A| − vθ) + i(v ln|A| + uθ)), where B = u + vi and θ = arg(A) = 0.927295218002 rad. Thus exp(3.46402834844 + i·-2.29158060687) = -21.0831396907 − 24.0002107094i on the principal branch.

Properties and powers of A

Modulus |A|
5
Principal argument
0.927295218002 rad · 53.1301023542°
Polar form
5 ∠ 0.927295218002 rad
Conjugate
3 − 4i
Reciprocal
0.12 − 0.16i
Square
-7 + 24i
Principal square root
2 + 1i
-117 + 44i
Show integer power identity

Write A = r ∠ θ with r = 5 and θ = 0.927295218002 rad. By De Moivre’s formula, A^n = r^n ∠ (nθ) = -117 + 44i. Negative integer powers use the reciprocal.

Root 1: 1.62893714592 + 0.520174502305i

Root 2: -1.26495290636 + 1.15061369838i

Root 3: -0.363984239564 − 1.67078820069i

Show nth-root identity

For z = r ∠ θ, the distinct 3th roots are w_k = r^(1/3) ∠ ((θ + 2πk)/3), k = 0, …, 2, where r = 5 and θ = 0.927295218002 rad.

Argand plot

Compare the real and imaginary coordinates of A, B, and one result.

ReImAB
  • A: 3 + 4i
  • B: 1 − 2i

The plot scales to the largest displayed coordinate; it shows relative position, not a fixed numeric grid.

Results updated for A = 3 + 4i and B = 1 − 2i.

What is a complex number?

A complex number has the form z = a + bi, where a is the real part, b is the imaginary part, and i² = −1. Its polar form is r ∠ θ, where r = |z| is the modulus and θ is an argument.

  • Calculate addition, subtraction, multiplication, division, and principal complex powers.
  • Convert between rectangular and polar inputs with degrees or radians.
  • Explore conjugates, reciprocal, modulus, argument, integer powers, square roots, and bounded nth roots.
  • Inspect calculation steps, copy results, download a text report, and compare values on an Argand plot.

How to use this calculator

  1. Choose rectangular or polar form for A and B.
  2. Enter each complex value; polar angles specify their unit.
  3. Read the results, expand a calculation to see its method, and choose a result for the plot.
  4. Copy the full report or download it as a text file.

Rounding and angle convention

Calculations use JavaScript floating-point numbers and display up to 12 significant digits, so results are approximations. The principal argument is shown in (−π, π] radians; the argument of zero is undefined. Rectangular components and polar magnitude range up to 1e100; polar angles are limited to ±1,000,000 in the selected unit. Integer powers are limited to ±1,000, and listed root degrees to 2–12. Results that overflow or require an unreliable power phase are labeled instead of rounded. Inputs are evaluated in your browser.

Mathematical references

Complex number calculator FAQ

Which input formats are supported?

Rectangular inputs include forms such as 3+4i, -2.5i, i, -i, 7, and scientific notation. Polar inputs use a non-negative magnitude, an angle, and an explicit degrees or radians selection.

What happens when I divide by zero?

Division by the complex number 0 + 0i is undefined. The calculator labels the quotient as undefined instead of showing NaN or infinity.

Why is the argument of zero undefined?

The argument is the direction from the origin to a point. Zero is at the origin and has no direction, so no angle is assigned.

What does principal complex power mean?

For A^B, this calculator uses the principal logarithm and the principal argument interval (−π, π]. Other logarithm branches can produce different values.

Infinio Tools
© 2026 Infinio Labs