Visual Tools
Calculators
Tables
Mathematical Keyboard
Converters
Other Tools

Complex Numbers Calculator

How to use Complex Numbers Calculator
  1. Type the real part and the imaginary part of the first number in the two boxes under First Number (z₁); the formatted number appears under them. Learn more about the inputs
  2. Pick an operation with the seven buttons: Addition, Subtraction, Multiplication, Division, Conjugate, Modulus or Power. Conjugate and Modulus hide the second number. Learn more about the operations
  3. For a two-number operation, type the second number under Second Number (z₂). The result appears at once; nothing has to be clicked. Learn more about the arithmetic operations
  4. Click Show Steps to open the step-by-step working under the result, and again to hide it. Learn more about the results
  5. The two guide panels on the right explain complex numbers and the chosen operation; each ends with a link to the section below that explains it in full. Learn more about the guides
  6. Click Clear All to empty both numbers and the result. Dividing by 0+0i0 + 0i shows the message Division by zero. Learn more about messages

First Number (z₁)

+i
0

Second Number (z₂)

+i
0

Choose Operation

💡 Complex Numbers Guide


Complex Number:
z = a + bi where a is real part, b is imaginary part

Examples:
• 3 + 4i
• -2 + 5i
• 7 - 3i
• 0 + 2i (pure imaginary)

Basic Properties:
• i² = -1
• Real axis (horizontal)
• Imaginary axis (vertical)
Learn more about complex numbers

🔧 Addition (z₁ + z₂) Guide


Addition Formula:
(a + bi) + (c + di) = (a + c) + (b + d)i

How it works:
• Add real parts together
• Add imaginary parts together
• Combine the results

Example:
(3 + 2i) + (1 + 4i) = 4 + 6i
Learn more about adding · All four operations































Getting Started with the Complex Numbers Calculator

DemoTwo numbers, three operations
Step 0 of 4
The complex numbers calculator has three main sections: input panels on the left for entering your complex numbers, operation buttons in the middle for selecting calculations, and quick guide panels on the right showing formulas and explanations. The interface adjusts based on which operation you choose—some operations need two numbers while others need only one.

Start by looking at the First Number (z₁) input panel. You'll see two boxes with a plus sign and the letter ii between them. The left box is for the real part (the regular number), and the right box is for the imaginary part (the coefficient of ii). Enter any numbers including decimals and negatives.

Below your inputs, the calculator displays your complex number in standard form like 3+4i3 + 4i or −2−5i-2 - 5i. This formatted display updates instantly as you type, helping you verify your input is correct before calculating. Watch this area to make sure the calculator interprets your numbers as you intended.

The Choose Operation section contains seven buttons for different calculations: Addition, Subtraction, Multiplication, Division, Conjugate, Modulus, and Power. Click any operation button to select it—the button turns blue when active. For Conjugate and Modulus, the second number panel disappears since these operations work on a single complex number. The result appears automatically below without needing to click Calculate: with 3+4i3 + 4i and 1+2i1 + 2i, Addition gives 4+6i4 + 6i and Multiplication −5+10i-5 + 10i. The Power button is listed but does not compute yet; its guide explains the method. What the two parts of a complex number mean is explained in what are complex numbers.

Entering Complex Numbers in the Input Fields

DemoReal part, imaginary part, and the preview
Step 0 of 4
Click in the first input box under First Number (z₁) to enter your real part. Type any number: positive like 55, negative like −3-3, decimal like 2.52.5, or zero like 00. The real part represents the horizontal component on the complex plane—it's just a regular number without ii.

Move to the second box to enter your imaginary part. This is the coefficient of ii, so if you want 4i4i, type 44. For −3i-3i, type −3-3. You don't need to type the ii—the calculator adds it automatically. The imaginary part represents the vertical component on the complex plane.

For pure real numbers like 55, enter 55 in the real box and 00 in the imaginary box. For pure imaginary numbers like 3i3i, enter 00 in the real box and 33 in the imaginary box. The calculator handles all combinations: 2+3i2 + 3i, −4−7i-4 - 7i, 6+0i6 + 0i, 0+5i0 + 5i.

