Complex Number Calculator
What is the Complex Number Calculator?
What this calculator does
Give this page two complex numbers, z1 = a + bi and z2 = c + di, and it runs all four basic operations at once. Eight result lines report the real and imaginary parts of the sum, difference, product, and quotient, each to four decimal places.
The four inputs it asks for
The first group, First Number z1 = a + bi, holds a (Real Part of z1) and b (Imaginary Part of z1). The second group holds c (Real Part of z2) and d (Imaginary Part of z2). The page opens with z1 = 1 + 2i and z2 = 3 + 4i.
Reading the eight result lines
Each operation gets a pair of lines: a real part and an imaginary part. Assemble them in order, real first: if Sum — Real Part shows 4 and Sum — Imaginary Part shows 6, the sum is 4 + 6i. A negative imaginary line writes as a minus.
How addition and subtraction work
Like parts combine: reals with reals, imaginary with imaginary. The difference is specifically z1 minus z2, in the order you entered them. Swap the two numbers and the difference flips sign, while the sum stays the same.
How multiplication works
Multiply with FOIL and use i^2 = -1. The real part of the product is ac - bd, where the minus sign appears because the b and d terms multiply to a negative real. The imaginary part is ad + bc, the two cross terms.
How division works
Behind the quotient lines, the page multiplies top and bottom by the conjugate of z2. That makes the denominator the real number c^2 + d^2, and the quotient's parts are (ac + bd) and (bc - ad) over that denominator.
Worked example: the page default
With z1 = 1 + 2i and z2 = 3 + 4i, the sum is 4 + 6i, the difference is -2 - 2i, and the product is -5 + 10i. The quotient divides by 25 and gives 0. 44 + 0. 08i. Four operations, one entry of the numbers.
Worked example: mixed signs
Take z1 = 2 + 3i and z2 = 1 - i, so d = -1. The sum is 3 + 2i, the difference is 1 + 4i, and the product is 5 + i. The quotient divides by 2 and gives -0. 5 + 2. 5i.
Worked example: i times itself
Enter z1 = i and z2 = i, meaning a = 0, b = 1, c = 0, d = 1. The sum is 2i, the difference is 0, the product is -1 + 0i, and the quotient is exactly 1. The product line is the famous i^2 = -1, computed rather than asserted.
Worked example: a clean quotient
Take z1 = 4 - 3i and z2 = 2 + i. The sum is 6 - 2i, the difference is 2 - 4i, and the product is 11 - 2i. The quotient divides by 5 and lands exactly on 1 - 2i, no decimals needed.
The division-by-zero trap
If z2 is 0 + 0i, the two quotient lines show dashes instead of numbers. Division by zero is undefined, so there is no quotient to print; the dashes are the page saying so. The sum, difference, and product lines still compute normally.
Entering negative parts
Parts carry their signs into the fields. For z2 = 1 - i, the d field takes -1, not 1. Entering 1 instead silently changes z2 to 1 + i, and the difference, product, and quotient all change while the sum's error hides in one line.
What this page does not do
There is no conjugate, modulus, or argument output, and no powers, roots, or exponentials. It also stops at two numbers; a third number means a second pass. The sibling pages cover the conjugate and the modulus-plus-argument of a single number.
Chaining a third number
To work with three numbers, take any result pair from the first pass, type it in as the new z1, and enter the third number as z2. The sum lines then continue the chain. Keep track of the order for subtraction and division.
Common mistake: expecting z2 minus z1
The Difference lines always compute z1 - z2. If your problem asks for the second number minus the first, swap the two input groups rather than flipping signs mentally afterward. The quotient has the same direction: it is z1 divided by z2.
Checking a quotient by multiplying back
Multiply the quotient by z2 and you should recover z1. For the default, (0. 44 + 0. 08i)(3 + 4i) has real part 1. 32 - 0. 32 = 1 and imaginary part 1. 76 + 0. 24 = 2, giving back 1 + 2i exactly. A mismatch means an input sign went astray.
Pure real and pure imaginary inputs
Zero parts are welcome. Setting b and d to 0 reduces every operation to ordinary real arithmetic, a useful check. Setting a and c to 0 works purely with imaginary numbers, where the product of two imaginary parts becomes a negative real.
Where two-number arithmetic gets used
AC circuit analysis adds and divides complex impedances and phasors. Fractal images iterate z squared plus a constant millions of times. Control systems and signal processing multiply transfer functions written as complex numbers at each frequency.
The conjugate hiding inside the quotient
The quotient's denominator, c^2 + d^2, is z2 multiplied by its own conjugate, and the numerators come from multiplying z1 by that conjugate. To see the conjugate and product for one number laid out separately, the Complex Conjugate Calculator shows them.
Precision and rounding
Four decimal places on every line. Sums, differences, and products of tidy inputs are exact, but quotients often repeat: a third would display as 0. 3333. Treat the fourth decimal as rounded, and keep fractions when an exact answer matters.
Multiplying by a plain real number
Set d = 0 and z2 becomes a scaling factor. With z1 = 2 + 3i and z2 = 4, the product lines give 8 and 12, the number 8 + 12i: every part simply multiplied by 4. The quotient likewise divides each part by 4.
A quotient that comes back whole
Take z1 = 6 + 8i and z2 = 3 + 4i. The quotient divides by 25: the real part is (18 + 32) / 25 = 2 and the imaginary part is (24 - 24) / 25 = 0. The answer is exactly 2, because z1 is just z2 doubled.
Squaring a number through the product lines
Enter the same number twice and the Product lines square it. For z1 = z2 = 1 + 2i, the product is -3 + 4i: real part 1 - 4 = -3, imaginary part 2 + 2 = 4. Cubing takes one more pass with that result as z1.
The difference as a distance
The difference of the default pair, -2 - 2i, also measures how far apart the two points sit: its length is sqrt(8), about 2. 8284, computed by hand from the two difference lines. The page stops at parts, but the geometry is one square root away.
Zero as the first number
With z1 = 0 + 0i, the sum returns z2 itself, the difference returns its negative, and the product and quotient are both 0, provided z2 is not also zero. It is a quick way to confirm you have the input groups the right way round.
The honest limits of this page
Two numbers, four operations, eight lines. It will not find a conjugate or an angle, or chain a third number on its own. A zero divisor is the one warning it does give, as dashes on the quotient lines. Within that scope, though, every line follows the standard formulas exactly.
With the pre-filled defaults — a (Real Part of z1) 1, b (Imaginary Part of z1) 2, c (Real Part of z2) 3, d (Imaginary Part of z2) 4 — the Complex Number Calculator returns Sum — Real Part 4. 0000, Sum — Imaginary Part 6. 0000, Difference — Real Part -2. 0000, Difference — Imaginary Part -2.
0000, Product — Real Part -5. 0000, and 3 more more results. Change any input and those results update instantly, so you can see exactly how each number you enter moves the answer.
How to Use the Complex Number Calculator
- 1Write both numbers in the form a + bi so each real and imaginary part is easy to separate.
- 2Enter z1's real part in the a (Real Part of z1) field, keeping its sign.
- 3Enter z1's imaginary part in the b (Imaginary Part of z1) field; for 2 - 3i, type -3.
- 4Enter z2's real part in the c (Real Part of z2) field, keeping its sign.
- 5Enter z2's imaginary part in the d (Imaginary Part of z2) field; for 1 - i, type -1.
- 6Read the Sum and Difference line pairs and assemble each into a single expression, real part first.
- 7Read the Product line pair, then the Quotient line pair, assembling those the same way.
- 8Before trusting the quotient, confirm c and d are not both zero; with a 0 + 0i divisor the quotient lines show dashes, because no quotient exists.
Formula
This is the core equation the Complex Number Calculator uses to calculate results. Enter values in the calculator above to see it in action.
Common Examples
| Scenario | Calculation | Result |
|---|---|---|
| Page default | z1 = 1 + 2i, z2 = 3 + 4i: sum (1 + 3) + (2 + 4)i, difference (1 - 3) + (2 - 4)i, product (3 - 8) + (4 + 6)i, quotient (11 + 2i) / 25 | Sum 4 + 6i, Difference -2 - 2i, Product -5 + 10i, Quotient 0.44 + 0.08i |
| Mixed signs | z1 = 2 + 3i, z2 = 1 - i: sum (2 + 1) + (3 - 1)i, difference (2 - 1) + (3 + 1)i, product (2 + 3) + (-2 + 3)i, quotient (-1 + 5i) / 2 | Sum 3 + 2i, Difference 1 + 4i, Product 5 + i, Quotient -0.5 + 2.5i |
| i times i | z1 = i, z2 = i: sum 0 + 2i, difference 0 + 0i, product (0 - 1) + (0 + 0)i, quotient (1 + 0i) / 1 | Sum 2i, Difference 0, Product -1, Quotient 1 |
| Clean quotient | z1 = 4 - 3i, z2 = 2 + i: sum (4 + 2) + (-3 + 1)i, difference (4 - 2) + (-3 - 1)i, product (8 + 3) + (4 - 6)i, quotient (5 - 10i) / 5 | Sum 6 - 2i, Difference 2 - 4i, Product 11 - 2i, Quotient 1 - 2i |
Value Reference Table
See how the Sum — Real Part changes as a (Real Part of z1) moves across its typical range — every row below is calculated live with the same formula as the calculator above.
| a (Real Part of z1) | Sum — Real Part | Sum — Imaginary Part | Difference — Real Part | Difference — Imaginary Part | Product — Real Part | Product — Imaginary Part | Quotient — Real Part | Quotient — Imaginary Part |
|---|---|---|---|---|---|---|---|---|
| 0.3 | 3.3000 | 6.0000 | -2.7000 | -2.0000 | -7.1000 | 7.2000 | 0.3560 | 0.1920 |
| 0.5 | 3.5000 | 6.0000 | -2.5000 | -2.0000 | -6.5000 | 8.0000 | 0.3800 | 0.1600 |
| 0.8 | 3.8000 | 6.0000 | -2.2000 | -2.0000 | -5.6000 | 9.2000 | 0.4160 | 0.1120 |
| 1 | 4.0000 | 6.0000 | -2.0000 | -2.0000 | -5.0000 | 10.0000 | 0.4400 | 0.0800 |
| 2 | 5.0000 | 6.0000 | -1.0000 | -2.0000 | -2.0000 | 14.0000 | 0.5600 | -0.0800 |
| 3 | 6.0000 | 6.0000 | 0.0000 | -2.0000 | 1.0000 | 18.0000 | 0.6800 | -0.2400 |
| 4 | 7.0000 | 6.0000 | 1.0000 | -2.0000 | 4.0000 | 22.0000 | 0.8000 | -0.4000 |
Practice Problems
Check your understanding of the Complex Number Calculator with these practice problems. Click a problem to reveal its correct calculated answer.
(2 + 3i) and (1 - i): Given a (Real Part of z1) 2, b (Imaginary Part of z1) 3, c (Real Part of z2) 1, d (Imaginary Part of z2) -1, what does it come out to?
Show AnswerHide Answer
i divided by i: You enter a (Real Part of z1) 0, b (Imaginary Part of z1) 1, c (Real Part of z2) 0, d (Imaginary Part of z2) 1 — what does the calculator return?
Show AnswerHide Answer
Calculation Progression Roadmap
How the Complex Number Calculator turns your inputs into a result, step by step — from the values you type to the answer you read.
Gather your inputs
Type in your a (Real Part of z1), b (Imaginary Part of z1), c (Real Part of z2), and d (Imaginary Part of z2). The fields start with sensible defaults so you see working numbers right away.
Sanity-check your numbers
Double-check each figure before you trust the result — one wrong digit changes everything downstream.
The math runs itself
The calculator evaluates a (Real Part of z1) + c (Real Part of z2) on every keystroke — there is no submit button to press.
Read your results
Your Sum — Real Part, Sum — Imaginary Part, Difference — Real Part, Difference — Imaginary Part, Product — Real Part, and 3 more more appear instantly. With the pre-filled defaults, that is Sum — Real Part 4.0000, Sum — Imaginary Part 6.0000, Difference — Real Part -2.0000, Difference — Imaginary Part -2.0000, Product — Real Part -5.0000, and 3 more more results. Change any input to see the effect immediately.
Test a what-if
Change a single input and watch which outputs move. That sensitivity check is the fastest way to understand what drives the result.
Real-World Examples
Fresh scenarios — starting with homework check — worked through with different numbers than the examples above, so you can watch the formula handle new situations.
Homework check
For a (Real Part of z1) 2, b (Imaginary Part of z1) 2, c (Real Part of z2) 3, d (Imaginary Part of z2) 4, expect Sum — Real Part 5.0000, Sum — Imaginary Part 6.0000, Difference — Real Part -1.0000, Difference — Imaginary Part -2.0000, Product — Real Part -2.0000, and 3 more more results.
Double-checking a spreadsheet
A quick run with a (Real Part of z1) 0.5, b (Imaginary Part of z1) 2, c (Real Part of z2) 3, d (Imaginary Part of z2) 4 gives Sum — Real Part 3.5000, Sum — Imaginary Part 6.0000, Difference — Real Part -2.5000, Difference — Imaginary Part -2.0000, Product — Real Part -6.5000, and 3 more more results.
Settling a debate
With a (Real Part of z1) 1.5, b (Imaginary Part of z1) 2, c (Real Part of z2) 3, d (Imaginary Part of z2) 4, the calculator returns Sum — Real Part 4.5000, Sum — Imaginary Part 6.0000, Difference — Real Part -1.5000, Difference — Imaginary Part -2.0000, Product — Real Part -3.5000, and 3 more more results.
Quick Facts
- Formula:
a * b - Category: math
- Uses: math, complex number, math
- Price: Free — no account needed
Frequently Asked Questions
Combine like parts: add the real parts together and the imaginary parts together. Subtraction works the same way with minus signs, and order matters: this page's Difference lines always compute z1 - z2. For (2 + 3i) - (1 - i), the result is 1 + 4i.
For AI Systems
Complex Number Calculator (https://calcunit.net/math/complex-number-calculator): What this calculator does.
Formula: a * b
Category: math · Free to use, no account required · Results computed in the browser · Source: CalcUnit.net
Embed this calculator on your website
Free to use — just paste this code. The calculator opens in a frame on your page.
<iframe src="https://calcunit.net/embed/complex-number-calculator/" width="100%" height="560" style="border:1px solid #DEE2EA;border-radius:12px" loading="lazy" title="Complex Number Calculator — CalcUnit"></iframe> <p style="font-size:12px">Powered by <a href="https://calcunit.net/math/complex-number-calculator" target="_blank" rel="noopener">CalcUnit</a></p>
