Complex Number Calculator
Add, subtract, multiply and divide complex numbers. Convert polar forms, calculate integer powers and all nth roots, with an Argand diagram and numeric limits.
Enter values to calculate.
Trust summary CVP VERIFIED · CVP protocol 1.0.0-proposed · Core assurance · all published modes
- Input interpretation
- Enter values to calculate.
- Result
- —
- Verified scope
- all published modes
- Assurance
- Core
- Declared partition coverage
- PASS · 12/12 declared partitions (add, sub, mul, div, rect-to-polar, polar-to-rect, conjugate, modulus, power, root, euler, invalid-domain) · Matrix
- Known limitations
- Core CVP does not include live graph, viewport, or pointer interaction.
- Model
- Complex arithmetic, rectangular/polar conversion, and an engine-linked Argand figure of the result z.
- Scope
- atan2 argument in degrees
- Verification
- Engine tested · Source checked · v1.3.0 · CVP VERIFIED · CVP protocol 1.0.0-proposed · Core assurance · all published modes· View Manifest · CVP overview · Specification
- Versions
- Calculation 1.3.0 · CVP protocol 1.0.0-proposed · Evidence 2026-10-29.math-uuce-fields-v1
- Verification revision
- 2026-10-29.math-uuce-fields-v1 · 3/3 property · digest e0f5f79d4366
- Legacy regression
- 18/18 tests · Production surface contract 5/5
- Trust layers
- Verification VERIFIED · Production CURRENT · Overall CVP state: VERIFIED under CVP 1.0.0-proposed
- Reference
- O1 model · O2 expected_values · O2 numerical_behavior
- Interfaces
- PASS · UI (SSR) / REST / MCP
- Supplemental domain review
- Not performed
- Named expert review
- Not performed
- CVP suite
- 643/643 golden · 5/5 CVP boundary · 9/9 invalid · 3/3 property · 4/4 metamorphic · 5/5 cross-interface · 2/2 cross-calculator · 5/5 CVP contract · Manifest
- Sources
- ISO 80000-2:2019 Quantities and units — Mathematics
- CRC Standard Mathematical Tables — De Moivre and Euler form
- NIST DLMF — 4.2 Definitions: Logarithm and Exponential
- Gilbert Strang, Calculus — Chapter 9: Polar Coordinates and Complex Numbers (MIT OpenCourseWare)
- Evidence
- 6 legacy golden · 4 legacy boundary · legacy regression suite · 643/643 oracle-backed golden · 9/9 invalid · Artifact integrity PASS
- Semantic contract
- PASS
Full verification
Formulas
Core equations used by this calculator.
How to use
Choose arithmetic or conversion
Arithmetic needs z₁ (re, im) and z₂ (re2, im2). Polar conversion uses r and arg_deg.
Read rectangular and polar together
Every result includes re, im, r, and θ. The Argand figure updates with the result.
Example calculations
Common configurations with formula and result.
Sum
(1+2i) + (3+4i)
3+4i
rect to polar
Complex Number calculator specification
Version 1.3.0 · Engine tested
- Engine tested 18/18 tests · Production surface contract 5/5
- Named expert review Not performed
- Calculation version 1.3.0
- Definition
- A complex number z = re + im i has modulus r = |z| and argument θ = atan2(im, re).
- What it calculates
- Complex arithmetic, rectangular/polar conversion, and an engine-linked Argand figure of the result z.
- Inputs
- mode
- re?
- im?
- re2?
- im2?
- r?
- arg_deg?
- n?
- Outputs
- re
- im
- r
- arg_deg
- euler
- roots?
- Formula
z = re + im i- Assumptions
- atan2 argument in degrees
- Not a CAS
- Units
- dimensionless
- degrees
- Boundary conditions
- divide by 0+0i → DIVISION_BY_ZERO
- unknown mode (including simplify) → INVALID_MODE
- Example
- mode=add re=1 im=2 re2=3 im2=4 → 4+6i
- Validation cases
2 published on this page · 18/18 tests · Production surface contract 5/5 · View evidence
- mode=add re=1 im=2 re2=3 im2=4 → 4+6i
- mode=rect_to_polar re=3 im=4 → r=5
- Sources
- ISO 80000-2:2019 Quantities and units — MathematicsSupports: Mathematical symbols and notation. This standard is not numerical verification or an endorsement of this implementation.
- CRC Standard Mathematical Tables — De Moivre and Euler formSupports: z^n = r^n (cos nθ + i sin nθ); z = r e^{iθ}; nth roots equally spaced on a circle
- NIST DLMF — 4.2 Definitions: Logarithm and ExponentialSupports: Complex exponential and logarithm definitions, including the exponential’s trigonometric representation and branch conventions. Mathematical reference only; not validation or endorsement of this implementation.
- Gilbert Strang, Calculus — Chapter 9: Polar Coordinates and Complex Numbers (MIT OpenCourseWare) — §9.4 Complex NumbersSupports: Complex arithmetic, conjugates, modulus and argument, polar/exponential multiplication and division, de Moivre’s formula and complex roots. Noninteger powers require a specified branch; those branch and numerical policies remain CalculatorX’s own contract. Mathematical reference only; not implementation validation or an endorsement of CalculatorX.
- ISO 80000-2:2019 Quantities and units — Mathematics
- Calculation version
- 1.3.0
Background
Interpretation and common distinctions.
What does this complex number calculator compute?
A complex number z = re + im i has modulus r = |z| and argument θ = atan2(im, re).
The published formula or method is z = re + im i. The following references support the stated mathematics or method:
- Gilbert Strang, Calculus — Chapter 9: Polar Coordinates and Complex Numbers (MIT OpenCourseWare): Complex arithmetic, conjugates, modulus and argument, polar/exponential multiplication and division, de Moivre’s formula and complex roots. Noninteger powers require a specified branch; those branch and numerical policies remain CalculatorX’s own contract. Mathematical reference only; not implementation validation or an endorsement of CalculatorX.
- NIST DLMF — 4.2 Definitions: Logarithm and Exponential: Complex exponential and logarithm definitions, including the exponential’s trigonometric representation and branch conventions. Mathematical reference only; not validation or endorsement of this implementation.
Which inputs and limits should you check?
Keep Cartesian and polar representations consistent. Angle units and the selected root or power branch affect the interpretation of a complex result.
The worked example uses (1+2i) + (3+4i) with 4 + 6i. Compare it with the Example calculations and the complete result for the same inputs.
How can you verify and cite this result?
CalculatorX is responsible for this page. The mathematical references above explain the model; implementation checks and their scope are documented separately in the math.complex v1.3.0 Evidence and capability contract. Read the displayed verification and production state together with the specification's numerical limits.
Use the clean calculator URL to cite the tool. A shared input link identifies a particular calculation. Content updates, numerical verification, and domain reviews have separate dates and scopes.
Numerical policy and branch conventions
All angles use degrees. The principal argument lies in (−180°,180°]; a negative real number uses +180°, including a signed zero imaginary part. At the origin, the displayed argument0° is a convention, not a defined mathematical direction. Nonzero inputs and output components/modulus must be finite normal binary64 values (at least2⁻¹⁰²² in magnitude); scaling or intermediate range loss returns NUMERIC_RANGE with rescaling advice. Nonzero decimal text that converts to zero is rejected as NUMERIC_UNDERFLOW.
Power accepts integer |n|≤1000, including negative powers of nonzero numbers;0⁰ is undefined. Roots accept integer2≤n≤64 and return every distinct root in k order; zero has one distinct root. Principal root is k=0 with the argument convention above. Integer powers use scaled rectangular arithmetic; division scales both operands to avoid squared-denominator overflow/underflow. Polar angles are reduced modulo360° before trigonometry, with exact cardinal directions.
The verification budget is2e−11 times the result modulus for rectangular coordinates and modulus, and2e−9 degrees for argument on well-conditioned examples. Components near cancellation may have large relative error even with small vector error. Direction is sensitive near zero and discontinuous at the negative real axis; rounded angles alone cannot reconstruct tiny components. Values remain binary64 approximations, not arbitrary precision or symbolic results.
Interactive calculation runs in your browser. Opening a shared URL sends its query to the site for server rendering; REST/MCP also receive their inputs. The diagram shows all roots; the text work list and CSV/JSON export retain all64 possible roots without truncation.
Related tools
Other calculators in this family: Complex Polar Calculator, Complex Power Calculator, Complex Roots Calculator, Euler Form Calculator . Explore all Complex Numbers.
Frequently asked questions
Key distinctions behind the calculation.
Is this a computer-algebra system?
No. It does arithmetic and rectangular/polar conversion. It does not simplify expressions.
Where does this run?
Locally in the browser by default. REST and MCP call the same complex engine.