When an operation requires a second complex number, the Second Number (z₂) panel appears on the right. Enter its real and imaginary parts the same way. The formatted preview below each panel shows exactly how the calculator interprets your input: (3+4i)(3 + 4i), (0−2i)(0 - 2i), or (5+0i)(5 + 0i). If the preview shows "Enter values," you haven't typed anything yet. For example, 5−3i5 - 3i added to 2i2i gives 5−i5 - i, and −3i+2i=−i-3i + 2i = -i. The standard form behind the two boxes is explained in what are complex numbers.

Using the Four Basic Arithmetic Operations

DemoAdd, subtract, multiply and divide the same two numbers
Step 0 of 4
Click the Addition (z₁ + z₂) button to add two complex numbers. Enter 3+2i3 + 2i in the first panel and 1+4i1 + 4i in the second. The calculator adds real parts together: 3+1=43 + 1 = 4. Then it adds imaginary parts: 2i+4i=6i2i + 4i = 6i. The result 4+6i4 + 6i appears immediately in the green result box below.

For Subtraction (z₁ - z₂), try (5+3i)−(2+1i)(5 + 3i) - (2 + 1i). The calculator subtracts the second number's real part from the first: 5−2=35 - 2 = 3. Then imaginary parts: 3i−1i=2i3i - 1i = 2i. Result: 3+2i3 + 2i. Notice negative results work too: (1+1i)−(3+4i)=−2−3i(1 + 1i) - (3 + 4i) = -2 - 3i.

Multiplication (z₁ × z₂) uses the FOIL method. Enter (2+3i)(2 + 3i) and (1+4i)(1 + 4i). The calculator multiplies: 2×1=22 \times 1 = 2, 2×4i=8i2 \times 4i = 8i, 3i×1=3i3i \times 1 = 3i, and 3i×4i=12i2=−123i \times 4i = 12i^2 = -12 (remember i2=−1i^2 = -1). Combining gives 2+8i+3i−12=−10+11i2 + 8i + 3i - 12 = -10 + 11i. Click Show Steps to see this breakdown.

Division (z₁ ÷ z₂) multiplies by the conjugate. For (1+2i)÷(3+4i)(1 + 2i) \div (3 + 4i), the calculator finds the conjugate of the denominator (3−4i)(3 - 4i), multiplies numerator and denominator by it, then simplifies. The result appears as a decimal like 0.44+0.08i0.44 + 0.08i. Division by zero (like ÷(0+0i)\div (0 + 0i)) shows an error: "Division by zero." With 1+2i1 + 2i and 3+4i3 + 4i the four buttons give 4+6i4 + 6i, −2−2i-2 - 2i, −5+10i-5 + 10i and 0.44+0.08i0.44 + 0.08i. The rules behind all four are in how complex number operations work.

Using Single-Number Operations: Conjugate and Modulus

DemoConjugate and modulus of one number
Step 0 of 5
Select Conjugate (z₁*) to find the complex conjugate. When you click this operation, the second number panel disappears—you only need one input. Enter 3+4i3 + 4i in the first panel. The conjugate flips the sign of the imaginary part: 3−4i3 - 4i. The real part stays the same.

Try negative imaginary parts too. Enter 5−2i5 - 2i and the conjugate becomes 5+2i5 + 2i. For pure imaginary 0+7i0 + 7i, the conjugate is 0−7i0 - 7i. For pure real 8+0i8 + 0i, the conjugate is 8−0i=88 - 0i = 8. The conjugate is useful for division and finding the modulus squared: z×z∗=∣z∣2z \times z^* = |z|^2.

Modulus (|z₁|) calculates the distance from the origin to your point in the complex plane. Enter 3+4i3 + 4i. The calculator computes 32+42=9+16=25=5\sqrt{3^2 + 4^2} = \sqrt{9 + 16} = \sqrt{25} = 5. This uses the Pythagorean theorem—the modulus is always a positive real number.

Try 5+12i5 + 12i to get modulus 1313 (since 52+122=25+144=169=1325^2 + 12^2 = 25 + 144 = 169 = 13^2). For 1+1i1 + 1i, the modulus is 2≈1.4142\sqrt{2} \approx 1.4142. Pure imaginary 0+3i0 + 3i has modulus 33. Pure real 4+0i4 + 0i has modulus 44. Click Show Steps to see the a2+b2\sqrt{a^2 + b^2} calculation broken down step-by-step. Both operations are explained in understanding conjugate and modulus.

Reading Results and Step-by-Step Solutions

