Complex Number Calculator
Complex number calculator with steps. Add, subtract, multiply, divide, raise to powers, find all n-th roots, modulus, argument and polar form.
Accepted: 3+4i, 4i+3, -2i, i, 5, 2.5-0.5j (rectangular), 5∠53.13° or 2 cis 45 (polar, angle in the chosen unit, or with ° or π), 2e^(iπ/2) (exponential).
Result
–
- Rectangular form a + bi
- –
- Polar form r∠θ
- –
- Exponential form r·e^(iθ), θ in radians
- –
- Modulus |z|
- –
- Argument θ
- –
- Conjugate
- –
All roots
Step by step
How to use the complex number calculator
- Type a number in Complex number z. You can write it in rectangular form (3+4i, 4i+3, -2i, i, 5), in polar form (5∠53.13° or 2 cis 45) or in exponential form (2e^(iπ/2)). Engineers can write j instead of i.
- Choose the Operation: Add: z + w, Subtract: z − w, Multiply: z × w, Divide: z ÷ w, Power: zⁿ, n-th roots of z, or Modulus, argument, conjugate and forms of z.
- Fill in the second field. Its label follows the operation: Second number w for the four basic operations, Exponent n (real or complex) for powers and Root degree n (1 to 100) for roots. It is hidden when you only want the properties of z.
- Pick the Angle unit, Degrees or Radians. It is used for polar input without a unit symbol and for every argument in the results.
- The result updates as you type; Calculate does the same and shows a message if an entry cannot be read. Copy copies the result, or the whole list of roots.
Under the result, you get the rectangular, polar and exponential forms, the modulus, the argument and the conjugate, followed by a Step by step section that repeats the calculation with your numbers.
The rules behind each operation
A complex number z = a + bi has a real part a and an imaginary part b, where i² = −1.
- Addition and subtraction work part by part: (a + bi) ± (c + di) = (a ± c) + (b ± d)i.
- Multiplication expands the brackets and replaces i² by −1: (a + bi)(c + di) = (ac − bd) + (ad + bc)i. For example (3 + 4i)(1 − 2i) = 11 − 2i.
- Division multiplies the top and the bottom by the conjugate of the divisor, which makes the denominator real: (a + bi) / (c + di) = (a + bi)(c − di) / (c² + d²). So (3 + 4i) / (1 − 2i) = (−5 + 10i) / 5 = −1 + 2i.
- Modulus and argument: |z| = √(a² + b²) is the distance from the origin, and the argument θ = atan2(b, a) is the angle with the positive real axis. The tool gives the principal argument, between −180° and 180° (−π and π). The argument of 0 is undefined.
- Conjugate: z̄ = a − bi, the mirror image across the real axis. z × z̄ = |z|².
Polar and exponential forms
Any non-zero complex number can be written z = r(cos θ + i sin θ) = r∠θ = r·e^(iθ), with r = |z|. Going back, a = r cos θ and b = r sin θ. The exponential form always uses radians, because Euler’s formula e^(iθ) = cos θ + i sin θ is only true with θ in radians. For polar input, you can force the unit with ° or rad, or use π: 2∠π/2 is 2i whatever the selected unit.
Powers and roots
For a whole exponent, De Moivre’s formula gives zⁿ = rⁿ∠(nθ): raise the modulus to the power and multiply the angle. The tool also computes the result by repeated multiplication, so (1 + i)⁸ comes out as exactly 16. For a fractional or complex exponent, it uses the principal branch z^w = e^(w·Log z), with Log z = ln r + iθ. That is how i^i ≈ 0.2079, a real number.
A non-zero number has exactly n distinct n-th roots. They share the modulus ⁿ√r and their angles are (θ + k × 360°) / n for k = 0 … n − 1, so they sit evenly on a circle. The cube roots of −8 are 1 + 1.732i, −2 and 1 − 1.732i. The first one (k = 0) is the principal root.
Frequently asked questions
How do I type the imaginary unit?
Use i or j, before or after the number: 4i, i4, 4*i and 4j all mean the same thing. A lone i is 1i and −i is −1i. Spaces are allowed around + and −, but “3 4i” is rejected because the operator is missing.
Why does the result show 0 instead of a tiny number?
Floating-point arithmetic leaves traces like 6.1 × 10⁻¹⁷ when computing cos 90°. The tool removes parts that are negligible next to the size of the number and shows up to 10 significant digits, so 5∠90° displays as 5i.
What range does the argument use?
The principal argument, in (−180°, 180°] or (−π, π]. A number on the negative real axis, such as −1, has argument 180° (π). Other ranges, like 0° to 360°, differ only by a full turn.
Why is (−8)^(1/3) not equal to −2?
With a non-integer exponent, the tool returns the principal value e^(w·Log z), which for −8 is 1 + 1.732i. The real cube root −2 is one of the three roots listed by n-th roots of z with n = 3.
What is 0 to the power 0?
The tool follows the usual convention 0⁰ = 1. A negative power of zero, or a complex power whose real part is not positive, is reported as undefined.
How precise are the results?
Computations use double-precision numbers (about 15–16 significant digits) and are displayed with 10. That is more than enough for coursework and electrical engineering, but it is not exact symbolic algebra: √3 is shown as 1.732050808.
Related tools
- Scientific Calculator Free online scientific calculator with trigonometry in degrees or radians, logarithms, powers, roots, factorials, keyboard input and a calculation history.
- Quadratic Equation Solver Solve any quadratic equation ax² + bx + c = 0 with the discriminant, exact roots in radical form, complex roots, vertex form, factored form and a graph.
- Exponent and Root Calculator Calculate powers with negative or fractional exponents, square, cube and nth roots, and simplify radicals exactly (√72 = 6√2), with the steps shown.
- Matrix Calculator Free matrix calculator up to 6×6 with exact fractions. Find the determinant, inverse, rank, RREF, powers, eigenvalues and products, with every step shown.