HomeCalculatorsMathComplex NumbersComplex Number Calculator
Math calculator

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.

Instant result
Result
—

Enter values to calculate.

Inputs—
Mode—
Formula—
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 — ui-ssr is query-result HTML, not a live browser session. Error-path engine·REST·MCP 1/1 (status, code, calculation_version). SSR compared on URL-canonical requested calculations; empty query is idle (not an error) and JSON-typed object/array inputs are REST/MCP-only.
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
Evidence
6 legacy golden · 4 legacy boundary · legacy regression suite · 643/643 oracle-backed golden · 9/9 invalid · Artifact integrity PASS
This calculator CURRENT · Public schema 1.3.0 matches · Semantic contract ✓ · Production attested · Public/cache ✓ · Origin ✓
Semantic contract
PASS
Full verification

Manifest identity, reference classes, interfaces, suite, and production records.

Formulas

Core equations used by this calculator.

Modulusr = √(re² + im²)
Product(re₁re₂ − im₁im₂) + (re₁im₂ + im₁re₂)i
De Moivrez^n = r^n (cos nθ + i sin nθ)
Eulerz = r e^{iθ}
iθ in degrees, atan2 range (−180°, 180°]. Integer n for powers and roots. Not symbolic simplification. Not i^i.

How to use

1

Choose arithmetic or conversion

Arithmetic needs z₁ (re, im) and z₂ (re2, im2). Polar conversion uses r and arg_deg.

2

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)

4 + 6i
4 + 6i
ϟ

3+4i

rect to polar

r=5
5 ∠ 53.13°

Complex Number calculator specification

Version 1.3.0 · Engine tested

Calculation status

Review policy · Evidence

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 — Mathematics
    Supports: Mathematical symbols and notation. This standard is not numerical verification or an endorsement of this implementation.
  • CRC Standard Mathematical Tables — De Moivre and Euler form
    Supports: 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 Exponential
    Supports: 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 Numbers
    Supports: 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.
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:

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.

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.