DemoResult, steps and Clear All
Step 0 of 4
After entering your numbers and selecting an operation, the result appears in the Result section at the bottom. For complex number answers, you'll see the formatted output like −10+11i-10 + 11i, 3−2i3 - 2i, or 0.44+0.08i0.44 + 0.08i. The calculator displays large, bold text in green for successful calculations.

For modulus operations, the result is a single real number like 5.00005.0000 or 13.000013.0000, always with four decimal places. Other decimal results print as they are, such as 0.44+0.08i0.44 + 0.08i for a division; a division that does not terminate prints many decimals. With 2+3i2 + 3i and 1+4i1 + 4i, Addition gives 3+7i3 + 7i and Multiplication −10+11i-10 + 11i.

Click the green Show Steps button to reveal the step-by-step solution. A white panel expands below the result showing each calculation stage. For addition, you'll see lines like "(3+2i)+(1+4i)(3 + 2i) + (1 + 4i)", then "=(3+1)+(2+4)i = (3 + 1) + (2 + 4)i", then "=4+6i = 4 + 6i". For multiplication, the steps show FOIL expansion, the i2=−1i^2 = -1 substitution, and final combination.

The Clear All red button resets everything—both input panels empty, the result disappears, and the interface returns to its initial state. Use this when starting a completely new problem. The result updates automatically as you type new numbers, so you don't need to clear between similar calculations unless you want a fresh start. The FOIL working the steps show is explained in multiplying complex numbers.

Using the Quick Guide Panels

DemoThe operation guide follows your choice
Step 0 of 5
The right side of the calculator contains two helpful guide panels that stay visible as you scroll. The top panel, Complex Numbers Guide, displays general information about complex numbers: the standard form z=a+biz = a + bi, what real and imaginary parts mean, example numbers, and the key property i2=−1i^2 = -1.

This general guide is always visible regardless of which operation you select. Read it first if you're new to complex numbers—it explains the notation and basic concepts you need to understand your calculations. The guide includes bullet points and examples formatted with proper mathematical notation.

Below it, the Operation Guide panel changes based on your selected operation. When you click Addition, it shows the addition formula (a+bi)+(c+di)=(a+c)+(b+d)i(a + bi) + (c + di) = (a + c) + (b + d)i, explains how it works, and provides an example. Switch to Multiplication and the panel updates to show FOIL method, the i2=−1i^2 = -1 rule, and a multiplication example.

Each operation guide includes the relevant formula, step-by-step explanation of the method, important properties or rules, and at least one worked example. For Division, you'll see the conjugate multiplication technique. For Modulus, you'll see the distance formula ∣z∣=a2+b2|z| = \sqrt{a^2 + b^2}. These guides help you understand what the calculator is doing behind the scenes without needing to leave the page. Each guide ends with a link to the section on this page that treats the operation in full; the Power guide describes De Moivre's method, although the button computes nothing yet. The conjugate method of division is explained in dividing complex numbers.

What Are Complex Numbers

Complex numbers extend the real number system by introducing ii, the imaginary unit, defined as i=−1i = \sqrt{-1} or equivalently i2=−1i^2 = -1. This allows us to take square roots of negative numbers and solve equations like x2+1=0x^2 + 1 = 0, which has no real solutions but has complex solutions x=ix = i and x=−ix = -i.

A complex number has the form z=a+biz = a + bi where aa is the real part and bb is the imaginary part (both aa and bb are real numbers). For example, in 3+4i3 + 4i, the real part is 33 and the imaginary part is 44. Don't be confused by the name "imaginary"—these numbers are just as valid as real numbers, just more abstract.

Pure real numbers like 55 can be written as 5+0i5 + 0i (imaginary part is zero). Pure imaginary numbers like 3i3i can be written as 0+3i0 + 3i (real part is zero). Complex numbers with both parts nonzero, like 2+3i2 + 3i, represent points in the two-dimensional complex plane where the horizontal axis is real and vertical axis is imaginary.

The standard form is defined in the standard form of a complex number, the imaginary unit in the imaginary unit and pure imaginary numbers, and the plane in the two axes.

How Complex Number Operations Work

