Complex Number Calculator
Calculate with complex components, convert rectangular and polar forms, and review magnitude and principal angle in degrees or radians.
This tool processes its input contents in your browser instead of sending them to a processing service. Page, asset and fixed usage-measurement requests are described on the Privacy page.
Calculate with complex components, convert rectangular and polar forms, and review magnitude and principal angle in degrees or radians.
How to use it
- 1Choose an operation and fill separate real/imaginary boxes, or radius and angle for polar input.
- 2Set degrees or radians explicitly.
- 3Calculate and review rectangular components, magnitude and principal phase.
- 4Download numeric results with the precision assumptions.
Example
- Input
- A: 2, 3; B: 1, -4; operation: multiply
- Output
- Rectangular result: 14 − 5i. Magnitude is approximately 14.8660687473.
The principal phase is approximately −19.6538240581 degrees. Floating-point trigonometric values are approximate.
What happens to your data
Real/imaginary components, polar values and the scaled plane are calculated in this tab. Local JSON retains your chosen angle unit and available digits; fixed workflow measurements omit those numeric inputs.
Last updated November 2026
Add, subtract, multiply or divide complex numbers from explicit real and imaginary components. Find a conjugate or convert between rectangular and polar forms. Every result shows its rectangular components, magnitude and principal angle, with a small scaled complex-plane diagram. Degrees and radians are explicit choices beside the input.
How it works
In guided inputs, enter real part 2 and imaginary part 3 to represent 2 + 3i. Paste values also accepts the pair 2, 3. The first component is real and the second multiplies i, whose square is −1. Binary operations require a second pair in the same format. For polar-to-rectangular conversion, guided inputs have separate radius and angle boxes; pasted pairs use radius, angle. The visible input labels state that change. The radius must be zero or positive. The chosen degree/radian setting controls the polar input and the reported phase.
Rectangular arithmetic combines the components directly. A conjugate reverses the sign of the imaginary component. Magnitude is the distance from the origin. The phase uses a quadrant-aware principal argument, reported between −180 and 180 degrees or −pi and pi radians, with the negative endpoint excluded. Zero has magnitude zero but no defined phase; the interface says so and the JSON uses null for that phase. Division by a zero complex number is rejected.
This implementation uses approximate binary64 floating-point arithmetic. On-screen values use up to twelve significant digits while JSON retains the available numeric digits. A value such as a tiny residual near zero can arise from trigonometric rounding. The scaled diagram preserves component proportions and signs but is not a graph with a fixed unit scale. It does not independently improve numeric precision.
Components accept finite decimals with optional e notation. Nonzero input magnitudes must lie between 1e-100 and 1e100; a polar input angle has absolute magnitude at most 1e12. Inputs outside these limits fail before calculation. Complete result and working exports are each at most 32 KiB; each input field is bounded to 16 KiB. Editing components, operation or angle unit clears previous result actions.
The workspace calculates the chosen scalar operation only. It does not parse a general expression such as (2+3i)/(1−4i), solve complex equations, find every root or offer a symbolic exactness guarantee. Enter the two pairs and choose Divide for that example. Units or physical interpretation, such as an electrical phasor convention, must be determined separately.
Worked example: Multiply rectangular components
- Input
- A: 2, 3; B: 1, -4; operation: multiply
- Result
- Rectangular result: 14 − 5i. Magnitude is approximately 14.8660687473.
The principal phase is approximately −19.6538240581 degrees. Floating-point trigonometric values are approximate.
Common use cases
- Check multiplication and division of complex component pairs.
- Convert a known radius and angle into rectangular components.
- Inspect the magnitude and quadrant of a complex value.
- Save the numeric result together with its angle-unit and precision assumptions.
Frequently asked questions
How do I enter 2 + 3i?+
Enter 2 in Real part and 3 in Imaginary part. Paste values also accepts 2, 3. The workspace accepts numeric components rather than a string containing i or a general expression.
Why is the angle of zero undefined?+
The origin has no direction from itself. A chosen angle would be arbitrary, so the phase is displayed as undefined and exported as null.
Are the complex results exact?+
No. These operations use approximate floating-point numbers. The display rounds for readability; downloaded JSON retains the available result digits and the working explains that precision.
Can polar angles wrap around a full turn?+
Yes within the stated input range. The rectangular value uses the entered angle unit, while the reported output phase is normalized to the principal interval.
Standards and limitations
Related tools
Vector Calculator
Calculate 2D or 3D vector operations with explicit projection direction, angle units and clear zero-vector errors.
Permutation & Combination Calculator
Count selections and arrangements exactly, choose whether repetition is allowed, and export large integer results without rounding.
Business Day Calculator
Count or offset working dates using chosen weekdays and your own excluded dates, then export the exact date schedule and assumptions.
Ohm’s Law Calculator
Find positive DC voltage, current, resistance and power from two known quantities, with unit prefixes, equations and CSV output.