3+4i, -2i or 5, with i or j for the imaginary unit, then pick add, subtract, multiply, divide, power, conjugate, modulus, argument or square root. Each answer comes in rectangular, polar and exponential form, with the working and an Argand diagram. For i inside longer expressions, set the scientific calculator to complex mode, as shown below.Try the worked examples in one click: add, subtract, multiply, divide, i to the 50th power and the square roots of −16. Jump to: powers of i, complex mode, polar form or common mistakes.
Imaginary numbers versus complex numbers
The imaginary unit i is the number whose square is −1, so i² = −1 and √−1 = i. An imaginary number is a real multiple of i, such as 4i or −0.5i. A complex number adds a real part to it: a + bi, where a is the real part and b is the imaginary part, so 3 + 4i has real part 3 and imaginary part 4. Every real number (b = 0) and every imaginary number (a = 0) is therefore also a complex number, which is why an imaginary numbers calculator and a complex number calculator are the same tool.
A complex number is a point in the complex plane, also called the Argand diagram: the real part is measured along the horizontal axis and the imaginary part up the vertical axis. Its distance from 0 is the modulus |z|, its angle from the positive real axis is the argument θ, and reflecting it in the real axis gives the conjugate.
Add, subtract, multiply and divide imaginary numbers
Add and subtract by combining the real parts and the imaginary parts separately. Multiply like two brackets in algebra, then replace i² with −1. Divide by multiplying the top and bottom by the conjugate of the bottom, which turns the denominator into a real number. The table uses z₁ = 3 + 4i and z₂ = 1 − 2i, and each answer opens in the calculator.
| Operation | Working | Answer |
|---|---|---|
| Add | (3 + 1) + (4 − 2)i | 4 + 2i |
| Subtract | (3 − 1) + (4 + 2)i | 2 + 6i |
| Multiply | 3 − 6i + 4i − 8i² = 3 − 2i + 8 | 11 − 2i |
| Divide | (3 + 4i)(1 + 2i) ÷ (1 + 4) = (−5 + 10i) ÷ 5 | −1 + 2i |
Multiply the conjugate into the top: (3 + 4i)(1 + 2i) = 3 + 6i + 4i + 8i²
The conjugate of 1 − 2i is 1 + 2i. Since i² = −1, the top is 3 + 10i − 8 = −5 + 10i.
Multiply the conjugate into the bottom: (1 − 2i)(1 + 2i) = 1 + 4 = 5
A number times its conjugate is always real: a² + b².
Divide each part by 5: −5/5 + (10/5)i = −1 + 2i
Check by multiplying back: (−1 + 2i)(1 − 2i) = −1 + 2i + 2i − 4i² = 3 + 4i. The guide How to divide complex numbers covers special cases and polar division.
Powers of i: the four-step cycle
Powers of i repeat every four steps: i, −1, −i, 1, then i again. To simplify iⁿ for a whole number n, divide n by 4 and keep only the remainder. For i⁵⁰, 50 = 4 × 12 + 2, so i⁵⁰ = i² = −1. For i¹⁰¹, the remainder is 1, so i¹⁰¹ = i. Negative powers follow the same cycle: i⁻¹ = 1/i = −i.
| Power | Remainder when n ÷ 4 | Value |
|---|---|---|
| i⁰, i⁴, i⁸ | 0 | 1 |
| i¹, i⁵, i⁹ | 1 | i |
| i², i⁶, i¹⁰ | 2 | −1 |
| i³, i⁷, i¹¹ | 3 | −i |
| i⁵⁰ | 2 | −1 |
| i⁻¹ | 3 (−1 = 4 × (−1) + 3) | −i |
A complex power is different again: i to the power i is the real number e^(−π/2) ≈ 0.2078795764 (run i^i).
Square roots of negative numbers
For a positive number a, √−a = i√a. So √−16 = 4i, √−25 = 5i and √−8 = 2√2 i ≈ 2.828427125i. Every nonzero number has two square roots, and the calculator lists both: the square roots of −16 are 4i and −4i. The rule √a × √b = √(ab) fails when both numbers are negative: √−4 × √−9 = 2i × 3i = 6i² = −6, not √36 = 6. Take each root separately before you multiply.
Turning on complex mode
To use i inside the scientific calculator, open Settings from the toolbar and set Number mode to Complex; the status bar then shows CPLX. In real mode the calculator refuses complex operations with a clear message instead of guessing: typing i reports that i is the imaginary unit and that you need complex mode, and sqrt(-4) or ln(-1) suggest switching. Switch back to Real when you no longer need complex results, so that an accidental square root of a negative number is reported rather than turned into an imaginary answer.
Entering complex numbers
Type i after the imaginary part, as you would write it: 3 + 4i, 2 - 5i, -i. On the keypad, i is the second function of the Ans key. Implicit multiplication works, so 4i, 2πi and (3 + 4i)(1 - 2i) need no × sign. Every result is written in rectangular form a + bi, with its polar form, modulus and angle in small type above it.
| Type | Result |
|---|---|
(3 + 4i)(1 - 2i) | 11 − 2i |
(3 + 4i)/(1 - 2i) | −1 + 2i |
sqrt(-16) | 4i |
i^2 | −1 |
i^50 | −1 |
(1 + i)^8 | 16 |
e^(iπ) | −1 |
ln(-1) | 3.141592654i (that is, πi) |
i^i | 0.2078795764 (a real number, e^(−π/2)) |
Modulus, argument and conjugate
| Function | Gives | Example |
|---|---|---|
abs(z) or |z| | Modulus (distance from 0) | abs(3 + 4i) = 5 |
arg(z) | Argument (angle) in the current angle unit | arg(1 + i) = 45 in degrees, 0.7853981634 in radians |
conj(z) | Complex conjugate | conj(2 - 5i) = 2 + 5i |
re(z) and im(z) | Real and imaginary parts | re(3 + 4i) = 3, im(3 + 4i) = 4 |
The modulus of a + bi is √(a² + b²), so |3 + 4i| = √(9 + 16) = 5, the length drawn in the diagram above. The argument is the principal value, between −180° and 180° in degree mode (−π to π in radians). The argument of 0 is undefined and gives an error.
Rectangular and polar form
Every complex result also shows the polar form r∠θ, with θ in the current angle unit. For 3 + 4i in degree mode, r = 5 and θ = 53.13010235°; for -1 + i, r = 1.414213562 and θ = 135°.
To enter a number in polar form, use r(cos θ + i sin θ), which follows the current angle unit: in degree mode, 2(cos(60) + i sin(60)) gives 1 + 1.732050808i. The exponential form r·e^(iθ) is also accepted, but the exponent is not an angle function, so θ must be in radians: 2e^(iπ/3) gives the same 1 + 1.732050808i in any mode. In radian mode a degree sign converts for you, so 2e^(i·60°) works there too. The complex number calculator also takes polar input directly as r<θ in degrees, such as 5<53.13.
Functions that accept complex numbers
Powers and roots (^, sqrt, cbrt, root), exp, ln and the log functions, all six trigonometric functions and asin, acos, atan, and sinh, cosh, tanh work with complex arguments, together with abs, arg, conj, re and im. Functions that only make sense for real numbers, such as floor, mod, gamma, the statistics functions and the distributions, still work with real arguments in complex mode; given a complex argument, they report that they are not defined for complex arguments.
Use radians for complex trigonometry
Trigonometric functions read their argument in the current angle unit, even when it is complex. Complex trigonometry is normally done in radians, where sin(2 + i) = 1.403119251 − 0.489056259i, so switch the angle unit to radians first.
Example: complex roots of a quadratic
The equation x² + 2x + 5 = 0 has a negative discriminant, 2² − 4 × 5 = −16. In complex mode the quadratic formula works directly: (-2 + sqrt(2^2 - 4×5))/2 gives −1 + 2i and (-2 - sqrt(2^2 - 4×5))/2 gives −1 − 2i, a conjugate pair. The quadratic equation calculator solves the same equation with every step shown.
Imaginary numbers on a Casio or TI calculator
Handheld calculators need a complex mode too. On a Casio fx-991ES PLUS, press MODE then 2 to enter CMPLX mode, where the ENG key types i and the CMPLX menu (SHIFT 2) holds arg, Conjg and the ▶r∠θ and ▶a+bi conversions; like this site, it gives angles between −180° and 180°. On a TI-84 Plus, press MODE and choose a+bi (or re^θi for polar answers); i is 2nd then the decimal point key. All three give (3 + 4i)(1 − 2i) = 11 − 2i. Menus differ between models, so check the guide for yours (linked under Sources).
Common mistakes with imaginary numbers
- Forgetting that i² = −1. In (3 + 4i)(1 − 2i) the term −8i² is +8, not −8.
- Multiplying square roots of negatives first. √−4 × √−9 is −6, not 6: write each as a multiple of i before you multiply.
- Dividing without the conjugate. Dividing the real and imaginary parts separately gives a wrong answer; multiply the top and bottom by the conjugate of the bottom.
- Reading the argument in the wrong unit.
arg(1 + i)is 45 in degree mode and 0.785 in radian mode; both are correct. - Losing the sign of the angle. −1 − i lies in the third quadrant, so its argument is −135°, not 45°: atan(b/a) alone cannot tell the quadrants apart.
For longer work, the complex number calculator shows each operation step by step and the polar to rectangular calculator converts between rectangular, polar and exponential form.