Addition and subtraction treat complex numbers like binomials. Add real parts together and imaginary parts together separately: (3+4i)+(1+2i)=(3+1)+(4i+2i)=4+6i(3 + 4i) + (1 + 2i) = (3+1) + (4i+2i) = 4 + 6i. Subtraction works the same: (5+3i)−(2+1i)=(5−2)+(3i−1i)=3+2i(5 + 3i) - (2 + 1i) = (5-2) + (3i-1i) = 3 + 2i. Think of it as combining like terms.

Multiplication uses the distributive property (FOIL for binomials). Multiply (2+3i)(1+4i)(2 + 3i)(1 + 4i) by expanding: 2(1)+2(4i)+3i(1)+3i(4i)=2+8i+3i+12i22(1) + 2(4i) + 3i(1) + 3i(4i) = 2 + 8i + 3i + 12i^2. Then substitute i2=−1i^2 = -1: 2+11i+12(−1)=2+11i−12=−10+11i2 + 11i + 12(-1) = 2 + 11i - 12 = -10 + 11i. The i2=−1i^2 = -1 substitution is crucial.

Division requires the conjugate trick. To divide (a+bi)÷(c+di)(a + bi) \div (c + di), multiply both numerator and denominator by the conjugate (c−di)(c - di): a+bic+di×c−dic−di\frac{a+bi}{c+di} \times \frac{c-di}{c-di}. The denominator becomes (c+di)(c−di)=c2+d2(c + di)(c - di) = c^2 + d^2, a real number, making the division straightforward.

The conjugate z∗=a−biz^* = a - bi flips the imaginary sign. The modulus ∣z∣=a2+b2|z| = \sqrt{a^2 + b^2} measures distance from the origin. These concepts connect: z×z∗=∣z∣2z \times z^* = |z|^2. Each operation has its own section above; the four are compared in the four operations side by side and their rules in properties of complex arithmetic.

Adding Complex Numbers

Two complex numbers are added part by part: (a+bi)+(c+di)=(a+c)+(b+d)i(a + bi) + (c + di) = (a + c) + (b + d)i. Real parts go with real parts and imaginary parts with imaginary parts, exactly like combining like terms in 3x+2y3x + 2y.

Example: (3+2i)+(1+4i)=(3+1)+(2+4)i=4+6i(3 + 2i) + (1 + 4i) = (3 + 1) + (2 + 4)i = 4 + 6i. With negative parts the same rule holds: (5−3i)+2i=5−i(5 - 3i) + 2i = 5 - i. On the complex plane, addition is vector addition: the arrows for 3+2i3 + 2i and 1+4i1 + 4i placed head to tail end at 4+6i4 + 6i.

Addition is commutative and associative, and 0=0+0i0 = 0 + 0i changes nothing. The common mistake is to add a real part to an imaginary part: 3+4i3 + 4i is not 77 or 7i7i; the two parts stay separate because ii is not a real number.

See addition of complex numbers and complex numbers as vectors.

Subtracting Complex Numbers

Subtraction is also done part by part: (a+bi)−(c+di)=(a−c)+(b−d)i(a + bi) - (c + di) = (a - c) + (b - d)i. It is the same as adding the additive inverse −(c+di)=−c−di-(c + di) = -c - di.

Example: (5+3i)−(2+i)=(5−2)+(3−1)i=3+2i(5 + 3i) - (2 + i) = (5 - 2) + (3 - 1)i = 3 + 2i. The result may have negative parts: (1+i)−(3+4i)=−2−3i(1 + i) - (3 + 4i) = -2 - 3i, and (1+2i)−(3+4i)=−2−2i(1 + 2i) - (3 + 4i) = -2 - 2i. On the plane, z1−z2z_1 - z_2 is the arrow from the point z2z_2 to the point z1z_1.

Subtraction is not commutative: z2−z1=−(z1−z2)z_2 - z_1 = -(z_1 - z_2). The common mistake is to subtract only the real parts and copy the imaginary part, or to change the sign of the first number instead of the second.

See subtraction of complex numbers and connection to subtraction.

Multiplying Complex Numbers

Multiplication expands the product like two binomials and then uses i2=−1i^2 = -1: (a+bi)(c+di)=ac+adi+bci+bdi2=(ac−bd)+(ad+bc)i(a + bi)(c + di) = ac + adi + bci + bdi^2 = (ac - bd) + (ad + bc)i.

