MATH • COMPLEX NUMBERS
Complex Number Calculator
Enter two complex numbers in rectangular form to calculate their sum, difference and product. The formulas below show exactly how the result is obtained.
Page information: Author: Abdul Qadir · Calculation logic checked by Abdul Qadir · Last updated: 6 October 2026.
Method: The calculator represents z₁ = a + bi and z₂ = c + di, then applies standard complex-number arithmetic.
Enter two complex numbers
How to enter a complex number
Enter the two components separately. For z = 5 − 2i, use 5 for the real part and −2 for the imaginary coefficient. The calculator does not expect you to type the letter i into an input field. This separation also makes negative signs explicit before the arithmetic begins.
What each operation means
For z₁ = a + bi and z₂ = c + di, addition combines corresponding components: (a + c) + (b + d)i. Subtraction does the same component-by-component: (a − c) + (b − d)i. Multiplication is different because the cross terms interact and i² = −1, producing (ac − bd) + (ad + bc)i.
Worked calculation: addition and subtraction
Let z₁ = 7 − 2i and z₂ = 3 + 5i. Adding the real parts gives 10 and adding the imaginary coefficients gives 3, so the sum is 10 + 3i. For subtraction, 7 − 3 = 4 and −2 − 5 = −7, giving 4 − 7i. The important step is to treat the imaginary coefficient as a signed number rather than dropping its minus sign.
Worked calculation: multiplication
Take z₁ = 2 + 3i and z₂ = 4 + i. Expanding gives 8 + 2i + 12i + 3i². Since i² = −1, the real part becomes 8 − 3 = 5 and the imaginary part becomes 14i. The product is therefore 5 + 14i. This expansion is the check used by the calculator's product formula.
Reading a complex number
A complex number has a real component and an imaginary component. In −3 + 4i, the real part is −3 and the imaginary coefficient is 4. In −3 − 4i, the real part is still −3 but the imaginary coefficient is −4. Keeping these signs attached to the correct component prevents errors when subtracting or multiplying.
Magnitude and the complex plane
For z = a + bi, the magnitude is |z| = √(a² + b²). Geometrically, this is the distance from the origin to the point (a, b) on the complex plane. The current calculator does not include magnitude in its result panel, so this formula is provided as a reference rather than implying that the tool calculates it.
Conjugate: a useful related concept
The conjugate of a + bi is a − bi. Conjugates are useful when simplifying complex fractions and when working with magnitude because (a + bi)(a − bi) = a² + b². This page does not calculate conjugates, but understanding the relationship helps connect rectangular-form arithmetic to later complex-number operations.
Calculator scope and checks
This calculator handles addition, subtraction and multiplication of two rectangular-form complex numbers. It validates that all four numeric components are supplied, then applies the displayed formulas. It does not claim to perform division, roots, polar conversion or other operations that are not shown in the result.
Common mistakes to check before accepting a result
- Forgetting that −2i has an imaginary coefficient of −2.
- Changing the sign of both components during subtraction instead of subtracting each component correctly.
- Using i² = +1; the correct identity is i² = −1.
- Mixing the real part with the imaginary coefficient when entering the four inputs.
- Assuming the magnitude or division result is included when this calculator only reports the three stated operations.
Where complex numbers are used
Complex numbers appear in algebra and in technical fields such as electrical engineering, signal processing, control systems and physics. Their meaning in an application depends on the model: the real and imaginary components are mathematical components and should not automatically be interpreted as two separate physical measurements.
FAQ
What is i?
The imaginary unit is defined by i² = −1.
Can complex numbers be compared like ordinary real numbers?
There is no standard total ordering of complex numbers that behaves like the ordinary ordering of real numbers.
Does the calculator support division?
This version focuses on addition, subtraction and multiplication so that each operation can be checked directly from the displayed formulas.
Related math tools
Math Calculator Hub · Scientific Calculator · Quadratic Equation Calculator · Math Solver