Complex number calculator — +-×÷ + conjugate + modulus + argument + polar/Cartesian conversion + powers + roots + Euler form, complex plane visualization.
- Runs locally
- Category Calculator
- Best for Getting a realistic range before a purchase, plan, workout, or schedule decision.
Examples: 3+4i, -1-2i, 2i, -i, 0.5+0.5i, 1/2+1/3i
What this tool does
A full-coverage calculator for university complex-analysis courses. One page handles every operation a textbook actually asks for: addition, subtraction, multiplication, division (with explicit "division by 0 is undefined" instead of silent NaN), conjugate z̄, modulus |z|, argument arg(z) ∈ (-π, π], integer powers z^n (positive, negative, and 0), all n distinct n-th roots z^(1/n) shown together and plotted around the same circle, the complex exponential e^z, sin(z) and cos(z) computed from the real-axis cosh / sinh identities, principal natural log ln(z), and the R² dot product z₁ · z₂. Every result is displayed three ways at once — Cartesian a+bi, polar r∠θ, and Euler form r·e^(iθ) — and you can flip the angle unit between degrees and radians without re-entering anything. Input accepts the forms you'd actually write on paper: 3+4i, -1-2i, 2i, -i, 0.5+0.5i, even fractions like 1/2+1/3i; or switch to polar input and type 1∠90 / 2∠π. The complex-plane SVG plots z₁, z₂, and the result together with the modulus circle and argument arc drawn in, so you can see geometrically that multiplying by i is a 90° rotation, or that the n-th roots of unity sit on the unit circle as a regular polygon. Eight textbook identities (Euler's e^(iπ)=-1, cube roots of 1, De Moivre, conjugate product = |z|², ln(-1) = iπ, …) load with one click so you can verify the math before plugging in your own homework. Everything runs in your browser — no inputs are sent anywhere.
Tool details
- Input
- Text + Numbers
- The page exposes text boxes, numeric controls, file pickers, or structured inputs depending on the tool.
- Output
- Live result + Copy + Preview
- The result area focuses on usable output, with copy, download, or preview actions when supported.
- Privacy
- Browser-side processing
- The main tool logic does not call an external API, so inputs normally stay in the current tab.
- Save / share
- Local preference storage
- Preferences, history, or drafts are saved in this browser without an account.
- Performance budget
- Initial JS <= 26 KB
- No WASM budget is declared, keeping the tool quick to open on mobile.
- Best fit
- Calculator · Student
- Category and role tags drive related tools, internal links, and quick fit checks.
How to use
-
1. Input
Paste or drop your content into the tool panel.
-
2. Process
Click the button. All processing is local in your browser.
-
3. Copy / Download
Copy the result or download to disk in one click.
How Complex Number Calculator fits into your work
Use it for fast estimates, comparisons, and planning numbers before you make the final call.
Calculation jobs
- Getting a realistic range before a purchase, plan, workout, or schedule decision.
- Comparing scenarios by changing one input at a time.
- Turning rough assumptions into a number you can discuss.
Calculation checks
- Double-check units, dates, rates, and rounding assumptions.
- Treat health, finance, tax, and legal outputs as planning aids, not professional advice.
- Save the inputs that produced an important result so you can reproduce it later.
Good next steps
These links move the current task into a more complete workflow.
- 1 Scientific Calculator Scientific calculator — sin / cos / log / sqrt / power, with full keyboard input + history, deg/rad mode. Open
- 2 Matrix Calculator Matrix calculator — add/sub/multiply/inverse/determinant/transpose/rank/RREF/eigenvalues for n×m matrices, step-by-step. Open
- 3 Quadratic Equation Solver Quadratic equation solver — ax² + bx + c = 0, discriminant analysis, real + complex roots, vertex/intercepts, parabola visualization. Open
Real-world use cases
Verify a complex-analysis homework answer before turning it in
You worked out (1 + i)^4 by hand using the binomial expansion and got -4. Type "1+i" into z₁, pick "z₁^n (integer power)" and set n = 4. The calculator returns -4 + 0i in Cartesian, 4∠180° in polar, and 4·e^(i·180°) in Euler form — all three confirm your answer. If you got something different, switch n to 2 and 3 to see the intermediate (1+i)² = 2i, (1+i)³ = -2+2i and pinpoint which step the sign flipped in your hand work.
See the n-th roots of unity as a regular polygon
Your textbook claims the sixth roots of unity sit at the vertices of a regular hexagon centered at the origin. Type "1" into z₁, pick "z₁^(1/n) — all n roots" with n = 6, and the calculator returns six numbers: 1, 0.5+0.866i, -0.5+0.866i, -1, -0.5-0.866i, 0.5-0.866i. The complex-plane plot draws them as six diamonds equally spaced 60° apart on the unit circle — connect them in your head and you see the hexagon. Try n = 3, 4, 5, 8 to watch the polygon change.
Demonstrate Euler's identity to a friend in 10 seconds
The famous e^(iπ) + 1 = 0 unifies five fundamental constants (e, i, π, 1, 0) in one equation. Click the "Euler's identity" preset — z₁ loads as 0 + 3.141592653589793i, operation = e^z₁ — and the result panel shows -1 + 1.22e-16i (the imaginary part is unavoidable floating-point dust). The "Euler's identity" label appears under the result because the calculator recognizes the pattern. Add 1 mentally and you get 0 — that's why this is many mathematicians' favorite equation.
Multiply by i to visualize a 90° rotation
Set z₁ = 3+4i, z₂ = 0+i (just i), and operation = z₁ × z₂. The result is -4 + 3i. Look at the complex-plane plot: z₁ is the vector to (3, 4), and the result is the vector to (-4, 3) — rotated exactly 90° counterclockwise. This is one of the single most useful intuitions in complex analysis: multiplying by i is rotation by 90°, multiplying by e^(iθ) is rotation by θ. Try z₂ = 0.707+0.707i (which is e^(iπ/4)) to see a 45° rotation.
Convert between Cartesian, polar, and Euler representations
A signal-processing problem gives you 5∠53.13° and asks for the Cartesian form. Switch input mode to "Polar (r∠θ)", set angle unit to degrees, type "5∠53.13" into z₁ and operation = z̄₁ (conjugate). The result panel shows 3 - 4i in Cartesian (so the original was 3+4i — confirming 3-4-5 right triangle), 5∠-53.13° in polar, and 5·e^(i·-53.13°) in Euler. One look gives you all three forms; no need to mentally compute r·cos(θ) and r·sin(θ) yourself.
Check that the conjugate-product identity holds for any z
The identity z · z̄ = |z|² is supposed to hold for every complex number. Pick a random one, say z₁ = 3+4i and z₂ = 3-4i, then multiply: result is 25 + 0i. The modulus of 3+4i is 5, and 5² = 25. Try again with z₁ = -2+5i and z₂ = -2-5i: result is 29 + 0i, and indeed |(-2)+5i|² = 4+25 = 29. The complex-plane plot makes the geometry vivid: z and z̄ are mirror images across the real axis, and their product always lands on the positive real axis at distance |z|².
Common pitfalls
Treating arg(z) as a continuous function and writing arg(-1) = -π. The principal value is in (-π, π], so the negative real axis is +π by convention. If you cross the branch cut, the argument jumps by 2π — this matters when chaining ln(z) with other operations.
Computing the n-th root and reporting only the principal value. Every non-zero complex number has exactly n n-th roots, and they are all equally legitimate. The calculator gives all n; in a proof or coursework, name which root you mean (e.g. "the principal cube root of -1 is e^(iπ/3) = 0.5 + 0.866i", not just "-1^(1/3) = -1").
Believing |sin(z)| ≤ 1 in the complex plane. That bound only holds on the real axis. As soon as z has any imaginary part, sin(z) involves cosh(y) which grows without bound — so sin(i) ≈ 1.175i is correct, not a bug.
Privacy
Every complex number you type — z₁, z₂, the integer n — and every derived result (sums, products, conjugates, moduli, arguments, powers, n-th roots, e^z, sin/cos, ln) is computed locally in JavaScript with the browser's double-precision math. Nothing is uploaded, logged, or shared with a server. The page works offline once loaded; you can do an entire complex-analysis problem set in airplane mode and the calculator still gives you the right answers.
FAQ
Tool combos
Folks in your role tend to reach for these alongside this tool.
- Chinese Acupoint Locator 200+ meridian acupoints / WHO 2008 standard locations / with contraindications, manipulation, and combinations.
- Affine Cipher Encoder & Decoder Encrypt and decrypt the ax+b affine cipher with live modular-inverse check, browser-only
- Anagram Solver Check if two words are anagrams, rearrange a set of letters into every ordering, and read the sorted letter fingerprint, all in your browser
- Angle Converter Degrees, radians, gradians, turns, arcminutes, arcseconds and NATO mils, all from one input, copyable, browser-only