Example: (2+3i)(1+4i)=2+8i+3i+12i2=2+11i−12=−10+11i(2 + 3i)(1 + 4i) = 2 + 8i + 3i + 12i^2 = 2 + 11i - 12 = -10 + 11i. Another: (1+2i)(3+4i)=3+4i+6i+8i2=−5+10i(1 + 2i)(3 + 4i) = 3 + 4i + 6i + 8i^2 = -5 + 10i. A number times its conjugate is real: (2−3i)(2+3i)=4−9i2=13(2 - 3i)(2 + 3i) = 4 - 9i^2 = 13.

Geometrically, multiplying by zz scales by ∣z∣|z| and rotates by the angle of zz; multiplying by ii alone is a quarter turn, since i⋅1=ii \cdot 1 = i and i⋅i=−1i \cdot i = -1. The common mistake is to forget that i2=−1i^2 = -1 and leave 12i212i^2 as a term, or to multiply only the real parts and only the imaginary parts.

See multiplication of complex numbers and arithmetic operations: calculating in C.

Dividing Complex Numbers

To divide, multiply the numerator and the denominator by the conjugate of the denominator, which makes the denominator a real number: a+bic+di=(a+bi)(c−di)c2+d2\frac{a + bi}{c + di} = \frac{(a + bi)(c - di)}{c^2 + d^2}.

Example: 1+2i3+4i=(1+2i)(3−4i)9+16=3−4i+6i−8i225=11+2i25=0.44+0.08i\frac{1 + 2i}{3 + 4i} = \frac{(1 + 2i)(3 - 4i)}{9 + 16} = \frac{3 - 4i + 6i - 8i^2}{25} = \frac{11 + 2i}{25} = 0.44 + 0.08i. Another: 4+2i1−i=(4+2i)(1+i)2=2+6i2=1+3i\frac{4 + 2i}{1 - i} = \frac{(4 + 2i)(1 + i)}{2} = \frac{2 + 6i}{2} = 1 + 3i; check: (1+3i)(1−i)=1−i+3i−3i2=4+2i(1 + 3i)(1 - i) = 1 - i + 3i - 3i^2 = 4 + 2i.

Division by 0+0i0 + 0i is impossible, as for real numbers; the calculator reports Division by zero. The quotient z1/z2z_1 / z_2 can also be written z1⋅z2−1z_1 \cdot z_2^{-1}, where z2−1=z2ˉ/∣z2∣2z_2^{-1} = \bar{z_2} / |z_2|^2 is the multiplicative inverse. The common mistake is to divide the real parts and the imaginary parts separately: 1+2i3+4i\frac{1 + 2i}{3 + 4i} is not 13+24i\frac{1}{3} + \frac{2}{4}i.

See division of complex numbers, connection to division and applications to division.

Understanding Conjugate and Modulus

The conjugate of a complex number z=a+biz = a + bi is written zˉ\bar{z} or z∗z^* and equals a−bia - bi. To find it, keep the real part the same and flip the sign of the imaginary part. The conjugate of 3+4i3 + 4i is 3−4i3 - 4i. The conjugate of 2−5i2 - 5i is 2+5i2 + 5i. For pure real 7+0i7 + 0i, the conjugate is 7−0i=77 - 0i = 7.

Conjugates are essential for division: multiplying by a conjugate eliminates the imaginary part in the denominator. They also satisfy z×zˉ=a2+b2z \times \bar{z} = a^2 + b^2, a real number. For 3+4i3 + 4i: (3+4i)(3−4i)=9−16i2=9+16=25(3 + 4i)(3 - 4i) = 9 - 16i^2 = 9 + 16 = 25. This equals ∣z∣2|z|^2.

The modulus ∣z∣=a2+b2|z| = \sqrt{a^2 + b^2} represents the distance from the origin (0,0)(0, 0) to the point (a,b)(a, b) in the complex plane. For 3+4i3 + 4i, plot the point (3,4)(3, 4) and measure its distance from origin: 32+42=25=5\sqrt{3^2 + 4^2} = \sqrt{25} = 5. This is the Pythagorean theorem.

The modulus is always non-negative (zero or positive). For 0+0i0 + 0i, the modulus is 00. For all other complex numbers, it's positive. The modulus has useful properties: ∣z1×z2∣=∣z1∣×∣z2∣|z_1 \times z_2| = |z_1| \times |z_2| and ∣z1÷z2∣=∣z1∣÷∣z2∣|z_1 \div z_2| = |z_1| \div |z_2|. The link between the two is proved in conjugate and modulus and the modulus rules in properties of modulus.

