What is the Imaginary Number Calculator?
The imaginary unit i is defined by \(i^2 = -1\). Whenever you raise i to an integer power, the result always simplifies to one of just four values: 1, i, -1, or -i. This calculator takes any exponent n — positive, negative, or zero — and returns \(i^n\) in its simplest form, along with its real and imaginary parts.
How to use it
Type the exponent n (the power you want to raise i to) and submit. The calculator reduces n modulo 4 and reports the matching value. Negative exponents are handled correctly because the modulo result is normalized into the range 0–3.
The formula explained
The powers of i form a repeating cycle of length four:
\(i^0 = 1\), \(i^1 = i\), \(i^2 = -1\), \(i^3 = -i\), and then \(i^4 = 1\) again. Because of this, \(i^n\) equals i raised to the remainder of n divided by 4. We compute $$i^{\,n} = i^{\,m}, \quad m = ((n \bmod 4) + 4) \bmod 4 = \begin{cases} 1 & m = 0 \\ i & m = 1 \\ -1 & m = 2 \\ -i & m = 3 \end{cases}$$ so the index is always 0, 1, 2, or 3 — even for negative n — then map it to the value.
Worked example
Find \(i^{30}\). Divide 30 by 4: $$30 = 4 \times 7 + 2, \quad \text{so } 30 \bmod 4 = 2.$$ Therefore \(i^{30} = i^2 = -1\). The real part is -1 and the imaginary part is 0.
Powers of i Reference Table
The imaginary unit is defined by \(i^2 = -1\). Its powers repeat in a cycle of length 4, so every integer power of \(i\) equals one of \(1, i, -1, -i\). In the complex plane, each multiplication by \(i\) rotates a point 90° counterclockwise about the origin, so \(i^n\) sits at angle \(90^\circ \cdot n\).
| n mod 4 | i^n value | Real part | Imaginary part | Rotation angle |
|---|---|---|---|---|
| 0 | 1 | 1 | 0 | 0° |
| 1 | i | 0 | 1 | 90° |
| 2 | -1 | -1 | 0 | 180° |
| 3 | -i | 0 | -1 | 270° |
Example exponents placed into the cycle:
| Power | n mod 4 | Value |
|---|---|---|
| \(i^{4}\) | 0 | 1 |
| \(i^{5}\) | 1 | i |
| \(i^{6}\) | 2 | -1 |
| \(i^{7}\) | 3 | -i |
| \(i^{-1}\) | 3 | -i |
| \(i^{-2}\) | 2 | -1 |
| \(i^{100}\) | 0 | 1 |
Comparing Different Exponents
Here "n mod 4" is always normalized to the range 0–3, even when n is negative. For example, \(-6 = 4\cdot(-2) + 2\), so \(-6 \bmod 4 = 2\) and \(i^{-6} = -1\).
| n | n mod 4 (0–3) | i^n | Note |
|---|---|---|---|
| 0 | 0 | 1 | Any nonzero base to the power 0 is 1 |
| 7 | 3 | -i | 7 = 4·1 + 3 |
| -1 | 3 | -i | -1 = 4·(-1) + 3; also 1/i = -i |
| -6 | 2 | -1 | -6 = 4·(-2) + 2 |
| 100 | 0 | 1 | 100 is divisible by 4 |
| 1023 | 3 | -i | Last two digits 23 → 23 mod 4 = 3 |
| -45 | 3 | -i | 45 mod 4 = 1, so -45 ≡ -1 ≡ 3 |
How to Compute i^n by Hand
- Take the integer exponent \(n\).
- Find the remainder \(r\) of \(n\) divided by 4. For a large \(n\), use only its last two digits, because 100 is divisible by 4 and therefore the higher digits do not change the remainder.
- If the remainder is negative, add 4 (for example, a remainder of -2 becomes 2). The result must lie in 0–3.
- Map the remainder to the value: 0 → 1, 1 → \(i\), 2 → \(-1\), 3 → \(-i\).
Worked example: compute \(i^{1023}\). The last two digits are 23, and \(23 = 4\cdot 5 + 3\), so \(r = 3\). Therefore \(i^{1023} = i^{3} = \) -i.
Alternate check for negative n: since \(i^{-1} = \frac{1}{i} = -i\), we have \(i^{-n} = (-i)^{n}\). For \(n = -45\): \(45 \bmod 4 = 1\), so \(i^{45} = i\) and \(i^{-45} = \frac{1}{i} = -i\), which matches the normalized remainder \(-45 \equiv 3 \pmod 4\).
FAQ
What is \(i^0\)? Any nonzero base to the power 0 is 1, so \(i^0 = 1\).
How are negative powers handled? \(i^{-1} = 1/i = -i\). The modulo math normalizes -1 to index 3, which correctly returns -i.
Why only four possible answers? Multiplying by i rotates a number 90° in the complex plane; four rotations return you to the start, creating the 4-step cycle.