User manual · Calculations

Imaginary numbers calculator and complex mode

Free imaginary numbers calculator: add, subtract, multiply and divide a + bi, simplify powers of i, find square roots of negatives and convert to polar form.

By Hira Noor, mathematicianUpdated
Try

Type a + bi, such as 3+4i, -2i or 5, or polar form r<θ in degrees, such as 5<53.13.

For powers, z₂ is the exponent: a whole number uses De Moivre’s theorem; any other value gives the principal power.

Result

(3 + 4i) × (1 − 2i): 11 − 2i

(3 + 4i) × (1 − 2i)

11−2i11 - 2i

Polar form 5√5∠−10.30484647°

Rectangular form
11−2i11 - 2i
Polar form (degrees)
55∠−10.30484647∘5\sqrt{5}\angle -10.30484647^\circ
Polar form (radians)
5√5∠−0.1798534998 rad
Exponential form
55e−0.1798534998i5\sqrt{5}\,e^{{-0.1798534998}i}
Modulus
555\sqrt{5}
Argument
−10.30484647° = −0.1798534998 rad
Real and imaginary parts
Re = 11, Im = −2

(3 + 4i) × (1 − 2i) = 11 − 2i. This point is 11.18033989 units from the origin at an angle of −10.30484647°.

Argand diagram
z₁z₂z₁z₂
Step-by-step working (3 steps)
  1. Multiply out the brackets

    Multiply every term of the first number by every term of the second (FOIL).

    (3+4i)(1−2i)=3⋅1+3⋅(−2)i+4⋅1i+4⋅(−2)i2\left(3 + 4i\right)\left(1 - 2i\right) = 3\cdot1 + 3\cdot\left(-2\right)i + 4\cdot1i + 4\cdot\left(-2\right)i^2
  2. Use i² = −1 and collect terms

    =(ac−bd)+(ad+bc)i=(3−(−8))+(−6+4)i=11−2i= (ac - bd) + (ad + bc)i = \left(3 - \left(-8\right)\right) + \left(-6 + 4\right)i = 11 - 2i
  3. Check in polar form

    Moduli multiply and arguments add: 5 × 2.236067977 = 11.18033989, and 53.13010235° + (−63.43494882)° gives −10.30484647° (up to a multiple of 360°).

This is the complex number calculator, started with this page’s first example. Its own page adds more presets, the formulas and worked examples.

Short answerThe imaginary numbers calculator above is ScientifiCalc’s complex number calculator, and it opens with (3 + 4i)(1 − 2i) = 11 − 2i. Type numbers as a + bi, such as 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.

z = 3 + 4i on the complex plane: modulus 5, argument 53.13°, conjugate 3 − 4i.

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.

The four operations on 3 + 4i and 1 − 2i
OperationWorkingAnswer
Add(3 + 1) + (4 − 2)i4 + 2i
Subtract(3 − 1) + (4 + 2)i2 + 6i
Multiply3 − 6i + 4i − 8i² = 3 − 2i + 811 − 2i
Divide(3 + 4i)(1 + 2i) ÷ (1 + 4) = (−5 + 10i) ÷ 5−1 + 2i
  1. 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.

  2. Multiply the conjugate into the bottom: (1 − 2i)(1 + 2i) = 1 + 4 = 5

    A number times its conjugate is always real: a² + b².

  3. 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.

Powers of i
PowerRemainder when n ÷ 4Value
i⁰, i⁴, i⁸01
i¹, i⁵, i⁹1i
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.

Complex arithmetic in the scientific calculator (complex mode)
TypeResult
(3 + 4i)(1 - 2i)11 − 2i
(3 + 4i)/(1 - 2i)−1 + 2i
sqrt(-16)4i
i^2−1
i^50−1
(1 + i)^816
e^(iπ)−1
ln(-1)3.141592654i (that is, πi)
i^i0.2078795764 (a real number, e^(−π/2))

Modulus, argument and conjugate

Parts of a complex number
FunctionGivesExample
abs(z) or |z|Modulus (distance from 0)abs(3 + 4i) = 5
arg(z)Argument (angle) in the current angle unitarg(1 + i) = 45 in degrees, 0.7853981634 in radians
conj(z)Complex conjugateconj(2 - 5i) = 2 + 5i
re(z) and im(z)Real and imaginary partsre(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.

Frequently asked questions

What is an imaginary number?

An imaginary number is a real number times i, the imaginary unit, where i² = −1. Examples are 4i, −2i and i√3. Adding a real part gives a complex number a + bi, such as 3 + 4i.

How do I simplify a power of i such as i^50?

Divide the exponent by 4 and keep the remainder, because the powers of i repeat every four steps: i, −1, −i, 1. For i^50 the remainder is 2, so i^50 = i² = −1.

Why does sqrt(-4) give an error?

The scientific calculator is in real mode, where negative numbers have no square root. Switch Number mode to Complex in Settings and sqrt(-4) gives 2i. The complex number calculator always works in complex numbers.

Can I use j instead of i for the imaginary unit?

Yes in the complex number calculator: type 3+4j and the answer is written with j too. In the scientific calculator the imaginary unit is always i, and a j is treated as an ordinary variable name.

Is 0 a real number or an imaginary number?

0 is a real number, and by the usual convention it also counts as purely imaginary, since 0 = 0i. Some textbooks define imaginary numbers as bi with b ≠ 0 and leave 0 out. Either way 0 = 0 + 0i is a complex number, and its argument is undefined.

Why is arg(1 + i) 45 and not 0.785?

The argument is returned in the current angle unit. In degree mode it is 45; switch to radians to get 0.7853981634, which is π/4.

Tools on this page

Scientific Calculator

Type or tap expressions with exact fractions, memory, variables, constants and complex mode.