# Complex number calculator > How do complex numbers add, multiply and turn? Add, multiply, divide, raise to powers and take roots of complex numbers, drawn as arrows on the complex plane. Add, subtract, multiply and divide complex numbers, find the modulus, argument and polar form, and every n-th root by De Moivre, on a draggable Argand plane. - Page: https://how.box/complex/ - Runs entirely in the browser. - License: HowToolbox's own text and data (titles, explanations, FAQs, tool descriptions and schemas, this file) are CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/); AI training and answers are welcome. Attribute "HowToolbox (how.box)" with a link to the page used. Third-party data keeps its own terms; the name and logo are not licensed. Publisher: HowToolbox, contact@how.box. Terms: https://how.box/about/terms/ ## Inputs Answer link: https://how.box/complex/?o={o}&x1={x1}&y1={y1}&x2={x2}&y2={y2}&n={n} - `o` (add, sub, mul, div, pow or root): add, sub, mul, div, pow or root. Example: `mul`. - `x1` (number -1000 to 1000): Real part of z1. Example: `2`. - `y1` (number -1000 to 1000): Imaginary part of z1. Example: `1`. - `x2` (number -1000 to 1000): Real part of z2. Example: `1`. - `y2` (number -1000 to 1000): Imaginary part of z2. Example: `1`. - `n` (whole number 1 to 24): Whole power or root, 1 to 24. Example: `3`. Example answer: https://how.box/complex/?o=mul&x1=2&y1=1&x2=1&y2=1&n=3 A complete link carries the primary answer in the page HTML; a missing or invalid value shows the default page. ## Agent tools - `complex_calculate`: Complex number arithmetic. - MCP, one POST to https://how.box/mcp: `{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"complex_calculate","arguments":{"operation":"mul","re1":2,"im1":1,"re2":1,"im2":1,"n":3}}}` - GET: https://how.box/mcp/run/complex_calculate?operation=mul&re1=2&im1=1&re2=1&im2=1&n=3 ## How it works A complex number z = a + bi has a real part a and an imaginary part b, where i² = −1. Drawn on the complex plane (the Argand diagram), it is the point (a, b), or an arrow from 0 to it. Its length is the modulus |z| = √(a² + b²) and its angle from the positive real axis is the argument θ, so z = r(cos θ + i sin θ) = r·e^(iθ). Adding works like arrows: (a + bi) + (c + di) = (a + c) + (b + d)i. Multiplying, (a + bi)(c + di) = (ac − bd) + (ad + bc)i, is easier to see in polar form: the lengths multiply and the angles add. For example (2 + i)(1 + i) = 1 + 3i, with length √5 × √2 = √10 and angle 26.57° + 45° = 71.57°. Dividing divides the lengths and subtracts the angles. De Moivre's formula gives powers and roots: zⁿ = rⁿ(cos nθ + i sin nθ). A number other than 0 has exactly n n-th roots, of length r^(1/n), at the angles (θ + 360°·k)/n for k = 0 … n − 1: the corners of a regular polygon. The cube roots of 8 are 2 and −1 ± i√3. The argument shown is the principal one, between −180° and 180°. Source: OpenStax Algebra and Trigonometry 2e, sections 2.4 and 10.5. ## FAQ **Why does multiplying by i turn a number by 90°?** i has length 1 and angle 90°, so multiplying by it keeps the length and adds 90° to the angle. Doing it twice turns by 180°: i² = −1. **What is the conjugate for?** The conjugate a − bi mirrors z in the real axis. z times its conjugate is a² + b², a real number, which is how division is worked out by hand. **Why does −1 have two square roots, i and −i?** Every number other than 0 has n different n-th roots. For square roots they point in opposite directions: i² and (−i)² are both −1. **Is the argument in degrees or radians?** Both are shown. A full turn is 360° or 2π radians, and angles that are multiples of 15° are also written as fractions of π, such as 45° = π/4. **How do I divide complex numbers by hand?** Multiply the top and the bottom by the conjugate of the bottom. The bottom becomes the real number c² + d², and the top is an ordinary product. Or divide the lengths and subtract the angles. More: [HowToolbox index](https://how.box/llms.txt) · [Agent Skill](https://how.box/skill.md) · [agent terms](https://how.box/about/agents/)