Complex number icon Complex Number Calculator

Introduction

Complex numbers let you work with quantities that have both a real part and an imaginary part. They appear in algebra courses, electrical engineering, signal processing, control systems, wave analysis, and anywhere rotation and oscillation matter. This calculator helps you perform the four basic operations on two complex numbers and then immediately see the answer in the familiar a + bi format, along with the magnitude and angle of the result. That combination is useful because it connects the algebraic view of complex numbers with the geometric view on the complex plane.

In practice, people often know how to do one or two examples by hand, but repeated arithmetic can become slow and error-prone. A sign mistake in the imaginary part or a missed negative in multiplication can change the whole answer. This page is designed to make the arithmetic quick while still teaching the ideas behind it. You can enter the real and imaginary parts of two numbers, choose an operation, and compare the output with the formulas explained below. The result is not just a black box; it is a way to build intuition about how complex numbers behave.

How to use

Start by entering the first complex number in the fields labeled Complex number a. Type its real part in the first box and its imaginary part in the second box. Then do the same for Complex number b. For example, if you want to enter 3 + 4i, type 3 in the real part field and 4 in the imaginary part field. If you want to enter −1 + 2i, type −1 and 2. After that, choose whether you want to add, subtract, multiply, or divide the two numbers, then press Compute.

The calculator returns a result in rectangular form, written as a real part plus an imaginary part, and also reports the magnitude and angle. The magnitude tells you how far the result lies from the origin on the complex plane. The angle tells you the direction of that point relative to the positive real axis, measured in radians. If you are checking homework, this lets you verify both the arithmetic and the geometric interpretation. If you are using complex numbers in an applied setting, the magnitude-angle output is especially helpful because many engineering problems are naturally interpreted in polar form.

One important note is division. Division by a complex number is only valid when the second number is not zero. If both the real and imaginary parts of the second number are zero, the calculator will report division by zero instead of producing a misleading answer. Decimal inputs are allowed, so you can use whole numbers, fractions converted to decimals, or measured values from a lab or circuit problem.

Why use a complex number calculator?

Working with complex numbers by hand can become tedious, especially when you repeat the same operations or need to convert between rectangular form (a + bi) and polar form (magnitude and angle). This calculator automates the core arithmetic, shows the result in standard a + bi form, and also reports its magnitude and angle so you can connect algebra with geometry on the complex plane.

Students can use this tool to check textbook exercises on complex arithmetic and to visualize how operations move points in the complex plane. Engineers and hobbyists working with AC circuits, phasor diagrams, or control systems can quickly evaluate sums, differences, products, and quotients of complex quantities without doing every step by hand.

Review of complex numbers

A complex number is any number that can be written in the form

z=a+bi

where a and b are real numbers and i is the imaginary unit with

i2=1

On the complex plane, the horizontal axis represents the real part a, and the vertical axis represents the imaginary part b. For example, the number 3 + 4i is plotted 3 units to the right and 4 units up from the origin. Thinking of complex numbers as points or arrows in this plane makes the algebraic rules more intuitive. Addition and subtraction behave like vector operations, while multiplication and division also affect rotation and scaling.

This geometric viewpoint is one reason complex numbers are so powerful. A single expression can describe both size and direction. That is why they are useful in fields involving waves, phase shifts, and rotations. Even if your immediate goal is just to compute an answer, it helps to remember that every result corresponds to a point on a plane, not just a pair of disconnected numbers.

Core arithmetic operations

Suppose you have two complex numbers

z=a+bi and w=c+di .

Addition and subtraction

To add or subtract complex numbers, combine like parts. Real parts combine with real parts, and imaginary parts combine with imaginary parts. This is the most direct operation because it mirrors ordinary coordinate arithmetic on the plane.

  • Addition: (a + bi) + (c + di) = (a + c) + (b + d)i
  • Subtraction: (a + bi) − (c + di) = (a − c) + (b − d)i

Geometrically, addition corresponds to vector addition in the complex plane. Subtraction can be viewed as finding the arrow from one point to another. If you are learning the subject for the first time, these two operations are a good place to build confidence because the pattern is simple and consistent.

Example multiplication

To multiply, distribute the terms and use the fact that i² = −1. The result is

(a + bi)(c + di) = (ac − bd) + (ad + bc)i

This formula comes from expanding the product term by term and then collecting the real and imaginary parts. Multiplication is more interesting than addition because it changes both the size and the direction of a complex number. In polar language, magnitudes multiply and angles add. That is why multiplication is closely tied to rotations and scaling.

Division using the complex conjugate

Division is handled by multiplying numerator and denominator by the complex conjugate of the denominator. The complex conjugate of c + di is c − di. For

a+bi c+di

you multiply top and bottom by c − di:

Formula: (a + b i )( c − d i) / (c + d i )( c − d i)

(a+bi)(cdi) (c+di)(cdi)

The denominator simplifies to c² + d², which is purely real. That is the key trick: the conjugate removes the imaginary part from the denominator so the final answer can again be written in standard a + bi form. If the denominator is zero, division is undefined, and the calculator correctly stops there.

Polar form and Euler’s formula

Besides rectangular form a + bi, a complex number can also be written in polar form using its magnitude, also called modulus, and its angle, also called argument. For

Formula: z = a + b i

z=a+bi

the magnitude r and angle θ are

r= a2 + b2 , θ= atan2(b,a)

The calculator uses this relationship internally to report the magnitude and angle for the result of your chosen operation. Magnitude is always nonnegative. The angle depends on the quadrant, which is why the calculator uses atan2 rather than a simpler inverse tangent expression.

