Elecmetric

Complex Numbers Calculator

Add, subtract, multiply or divide two complex numbers, or convert one between rectangular (a + jb) and polar (magnitude ∠ angle) form.

Z₁ real part (a) 3, z₁ imaginary part (b) 4, operation z₁ × z₂ (multiply), z₂ real part (c) 1 gives
Result magnitude |z|: 11.18034 · Result angle: -10.3048 · Result real part: 11

Estimate only. Not engineering or safety advice. Check the result against the applicable standard and the equipment data, and have a competent engineer review it before it is relied on. Terms of use.

Open in the calculator with these values

About this calculator

This page calculates result magnitude |z|, result angle, result real part and 4 more results from z₁ real part, z₁ imaginary part, operation, z₂ real part and 1 more input. Change any value or its unit and the result updates. The steps below show the working for the default values, so you can check each line against your own method.

Limits of this calculator

For impedance enter R as the real part and X as the imaginary part (X is positive for an inductor and negative for a capacitor). Multiplying two phasors multiplies the magnitudes and adds the angles; dividing divides the magnitudes and subtracts the angles. For a full AC circuit with a supply voltage use the AC Ohm's law calculator.

Cross-check: 70 reference cases, calculated from textbook formulas coded separately from the engine by the same author, agree with this calculator. This is not an independent review.

Verification status: Engineering reference

Engineering reference. Formula and method documented and tested against separately coded reference calculations. Not yet Verified: the evidence listed on this page is still needed.

What this calculator checks

What remains unverified

Verification register entry

Calculation authorRahul Sharma (author)
Technical reviewNo independent technical review has been carried out
Individual professional approvalNot recorded
Formula referencenot recorded
Standard and editionNot applicable: Pure mathematics or statistics; no electrical standard governs the method
Standard review stateNot applicable
Scope-screening notenot recorded
Cross-check test cases70 reference vectors (tests/reference_vectors.json)
Review datenot recorded
Next review datenot recorded
StatusEngineering reference

Needed before this calculator can be marked Verified: reviewer name, qualification and review date; exact formula reference; formula source (textbook or standard); next review date.

Formula

Magnitude |z| = √(a² + b²) Angle θ = atan2(b, a) a = |z| cos θ b = |z| sin θ (a + jb)(c + jd) = (ac − bd) + j(ad + bc) (a + jb) / (c + jd) = [(ac + bd) + j(bc − ad)] / (c² + d²)

Worked example

InputValue
z₁ real part (a)3
z₁ imaginary part (b)4
Operationz₁ × z₂ (multiply)
z₂ real part (c)1
z₂ imaginary part (d)-2
  1. z₁ = 3 + j4
  2. z₂ = 1 − j2
  3. z₁ × z₂ = (ac − bd) + j(ad + bc)
  4. ac − bd = 3 × 1 − 4 × -2 = 11
  5. ad + bc = 3 × -2 + 4 × 1 = -2
  6. Result = 11 − j2
  7. |z| = √(11² + -2²) = 11.18034 θ = atan2(-2, 11) = -10.3048°
  8. Polar form = 11.18034 ∠-10.305°

Assumptions

For impedance enter R as the real part and X as the imaginary part (X is positive for an inductor and negative for a capacitor). Multiplying two phasors multiplies the magnitudes and adds the angles; dividing divides the magnitudes and subtracts the angles. For a full AC circuit with a supply voltage use the AC Ohm's law calculator.

Inputs and results

InputUnitAllowed or shownNote
z₁ real part (a)(number)any numberz₁ = a + jb. For a phasor or impedance the real part is the resistance or the in-phase component.
z₁ imaginary part (b)(number)any numberThe coefficient of j. Inductive reactance is positive, capacitive reactance is negative.
Operation(choice)z₁ × z₂ (multiply); z₁ ÷ z₂ (divide); z₁ + z₂ (add); z₁ − z₂ (subtract); Convert z₁ only (rectangular to polar and back)
z₂ real part (c)(number)any numberz₂ = c + jd. Ignored when the operation is "Convert z₁ only".
z₂ imaginary part (d)(number)any numberThe coefficient of j in z₂. Ignored when converting z₁ only.
ResultUnitAllowed or shownNote
Result magnitude |z|(number)Shown to 6 decimal places
Result angle (degrees)(number)Shown to 4 decimal places
Result real part(number)Shown to 6 decimal places
Result imaginary part (coefficient of j)(number)Shown to 6 decimal places
Result angle (radians)(number)Shown to 6 decimal places
z₁ magnitude |z₁|(number)Shown to 6 decimal places
z₁ angle (degrees)(number)Shown to 4 decimal places

How it is calculated

Each input is converted to the base unit of its quantity, the formula above is applied in the order shown in the worked example, and each result is shown in the unit you choose. Results are held at full precision and rounded only for display, except where a step selects a standard size, as the worked example shows. A value outside its allowed range is refused with a message instead of giving a result.

How the result changes with z₁ real part (a)

z₁ real part (a)Result magnitude |z|Result angleResult real part
0.38.96939222.27598.3
0.759.10013715.94548.75
1.59.5524876.0099.5
311.18034-10.304811
616.124515-29.744914
1228.284271-4520
3067.675697-55.840338

Other inputs are the same as in the worked example above.

Standards and further reading

Complex numbers, rectangular and polar form and angle conversion are standard mathematics, not the subject of a standard. Standards apply when the result feeds an electrical design, and they set the method there.

Frequently asked questions

What do I need to enter?

Enter z₁ real part (a), z₁ imaginary part (b), operation, z₂ real part (c) and z₂ imaginary part (d). Change the unit of a value with its selector and the result stays the same.

What does this calculator assume?

Angles are in degrees from −180° to 180°, measured from the positive real axis (atan2, so the quadrant is correct). j is the square root of −1; engineers write j instead of i. The values are plain numbers: enter resistance, reactance, volts or amps in one consistent unit.

Which calculators should I use next?

Common next steps are AC Ohm's Law (Phasors), Series RLC Impedance, Inductive and Capacitive Reactance and LC Resonance and Q Factor. The related links at the bottom of this page open them.

How accurate are the results?

Every figure comes from the same tested engine as the Elecmetric calculators and is meant for estimating. 70 reference cases, calculated from textbook formulas coded separately from the engine by the same author, agree with this calculator. This is not an independent review. Check design values against the standard and the equipment data you work to.

Formula guides and reference

Longer explanations with worked examples and tables, written for the same topic.

More Engineering Mathematics calculatorsAll engineering calculatorsComplex Numbers (Rectangular and Polar) in Elecmetric

Tell us how to improve this page

This opens your email app. Nothing is sent until you press send.