Complex Number Calculator
Use this complex number calculator to add, subtract, multiply, divide, and analyze two complex numbers in the form \(a+bi\). Enter the real and imaginary parts of \(z_1=a+bi\) and \(z_2=c+di\), then choose an operation. The calculator shows the result, conjugates, modulus values, arguments, polar form, and step-by-step formulas with MathJax-rendered mathematical notation.
Calculate Complex Numbers Online
Enter the real and imaginary parts of each complex number. For example, \(3+4i\) has real part \(3\) and imaginary coefficient \(4\). The imaginary part field should contain the coefficient of \(i\), not the full term \(4i\).
Click calculate to see the operation result and full complex-number analysis.
What Is a Complex Number?
A complex number is a number with a real part and an imaginary part. It is usually written as \(z=a+bi\), where \(a\) and \(b\) are real numbers and \(i\) is the imaginary unit. The defining property of the imaginary unit is \(i^2=-1\). This single rule allows mathematics to describe quantities that cannot be represented on the ordinary real number line alone.
In \(z=a+bi\), the number \(a\) is called the real part and is written as \(\operatorname{Re}(z)=a\). The number \(b\) is called the imaginary part and is written as \(\operatorname{Im}(z)=b\). A common student mistake is to say that the imaginary part is \(bi\). Strictly, the imaginary part is the coefficient \(b\). The full imaginary term is \(bi\).
Complex numbers are useful because they extend the number system in a consistent way. The equation \(x^2+1=0\) has no real solution, because no real number squares to \(-1\). But if \(i^2=-1\), then \(x=i\) and \(x=-i\) both solve the equation. This makes complex numbers essential in algebra, polynomial theory, trigonometry, calculus, engineering, signal processing, quantum mechanics, and many advanced areas of applied mathematics.
Although complex numbers may look abstract at first, they are highly geometric. Every complex number \(a+bi\) can be represented as the point \((a,b)\) on the complex plane. The horizontal coordinate is the real part, and the vertical coordinate is the imaginary part. This means complex numbers behave like two-dimensional vectors for addition and subtraction, while multiplication and division also include rotation and scaling effects.
This calculator is designed to support both calculation and understanding. It does not only return a simplified complex number; it also shows conjugates, modulus values, arguments, and polar form. Those extra outputs help connect the arithmetic form \(a+bi\) to geometric meaning on the Argand diagram or complex plane.
How to Use the Complex Number Calculator
To use the calculator, enter the real and imaginary coefficients of two complex numbers. If \(z_1=3+4i\), enter \(a=3\) and \(b=4\). If \(z_2=2-5i\), enter \(c=2\) and \(d=-5\). Then choose whether you want to add, subtract, multiply, or divide. The calculator will show the operation formula and simplify the result into rectangular form.
- Write the first complex number as \(z_1=a+bi\).
- Write the second complex number as \(z_2=c+di\).
- Enter \(a\), \(b\), \(c\), and \(d\) into the input fields.
- Select the operation: addition, subtraction, multiplication, or division.
- Read the simplified answer in the form \(x+yi\).
- Use the extra outputs to check the conjugate, modulus, argument, and polar representation.
The calculator accepts decimals and negative values. For example, you can enter \(a=-2.5\), \(b=7\), \(c=0.75\), and \(d=-3.2\). Results are rounded for readability, but the formulas explain the exact operation being used. For schoolwork, keep exact fractions or radicals whenever your teacher asks for exact form. Decimal results are convenient for estimation, graphing, and checking calculator work.
Complex Number Operation Formulas
Complex number arithmetic follows the same algebra rules used with binomials, plus the special identity \(i^2=-1\). The key is to combine real parts with real parts and imaginary parts with imaginary parts, while carefully simplifying powers of \(i\).
Addition
Addition is component-by-component. The real parts \(a\) and \(c\) combine, and the imaginary coefficients \(b\) and \(d\) combine. Geometrically, complex number addition is vector addition on the complex plane.
Subtraction
Subtraction also works component-by-component. You subtract the second real part from the first real part and subtract the second imaginary coefficient from the first imaginary coefficient. Geometrically, \(z_1-z_2\) represents the vector from \(z_2\) to \(z_1\).
Multiplication
Multiplication uses expansion and the identity \(i^2=-1\). The \(bd i^2\) term becomes \(-bd\), so it moves into the real part. This is why the real part of the product is \(ac-bd\), not \(ac+bd\).
Division
Division uses the conjugate of the denominator. Multiplying \(c+di\) by \(c-di\) removes the imaginary part from the denominator because \((c+di)(c-di)=c^2+d^2\). This process is similar to rationalizing a radical denominator, except the tool is a complex conjugate.
Worked Examples
Example 1: Add complex numbers
Find \((3+4i)+(2-5i)\).
The real parts add to \(5\), and the imaginary coefficients add to \(-1\). The final answer is \(5-i\).
Example 2: Subtract complex numbers
Find \((3+4i)-(2-5i)\).
Be careful with the negative sign. Subtracting \(-5i\) is the same as adding \(5i\).
Example 3: Multiply complex numbers
Find \((3+4i)(2-5i)\).
The final real part includes \(20\) because \(-20i^2=-20(-1)=20\).
Example 4: Divide complex numbers
Find \(\frac{3+4i}{2-5i}\).
Multiplying by the conjugate changes the denominator into a real number, making the result easier to simplify.
Modulus, Argument, Conjugate, and Polar Form
A complex number can be analyzed in several connected ways. Rectangular form \(a+bi\) is useful for addition and subtraction. Polar form is useful for multiplication, division, powers, roots, rotations, and trigonometric interpretation. The calculator includes both because many students need to move between algebraic and geometric viewpoints.
Complex conjugate
The conjugate keeps the real part the same and reverses the sign of the imaginary part. On the complex plane, the conjugate is the reflection across the real axis. Conjugates are especially important in division because they remove the imaginary part from the denominator.
Modulus
The modulus is the distance from the origin to the point \((a,b)\). This is exactly the Pythagorean theorem applied to the right triangle formed by the real and imaginary components. For \(3+4i\), the modulus is \(\sqrt{3^2+4^2}=5\).
Argument
The argument is the angle from the positive real axis to the vector representing the complex number. A calculator should use the two-input arctangent function \(\operatorname{atan2}(b,a)\), because ordinary \(\tan^{-1}\left(\frac{b}{a}\right)\) can give an angle in the wrong quadrant if used without adjustment.
Polar form
In polar form, \(r=|z|\) gives the distance from the origin and \(\theta=\arg(z)\) gives the direction. Polar form explains why multiplying complex numbers multiplies their moduli and adds their arguments. It also connects complex numbers to trigonometry and Euler's formula.
Complex Numbers on the Complex Plane
The complex plane turns the expression \(a+bi\) into a point or vector. The real part \(a\) is plotted on the horizontal axis, and the imaginary part \(b\) is plotted on the vertical axis. For example, \(3+4i\) corresponds to the point \((3,4)\). The number \(-2-5i\) corresponds to \((-2,-5)\). The number \(7\) is \(7+0i\), so it lies on the real axis. The number \(-3i\) is \(0-3i\), so it lies on the imaginary axis.
This geometric interpretation makes addition easy to understand. Adding \(z_1\) and \(z_2\) combines their horizontal components and their vertical components. That is why \((a+bi)+(c+di)=(a+c)+(b+d)i\). It is exactly the same idea as adding coordinate vectors \((a,b)+(c,d)=(a+c,b+d)\). Subtraction also has a geometric meaning: \(z_1-z_2\) gives the directed difference from \(z_2\) to \(z_1\), and \(|z_1-z_2|\) gives the distance between their points.
Multiplication is more subtle. In rectangular form, multiplication looks like algebraic expansion. In polar form, it becomes a transformation: multiply the distances and add the angles. If \(z_1=r_1e^{i\theta_1}\) and \(z_2=r_2e^{i\theta_2}\), then:
Division works similarly. Dividing complex numbers divides their distances and subtracts their angles:
This is why complex numbers are so important in rotation, waves, and oscillations. Multiplication by \(i\), for instance, rotates a complex number \(90^\circ\) counterclockwise around the origin. Multiplication by \(-1\) rotates it \(180^\circ\). Multiplication by a complex number with modulus \(1\) changes direction without changing length.
Common Mistakes with Complex Numbers
- Forgetting \(i^2=-1\). This is the most important simplification rule. Whenever \(i^2\) appears, replace it with \(-1\).
- Calling \(bi\) the imaginary part. The imaginary part is \(b\), the coefficient of \(i\), not the full term \(bi\).
- Combining unlike terms. Real terms combine with real terms, and imaginary terms combine with imaginary terms.
- Using the wrong sign in subtraction. Distribute the negative sign to both parts of the second complex number.
- Multiplying incorrectly. The product real part is \(ac-bd\), not \(ac+bd\), because \(bd i^2=-bd\).
- Dividing without the conjugate. To divide by \(c+di\), multiply numerator and denominator by \(c-di\).
- Ignoring division by zero. A complex denominator \(c+di\) is zero only when both \(c=0\) and \(d=0\).
- Using ordinary arctangent without quadrant adjustment. Use \(\operatorname{atan2}(b,a)\) for the argument when possible.
A good checking habit is to compare the rectangular and polar interpretations. For example, after multiplying two complex numbers, the modulus of the result should equal the product of the original moduli. After dividing, the modulus of the result should equal the quotient of the moduli. These checks help detect arithmetic errors quickly.
How to Check Your Complex Number Answer
Checking complex number work is easier when you know which property should stay consistent. For addition and subtraction, check the real and imaginary components separately. If \(z_1=3+4i\) and \(z_2=2-5i\), then \(z_1+z_2=5-i\). The real parts \(3\) and \(2\) add to \(5\), while the imaginary coefficients \(4\) and \(-5\) add to \(-1\). If either part does not match the component rule, the answer is wrong.
For multiplication, expand carefully and then use a modulus check. If \(z_1=3+4i\), then \(|z_1|=5\). If \(z_2=2-5i\), then \(|z_2|=\sqrt{29}\). The product should have modulus \(5\sqrt{29}\). Since \((3+4i)(2-5i)=26-7i\), its modulus is \(\sqrt{26^2+(-7)^2}=\sqrt{725}=5\sqrt{29}\). The match confirms the multiplication is consistent.
For division, multiply your answer by the denominator to see if you get the numerator back. If \(\frac{z_1}{z_2}=w\), then \(wz_2=z_1\), as long as \(z_2\neq0\). You can also check moduli: \(\left|\frac{z_1}{z_2}\right|=\frac{|z_1|}{|z_2|}\). If your result fails both checks, the error is probably in the conjugate multiplication or denominator simplification.
For conjugates, check that only the imaginary sign changes. If \(z=-6+8i\), then \(\bar z=-6-8i\). The real part stays \(-6\). The imaginary coefficient changes from \(8\) to \(-8\). The modulus remains the same: \(|z|=|\bar z|\). Also, \(z\bar z=|z|^2\), which is always a nonnegative real number.
For arguments, check the quadrant. The angle for \(3+4i\) is in Quadrant I, so it should be positive and acute. The angle for \(-3+4i\) is in Quadrant II, so it should be between \(90^\circ\) and \(180^\circ\). The angle for \(-3-4i\) is in Quadrant III, often represented as a negative angle between \(-180^\circ\) and \(-90^\circ\) if principal arguments are used. Quadrant checking prevents most argument errors.
Complex Numbers in Algebra, Trigonometry, and Applications
Complex numbers are not limited to isolated arithmetic exercises. They form a major bridge between algebra and trigonometry. Euler's formula, \(e^{i\theta}=\cos\theta+i\sin\theta\), shows that complex exponentials encode rotations and waves. This is why complex numbers appear naturally in alternating current circuits, signal processing, Fourier analysis, control systems, quantum mechanics, fluid dynamics, and many engineering models.
In algebra, complex numbers complete the solution set of polynomial equations. The Fundamental Theorem of Algebra states that every nonconstant polynomial with complex coefficients has a complex root, counted with multiplicity. This means polynomial equations become more complete and predictable when complex numbers are allowed. For example, \(x^2+4=0\) has no real roots, but it has complex roots \(x=2i\) and \(x=-2i\).
In trigonometry, complex numbers offer a compact way to describe rotations. The expression \(\cos\theta+i\sin\theta\) represents a point on the unit circle. Multiplying by this expression rotates another complex number by \(\theta\). This makes many trigonometric identities easier to understand and prove. De Moivre's theorem follows from this idea:
In school mathematics, complex numbers appear in quadratic equations, polynomial roots, polar coordinates, vectors, transformations, and advanced functions. In IB Mathematics, AP Precalculus, A-level Mathematics, and university algebra, students are often expected to convert between rectangular and polar forms, plot complex numbers, compute moduli and arguments, and apply conjugates in division. A calculator is useful for checking arithmetic, but the formulas are what make the method transferable.
For related study, review the Complex Numbers IB guide, the Complex Plane guide, and the All Math Formulas page. These support the same topic cluster from different angles: algebraic operations, geometric interpretation, and formula reference.
Practice Problems
Try these by hand, then use the calculator above to check your answers.
| Problem | Method | Answer |
|---|---|---|
| \((4+3i)+(1-8i)\) | Add real parts and imaginary coefficients. | \(5-5i\) |
| \((7-2i)-(-3+6i)\) | Distribute the subtraction sign. | \(10-8i\) |
| \((2+i)(5-3i)\) | Expand and use \(i^2=-1\). | \(13-i\) |
| \(\frac{1+2i}{3-i}\) | Multiply by the conjugate \(3+i\). | \(\frac{1}{10}+\frac{7}{10}i\) |
| \(|-6+8i|\) | Use \(\sqrt{a^2+b^2}\). | \(10\) |
When practicing, do not jump directly to a calculator for every step. First identify the operation and write the formula. Then substitute the values. After that, simplify real and imaginary parts separately. The calculator is best used as a checking tool and a learning tool.
When to Use Rectangular Form and When to Use Polar Form
One of the most important decisions in complex number work is choosing the right form. Rectangular form, \(a+bi\), is usually best when you are adding or subtracting. This is because addition and subtraction happen component by component. You combine real parts and imaginary parts directly, which makes the rectangular form efficient and easy to check. If a question gives numbers like \(7-3i\) and \(-2+9i\), staying in rectangular form is usually the clearest path.
Polar form is usually better for multiplication, division, powers, and roots. In rectangular form, multiplication requires expansion and careful simplification of \(i^2\). In polar form, multiplication becomes a simple rule: multiply the moduli and add the arguments. Division becomes similarly simple: divide the moduli and subtract the arguments. This is one reason polar form appears so often in trigonometry, complex roots, De Moivre's theorem, and engineering applications involving rotation or oscillation.
For example, if \(z_1=5e^{i30^\circ}\) and \(z_2=2e^{i40^\circ}\), then \(z_1z_2=10e^{i70^\circ}\). This is much faster than converting both numbers to rectangular form, multiplying binomials, simplifying, and then possibly converting back. The geometric meaning is also clear: the product has a distance of \(10\) from the origin and an angle of \(70^\circ\).
However, rectangular form is often preferred for final answers in basic algebra classes. Many textbooks ask students to express the answer in the form \(a+bi\), even if polar form helped during the process. This calculator gives rectangular results first because that is the most common expected answer, but it also displays polar form so students can see the deeper structure of the result.
A practical rule is this: use rectangular form when the operation is linear, and use polar form when the operation involves multiplication-like behavior. Addition and subtraction are linear, so rectangular coordinates are natural. Multiplication, division, powers, and roots involve scale and rotation, so polar coordinates are natural. Knowing when to switch forms is a major step toward fluency with complex numbers.
How Complex Division Really Works
Complex division often feels difficult because the denominator contains an imaginary part. The goal is to rewrite the denominator as a real number, because real denominators are easier to interpret and simplify. The key identity is:
This works because the middle imaginary terms cancel:
Since \(c^2+d^2\) is real and nonnegative, the denominator becomes manageable. It equals zero only when \(c=0\) and \(d=0\). That is why division by \(0+0i\) is undefined, while division by any other complex number is valid.
After multiplying the numerator by the conjugate, you collect the real and imaginary parts separately. The full formula is:
This means the real part of the quotient is \(\frac{ac+bd}{c^2+d^2}\), and the imaginary part is \(\frac{bc-ad}{c^2+d^2}\). The calculator uses this exact formula for division. If the denominator is \(0+0i\), it stops and displays an error because no valid quotient exists.
To check a division answer, multiply the quotient by the denominator. If the original numerator returns, the division is correct. For example, if \(\frac{1+2i}{3-i}=\frac{1}{10}+\frac{7}{10}i\), then multiplying \(\left(\frac{1}{10}+\frac{7}{10}i\right)(3-i)\) should give \(1+2i\). This reverse check is especially useful in exam work because sign errors in the conjugate step are common.
Why Complex Numbers Matter Beyond the Calculator
Complex numbers are often introduced as a way to solve equations with negative square roots, but their importance is much larger. They create a number system where polynomial equations behave more completely. Over the real numbers, some equations have no solutions. Over the complex numbers, every nonconstant polynomial has a full set of roots when multiplicity is counted. This makes algebra more systematic and gives mathematicians a powerful language for describing transformations.
Complex numbers also represent two-dimensional motion cleanly. A complex number can store both a horizontal and vertical component in one object. This is why addition behaves like vector addition. The real part tracks horizontal movement, and the imaginary part tracks vertical movement. A complex number can therefore act like a compact coordinate, vector, or transformation depending on context.
In trigonometry, complex numbers connect directly to the unit circle. Euler's formula, \(e^{i\theta}=\cos\theta+i\sin\theta\), is one of the most important formulas in mathematics because it unites exponential functions, trigonometric functions, and the imaginary unit. From this formula, rotations can be represented by multiplication. A point can be rotated by multiplying by \(\cos\theta+i\sin\theta\), which has modulus \(1\).
In physics and engineering, complex numbers are used to model waves, alternating current, impedance, oscillations, and signals. Instead of tracking sine and cosine components separately, complex exponentials encode amplitude and phase in a compact form. This makes calculations cleaner, especially when signals are added, shifted, filtered, or transformed. The same arithmetic rules in this calculator appear in real applications such as circuit analysis and Fourier transforms.
In education, complex numbers train students to handle definitions carefully. The statement \(i^2=-1\) is simple, but it changes how multiplication works. The distinction between \(b\) and \(bi\) teaches precision. The relationship between \(a+bi\), \(r(\cos\theta+i\sin\theta)\), and \(re^{i\theta}\) shows how the same object can be expressed in multiple useful ways. This is similar to how quadratics can be written in standard, vertex, or factored form depending on the task.
Step-by-Step Study Strategy
If you are learning complex numbers, begin with rectangular form. Make sure you can identify the real part, the imaginary part, and the conjugate of a number. Practice writing numbers such as \(5\), \(-3i\), \(2+i\), and \(-7-4i\) in the form \(a+bi\). This builds the foundation for all later operations.
Next, practice addition and subtraction until they feel like coordinate arithmetic. These are the simplest operations because they only require combining like parts. Once that is comfortable, move to multiplication. Multiplication is the point where the rule \(i^2=-1\) becomes essential. Expand slowly and rewrite \(i^2\) immediately so that it does not remain in the final answer.
After multiplication, learn conjugates and division together. Conjugates are useful on their own, but they become especially meaningful when used to divide complex numbers. Practice multiplying \(a+bi\) by \(a-bi\) until you can see why the product is always \(a^2+b^2\). This identity is the backbone of rationalizing complex denominators.
Then study modulus and argument. These ideas move complex numbers from algebra into geometry. Plot each number as \((a,b)\), draw a line from the origin, and identify the distance and angle. This visual step makes polar form much easier. Without the geometric picture, polar form may feel like a formula to memorize. With the picture, it becomes a natural description of distance and direction.
Finally, use the calculator as a verification tool rather than a replacement for reasoning. Enter your values, compare the output with your handwritten work, and read the formula lines. If your answer differs, look at which part changed: real component, imaginary component, denominator, modulus, or angle. That diagnosis helps you find the exact type of mistake and fix it quickly.
FAQ
What is a complex number?
A complex number is a number of the form \(a+bi\), where \(a\) is the real part, \(b\) is the imaginary part, and \(i^2=-1\).
How do you add complex numbers?
Add real parts together and imaginary coefficients together: \((a+bi)+(c+di)=(a+c)+(b+d)i\).
How do you multiply complex numbers?
Expand like binomials and replace \(i^2\) with \(-1\): \((a+bi)(c+di)=(ac-bd)+(ad+bc)i\).
How do you divide complex numbers?
Multiply numerator and denominator by the conjugate of the denominator. For \(\frac{a+bi}{c+di}\), multiply by \(\frac{c-di}{c-di}\), then simplify.
What is the modulus of a complex number?
The modulus is the distance from the origin in the complex plane. For \(z=a+bi\), \(|z|=\sqrt{a^2+b^2}\).
What is the argument of a complex number?
The argument is the angle the complex number makes with the positive real axis. It is often calculated using \(\operatorname{atan2}(b,a)\).
Related Num8ers Resources
Continue learning with these closely related Num8ers pages.