The Complex Conjugate

The conjugate of z=a+biz = a + bi is zˉ=a−bi\bar{z} = a - bi: the real part stays, the imaginary part changes sign. The conjugate of 3+4i3 + 4i is 3−4i3 - 4i, of 5−2i5 - 2i is 5+2i5 + 2i, and of a real number is the number itself.

On the complex plane the conjugate is the mirror image of zz in the real axis. The product of a number and its conjugate is real and equals the squared modulus: (3+4i)(3−4i)=9−16i2=25=∣3+4i∣2(3 + 4i)(3 - 4i) = 9 - 16i^2 = 25 = |3 + 4i|^2. The sum z+zˉ=2az + \bar{z} = 2a is real as well, and the difference z−zˉ=2biz - \bar{z} = 2bi is pure imaginary.

Conjugates make division possible, and the roots of a real polynomial come in conjugate pairs: if 2+3i2 + 3i solves x2−4x+13=0x^2 - 4x + 13 = 0, so does 2−3i2 - 3i. The common mistake is to change both signs, which gives −z-z, the additive inverse, not the conjugate.

See definition of the conjugate, fundamental properties and the complex conjugate.

The Modulus of a Complex Number

The modulus ∣z∣|z| of z=a+biz = a + bi is its distance from the origin on the complex plane, ∣z∣=a2+b2|z| = \sqrt{a^2 + b^2}, by the Pythagorean theorem applied to the point (a,b)(a, b).

Examples: ∣3+4i∣=9+16=5|3 + 4i| = \sqrt{9 + 16} = 5, ∣5+12i∣=25+144=13|5 + 12i| = \sqrt{25 + 144} = 13, ∣1+i∣=2≈1.4142|1 + i| = \sqrt{2} \approx 1.4142, and ∣−3i∣=3|-3i| = 3. The modulus of a real number is its absolute value, so the modulus extends the absolute value to the plane.

The modulus respects products and quotients, ∣z1z2∣=∣z1∣∣z2∣|z_1 z_2| = |z_1| |z_2| and ∣z1/z2∣=∣z1∣/∣z2∣|z_1 / z_2| = |z_1| / |z_2|, but not sums: ∣z1+z2∣≤∣z1∣+∣z2∣|z_1 + z_2| \le |z_1| + |z_2|, the triangle inequality. It is linked to the conjugate by zzˉ=∣z∣2z \bar{z} = |z|^2. The common mistake is to compute a+ba + b or a2+b2a^2 + b^2 without the square root: ∣3+4i∣|3 + 4i| is 55, not 77 or 2525.

See definition of modulus, properties of modulus and modulus (radius).

Powers of a Complex Number

A positive whole power is repeated multiplication: (1+i)2=1+2i+i2=2i(1 + i)^2 = 1 + 2i + i^2 = 2i, and (1+i)4=(2i)2=4i2=−4(1 + i)^4 = (2i)^2 = 4i^2 = -4.

For larger exponents, De Moivre's theorem is quicker. Write zz in trigonometric form, z=r(cos⁡θ+isin⁡θ)z = r(\cos\theta + i\sin\theta) with r=∣z∣r = |z|; then zn=rn(cos⁡nθ+isin⁡nθ)z^n = r^n(\cos n\theta + i\sin n\theta). For 1+i1 + i: r=2r = \sqrt{2} and θ=45∘\theta = 45^\circ, so (1+i)4=(2)4(cos⁡180∘+isin⁡180∘)=4⋅(−1)=−4(1 + i)^4 = (\sqrt{2})^4(\cos 180^\circ + i\sin 180^\circ) = 4 \cdot (-1) = -4, as before. The modulus is raised to the power and the angle is multiplied by it.

The Power button computes z1nz_1^n for a whole number nn from −100-100 to 100100: the second box becomes the exponent, and the steps show the polar form and De Moivre's formula; for 1+i1 + i and n=4n = 4 the result is −4-4. A fractional exponent is refused with a message. The common mistake is to raise the real part and the imaginary part separately: (1+i)2(1 + i)^2 is not 1+i2=01 + i^2 = 0.

See De Moivre and powers in exponential form.