Skip to content
CalculatorAtlas

Complex Number Calculator

Tested

Add, subtract, multiply and divide complex numbers.

Tested, not yet published. The formula for this calculator is implemented and passes its automated checks. This page stays non-indexable until it is reviewed and published.

Results

Enter your values and press Calculate. Results appear here.

  • • Result

Quick answer

Complex numbers add and subtract component-wise, multiply as (ac − bd) + (ad + bc)i and divide as ((ac + bd) + (bc − ad)i) ÷ (c² + d²). (1 + 2i) + (3 + 4i) = 4 + 6i, with modulus 7.2111 and argument 56.31°.

Enter the real and imaginary parts of two numbers and choose an operation. The calculator returns the result, modulus and argument.

Related tools: Prime Number Calculator: Check whether a number is prime and find the next prime. Random Number Generator: Random integers in a range, optionally repeatable with a seed. Scientific Calculator: Evaluate expressions with functions, constants, powers and factorials.

How to use the Complex Number Calculator

  1. Enter real part of z₁.
  2. Enter imaginary part of z₁.
  3. Choose operation: +, −, × and ÷.
  4. Enter real part of z₂.
  5. Enter imaginary part of z₂.
  6. Press Calculate to see the result, and use Reset to start again.
Inputs of the Complex Number Calculator
InputWhat to enterAllowed values
Real part of z₁A number—
Imaginary part of z₁A number—
OperationChoose one: +; −; ×; ÷Starts at +
Real part of z₂A number—
Imaginary part of z₂A number—

Formula and method

Formula

(a+bi)(c+di) = (ac−bd) + (ad+bc)i; (a+bi)/(c+di) = ((ac+bd) + (bc−ad)i) ÷ (c²+d²)

IEEE-754 double precision; shown to at most 6 decimal places.

Standard rectangular-form arithmetic.

Worked examples

These examples are verified: each one is an automated test case that the live calculator must reproduce exactly.

Example 1

Inputs: Real part of z₁ = 1; Imaginary part of z₁ = 2; Operation = +; Real part of z₂ = 3; Imaginary part of z₂ = 4.

Results of example 1
ResultValue
Result4 + 6i
Modulus7.211103
Argument56.309932°

Example 2

Inputs: Real part of z₁ = 1; Imaginary part of z₁ = 2; Operation = ×; Real part of z₂ = 3; Imaginary part of z₂ = 4.

Results of example 2
ResultValue
Result-5 + 10i
Modulus11.18034
Argument116.565051°

Example 3

Inputs: Real part of z₁ = 1; Imaginary part of z₁ = 2; Operation = ÷; Real part of z₂ = 3; Imaginary part of z₂ = 4.

Results of example 3
ResultValue
Result0.44 + 0.08i
Modulus0.447214
Argument10.304846°

The first line is the headline result (result). Below it the complex Number Calculator lists modulus and argument, which describe the same case from other angles. IEEE-754 double precision; shown to at most 6 decimal places.

Modulus and argument

The modulus is √(a² + b²) = √(16 + 36) = √52 = 7.2111 for 4 + 6i. The argument is atan2(6, 4) = 56.31°, the angle from the positive real axis. Together they give polar form.

Division

Division multiplies top and bottom by the conjugate of the divisor. Dividing by 0 + 0i is invalid and is rejected.

How the result changes with real part of z₁

Holding every other input at the first worked example, this table changes only real part of z₁. It shows how sensitive the answer is to that one value; each row was produced by running this calculator.

How the result changes with real part of z₁
Real part of z₁ResultModulusArgument
0.53.5 + 6i6.94622259.743563°
14 + 6i7.21110356.309932°
25 + 6i7.8102550.194429°
47 + 6i9.21954440.601295°

What happens with invalid input

These messages are produced by the calculator itself, so you know what to fix.

  • Real part of z₂: entering "0" shows "Cannot divide by 0 + 0i." beside that field and no result.

Choosing between the Complex Number Calculator and similar calculators

Each row shows what a related calculator on this site asks for and what it returns, so you can pick the one that matches your question.

Choosing between the Complex Number Calculator and similar calculators
CalculatorYou enterIt returns
[Prime Number Calculator](/math/prime-number-calculator/)numberResult
[Random Number Generator](/math/random-number-generator/)minimum, maximum and how manyRandom numbers
[Scientific Calculator](/math/scientific-calculator/)expression and angle modeResult
[Roman Numeral Converter](/math/roman-numeral-converter/)convert and valueRoman numeral
[Fibonacci Sequence Calculator](/math/fibonacci-sequence-calculator/)position nF(10)

Assumptions and limitations

  • Dividing by 0 + 0i is invalid

If a required value is empty, not a number, or outside its allowed range, the form marks that field with a message and shows no result instead of a misleading number. The automated checks deliberately try invalid entries for real part of z₂ to confirm this.

Frequently asked questions

What is i squared?

i squared is −1, which is the defining property of the imaginary unit.

What is a conjugate?

The same number with the sign of the imaginary part flipped.

Is the argument in degrees?

Yes, shown in degrees.

What does the Complex Number Calculator calculate?

Add, subtract, multiply and divide complex numbers. It returns Result, Modulus and Argument.

What formula does the Complex Number Calculator use?

(a+bi)(c+di) = (ac−bd) + (ad+bc)i; (a+bi)/(c+di) = ((ac+bd) + (bc−ad)i) ÷ (c²+d²). Standard rectangular-form arithmetic.

What do I need to enter in the complex Number Calculator?

You enter Real part of z₁, Imaginary part of z₁, Operation, Real part of z₂ and Imaginary part of z₂.

How is the result rounded or limited?

IEEE-754 double precision; shown to at most 6 decimal places. Dividing by 0 + 0i is invalid.

What does the “Operation” option change?

It sets how the complex Number is worked out. The choices are +, −, × and ÷.

What is an example of a complex Number result?

With real part of z₁ 1, imaginary part of z₁ 2, operation +, real part of z₂ 3 and imaginary part of z₂ 4, the result is 4 + 6i.

Sources

  • OpenStax, Algebra and Trigonometry 2e (Rice University): exponents, radicals, logarithms and inverse trigonometric functions

Content last reviewed 2026-11-04. Formulas and worked examples are checked by automated tests against independently computed values.