Imaginary Number Calculator (Powers of i)

Imaginary Number Calculator (Powers of i)

Growing AI Skill PRO

Enter Calculation

Formula

in=im,m=((nmod4)+4)mod4={1m=0im=1−1m=2−im=3i^{\,\text{n}} = i^{\,m}, \quad m = ((\text{n} \bmod 4) + 4) \bmod 4 = \begin{cases} 1 & m = 0 \\ i & m = 1 \\ -1 & m = 2 \\ -i & m = 3 \end{cases}
Usage stats

Advertisement

Results

Value of in
-1
simplified power of the imaginary unit
Real part -1
Imaginary part 0 i
n mod 4 2

Report an error on this page

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.

Advertisement
Circular diagram of the four-step cycle 1, i, -1, -i
Powers of i repeat in a cycle of four: 1, i, -1, -i.

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
Advertisement

How to Compute i^n by Hand

  1. Take the integer exponent \(n\).
  2. 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.
  3. If the remainder is negative, add 4 (for example, a remainder of -2 becomes 2). The result must lie in 0–3.
  4. 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.

Last updated:

Most popular in Math and Statistics

View all Math and Statistics calculators