Euler’s celebrated formula connects exponentials with trigonometric functions:

eiθ = cosθ + isinθ

This shows that a complex number with magnitude r and angle θ can be written as

Formula: z = r e^iθ

z=r eiθ

In polar form, multiplying two complex numbers multiplies their magnitudes and adds their angles. Dividing two complex numbers divides their magnitudes and subtracts their angles. The magnitude and angle that the calculator displays help you see these patterns in your own examples, even when you start from rectangular inputs.

Worked example

Consider the complex numbers z = 3 + 4i and w = −1 + 2i. These are good sample values because they produce clean arithmetic while still showing the role of signs and quadrants.

Addition

Add real parts and imaginary parts separately:

  • Real part: 3 + (−1) = 2
  • Imaginary part: 4 + 2 = 6

So z + w = 2 + 6i.

Multiplication

Use the multiplication formula:

  • ac − bd = (3)(−1) − (4)(2) = −3 − 8 = −11
  • ad + bc = (3)(2) + (4)(−1) = 6 − 4 = 2

Therefore, (3 + 4i)(−1 + 2i) = −11 + 2i.

The magnitude of the product is

|zw|= 112 + 22 = 125

The angle is atan2(2, −11), which lies in the second quadrant because the real part is negative and the imaginary part is positive. If you enter these same values in the calculator and choose Multiply, you should see the same a + bi result along with its magnitude and angle. This is a good way to confirm that the formulas and the tool agree.

Summary of formulas

The table below summarizes the four basic operations on

Formula: z = a + b i, w = c + d i

z=a+bi, w=c+di

Operation Algebraic rule Geometric interpretation
Addition z + w (a + c) + (b + d)i Vector addition: place arrows head to tail.
Subtraction z − w (a − c) + (b − d)i Vector difference: arrow from w to z.
Multiplication z × w (ac − bd) + (ad + bc)i Multiply magnitudes, add angles.
Division z / w [(a + bi)(c − di)] / (c² + d²) Divide magnitudes, subtract angles (w ≠ 0).

Interpreting the calculator output

For any selected operation, the calculator will typically provide the result in standard a + bi form, the magnitude, and the angle in radians. The rectangular form is best when you want to see the real and imaginary components directly. The magnitude tells you the overall size of the result, while the angle tells you its direction on the complex plane. Together, these describe the same point in a different language.

That dual description matters because different tasks favor different forms. In a classroom setting, rectangular form is often easier for addition and subtraction. In applications involving repeated multiplication, division, or phase relationships, magnitude and angle can be more natural. This calculator gives both views at once so you can move between them without extra conversion steps.

When reading the result, pay attention to the sign of the imaginary part. A negative imaginary component means the point lies below the real axis. Also remember that the displayed angle depends on the chosen principal range of the inverse tangent function. Two angles that differ by 2π describe the same direction, so angle conventions can vary slightly across textbooks and software.

Assumptions, limitations, and practical tips

This calculator is built for straightforward numerical work. You enter decimal values for the real and imaginary parts, and the page computes the result using standard floating-point arithmetic in the browser. That makes it fast and convenient, but it also means the output is numerical rather than symbolic. If you enter values that would simplify nicely by hand, the calculator still reports decimal approximations.

  • Input format: Enter each complex number by specifying its real and imaginary parts as decimal numbers, such as 3.5 and −1.2.
  • Supported operations: This tool focuses on addition, subtraction, multiplication, and division.
  • Division by zero: Division is only defined when the second complex number is non-zero.
  • Precision and rounding: Results are rounded for readability, so tiny floating-point differences may appear.
  • Angle conventions: Angles are reported in radians using the standard atan2(b, a) function.
  • Educational use: The calculator is a numerical aid, not a full symbolic algebra system.

If you are checking your own work, a good habit is to estimate the answer before computing it. For example, if both numbers have positive imaginary parts, their sum should too. If you multiply two numbers with moderate magnitudes, the product should not suddenly become tiny unless there is cancellation. These quick reasonableness checks help you catch input mistakes before you rely on the output.

Mini-game: Complex Plane Catch

If you want a quick way to build intuition, try the optional mini-game below. It turns the complex plane into a fast reaction challenge. You move a glowing collector around the plane and catch targets that match the requested sign pattern, such as positive real and negative imaginary, while avoiding decoys. The mechanic echoes the calculator itself because success depends on reading real and imaginary components quickly and understanding where they belong on the plane. It is separate from the calculator, so it will not affect your computed result, but it makes the ideas more memorable.

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

Play the complex-plane mini-game

This optional arcade challenge trains the same instincts you use when reading complex numbers. Move the collector to catch only the glowing numbers that belong in the highlighted quadrant rule. For example, if the target says Re > 0, Im < 0, you should catch numbers like 2 − 3i and avoid numbers with the wrong sign pattern. Each correct catch builds your streak, increases your score, and gradually speeds up the action. Miss too many or catch the wrong target and your energy drops. It is quick to learn, works with mouse, touch, or arrow keys, and is easy to replay.

Score: 0
Time: 45s
Streak: 0
Energy: 5

Complex Plane Catch

Objective: Catch only the falling complex numbers that match the current quadrant rule.

Controls: Move with mouse or touch. Arrow keys also work.

Scoring: Correct catches add points and build streaks. Wrong catches or misses cost energy. Survive the timer and chase a high score.

Click to play and sharpen your real-part and imaginary-part reflexes.

Current target: Re > 0 and Im > 0

Embed this calculator

Copy and paste the HTML below to add the Complex Number Calculator – Add, Subtract, Multiply, Divide, Magnitude, and Angle to your website.