Complex Number Calculator

JJ Ben-Joseph headshot JJ Ben-Joseph

Complex number a
Complex number b
Enter numbers and choose an operation.

Why Use a Complex Number Calculator?

Working with complex numbers by hand can become tedious, especially when dealing with multiple operations or converting between rectangular and polar forms. A calculator that handles the arithmetic, displays the magnitude and angle, and offers a clear explanation of the underlying math saves time and reduces mistakes. Students learning about imaginary numbers for the first time can use this page to check homework or to visualize how operations transform points in the complex plane. Engineers and hobbyists who deal with alternating current circuits or phasor diagrams will also find rapid computations helpful when designing or troubleshooting systems.

Reviewing Complex Numbers

Every complex number has the form a+bi, where a and b are real numbers. The symbol i represents the square root of 1. On the complex plane, the horizontal axis corresponds to the real part and the vertical axis to the imaginary part. A point at 3+4i lies three units to the right of the origin and four units up. Plotting complex numbers this way allows geometric interpretations of algebraic rules.

Core Arithmetic Operations

Adding and subtracting complex numbers is straightforward: simply combine like terms:

(a+bi)±(c+di)=(a±c)+(b±d)i.

Multiplication requires distributing terms and remembering that i2=1:

(a+bi)(c+di)=(acbd)+(ad+bc)i.

To divide, multiply the numerator and denominator by the complex conjugate of the denominator to clear the imaginary unit:

a+bic+di=(a+bi)(cdi)(c+di)(cdi), simplifying the denominator to c2+d2.

Polar Form and Euler's Formula

A complex number can also be written as rei\theta, where r is the magnitude and \theta is the angle measured from the positive real axis. Converting between rectangular and polar forms uses the relationships

r=a2+b2 and \theta=atan2(b,a).

Euler's celebrated formula ei\theta=\theta+i\theta links exponentials with trigonometric functions and explains why multiplying complex numbers adds angles and multiplies magnitudes. The calculator reports the magnitude and argument of the result so that you can observe these patterns directly.

Worked Example

Consider 3+4i and 1+2i. Adding them produces 2+6i. Multiplying them requires distributing terms:

(3+4i)(1+2i)=(38)+(64)i=11+2i.

The magnitude of the product is |z|=121+4=125 and the angle is atan2(2,11), which lies in the second quadrant. Trying these inputs in the calculator lets you confirm each step.

Comparison Table

The following table summarizes the formulas for the four basic operations on z=a+bi and w=c+di.

Operations on Complex Numbers
OperationFormula
Addition(a+c)+(b+d)i
Subtraction(a-c)+(b-d)i
Multiplication(ac-bd)+(ad+bc)i
Division(a+bi)(c-di)c^2+d^2

Applications and Context

Complex numbers are indispensable in signal processing, where sinusoidal waves are represented as rotating vectors. In electrical engineering, phasor diagrams turn differential equations for circuits into simple algebra. Control systems use complex poles to describe stability, and fluid dynamics employs potential flow representations that rely on analytic functions. By practicing with this calculator, you build intuition for these diverse applications.

Limitations and Numerical Considerations

The JavaScript implementation relies on double-precision floating-point arithmetic. Extremely large or small numbers may lose precision, and rounding errors can accumulate after many operations. Division by a complex number whose magnitude is nearly zero can amplify these issues, so the script warns when the denominator is exactly zero but cannot catch every ill-conditioned case. The tool also assumes inputs are finite real numbers; symbolic expressions or units are not supported.

Related Calculators

If you need to convert between coordinate systems, the Polar Coordinate Converter turns rectangular pairs into polar form and back. For electrical engineers working with sinusoidal signals, the AC RMS Voltage Calculator complements this tool by evaluating effective voltages from peak values.

Conclusion

Complex arithmetic blends algebra and geometry in a single unified framework. This calculator not only performs the operations for you but also explains the logic step by step. Experiment with different inputs, examine the magnitude and angle of results, and explore the linked resources to deepen your mastery of imaginary numbers.

Related Calculators

Möbius Transformation Calculator - Explore Complex Mappings

Compute Möbius transformations of complex numbers.

Möbius transformation calculator complex analysis

Fraction Arithmetic Calculator - Add, Subtract, Multiply, Divide

Perform addition, subtraction, multiplication, and division on two fractions and receive results simplified and as decimals.

fraction arithmetic calculator add fractions subtract fractions multiply fractions divide fractions

Number ↔ Words Converter - Spell and Parse Numbers

Convert numbers into English words and decode written numbers back to digits with this offline Number to Words converter.

number to words words to number spell numbers number name converter