A complex number has the form z = a + bi, where i = √−1, so i² = −1. The number a is the real part and b is the imaginary part. Type two complex numbers in any form, choose an operation, and see the answer in rectangular, exponential and polar form, drawn on the complex plane.
No real number squares to −1, so mathematicians added one: the imaginary unit i, with i² = −1. Every complex number is a real part plus a multiple of i: z = a + bi. We write Re(z) = a and Im(z) = b. For z = 3 + 4i, the real part is 3 and the imaginary part is 4.
Powers of i repeat every four steps: i¹ = i, i² = −1, i³ = −i, i⁴ = 1, then i⁵ = i again.
Examples: 5 is real (b = 0); −2i is purely imaginary (a = 0); −3 + 2i has both parts; 0 is both real and imaginary. Every real number is also a complex number: −4 is real (and complex), while √(−4) = 2i is purely imaginary.
The complex plane: z = a + bi is the point (a, b). The horizontal axis is the real axis and the vertical axis is the imaginary axis. Two complex numbers are equal only when both their real parts and their imaginary parts are equal.
3+4i, 3+4j, 5∠53.13,
2e^(iπ/3), 5(cos 30° + i sin 30°), (1+i)/(1-i) or sqrt(-4).
In exponential and polar form a plain angle uses the unit chosen above; angles with π are radians.Rectangular: 3 + 4i (engineers can use j). Exponential: 2e^(iπ/3) or 2e^2i.
Polar: 5∠53.13 or 5(cos 30° + i sin 30°). Click the blue ⓘ next to a box for a quick guide. You can also type expressions such as (1+2i)*(3-i) or sqrt(-4).
Addition and subtraction are easiest in rectangular form: add the real parts and the imaginary parts. Multiplication and division are easiest in polar form: multiply (or divide) the moduli and add (or subtract) the angles.
arctan(b/a) cannot tell 1 + i from −1 − i, because b/a is the same. atan2(b, a) looks at the signs of both parts and always gives the angle in the correct quadrant.
By default the principal argument is in (−180°, 180°], that is (−π, π]. Many textbooks use 0° to 360° instead; switch the range above. Both describe the same number, because adding 360° (2π) does not change a complex number.
The number 0 sits at the origin, so there is no direction to measure. Its modulus is 0 and its argument is undefined.
Complex Equation Solver · Quadratic Equation Explorer · Interactive Unit Circle · Matrix Solver · 2D Grapher