Mathematics
Complex number arithmetic
Add, subtract, multiply or divide two complex numbers given as real and imaginary parts. The result shows its real and imaginary parts, the modulus and the angle in radians and degrees.
Enter the real and imaginary parts of both numbers and choose the operation. If a number is zero, its angle is undefined and shown as a dash. You can change every value; the format of decimal results is under More options. Downloads keep your inputs and results, and nothing is saved or sent.
Result
Formula / calculation:
The first number is a + bi and the second is c + di. The result is shown as its real and imaginary parts, its modulus (distance from zero) and its principal argument in degrees, between −180° and 180°. Division by zero is not possible.
Decimal results are approximate. Inputs stay in this browser tab.
How it works
The formula and units appear with the result above. Decimal results are rounded for display; you can choose the format under More options.
About this calculation
The calculator adds, subtracts, multiplies or divides two complex numbers. You give each one as a real part and an imaginary part, z₁ = a + bi and z₂ = c + di, and the usual rule i² = −1 applies. Besides the real and imaginary parts of the result, it shows the modulus, which is the distance of the result from zero, and the principal argument, which is its angle, given in radians between −π and π and also in degrees.
Division only works when the second number is not zero. If the result is zero, no angle is shown, because the argument of zero is undefined. Each part may be at most 1 million in absolute value, and any value other than zero must be at least 1e-9. Results are floating-point approximations, shown with fixed decimals, up to 12 significant digits or in scientific notation. The tool does plain arithmetic only and does not work with symbols.
Worked example
With these example values the calculator gives the result below. You can change any value in the form above.
Inputs
- Real part of first number
- 3
- Imaginary part of first number
- 2
- Real part of second number
- 1
- Imaginary part of second number
- -4
- Operation
- Multiply
- Displayed decimal places (0–12)
- 6
- Result format
- Fixed decimals
Result
- Real part
- 11.00
- Imaginary part
- -10.00
- Modulus
- 14.866069
- Principal argument
- -42.273689 °
Frequently asked questions
How do I multiply two complex numbers?
Enter z₁ = a + bi and z₂ = c + di, using i² = −1. For example, (3 + 2i) × (1 − 4i) = 11 − 10i.
How are the modulus and argument shown?
The complex number calculator shows the modulus and the principal argument in radians, in the range (−π, π], and in degrees. For 11 − 10i the argument is about −42.27°.
Why is the argument of zero not shown?
The argument of zero is undefined, so no angle is given for a zero result.
Can I divide by a complex number?
Yes, but division requires a nonzero second number.
What limits apply to the complex number calculator?
Each component must have absolute value at most 1 million, and any nonzero magnitude must be at least 1e-9. Trigonometric and exponential forms always use radians.