Unit converters

Complex number converter for rectangular and polar form

Convert real and imaginary components to magnitude and principal angle, or resolve a polar magnitude and angle into components.

Your numbers

Calculated on your device. Your inputs aren’t sent to us.

Your result

Ready when you are

Enter your inputs and select Calculate.

Report an issue

Try it, understand it

Explore the result

Compare two representations and the special zero-magnitude case.

Worked example comparison
ExampleOutputWhat to notice
Three plus four iPolar magnitude5Magnitude is five and the principal direction is about 53.13°.
A positive imaginary-axis directionReal component1.2246468E-16Magnitude two at 90 degrees resolves to an approximately zero real part and imaginary part two.
The originPolar magnitude0The magnitude is zero, but there is no unique principal direction.

Check your understanding

Can a magnitude be negative?

Not in this representation. Direction is carried by the angle.

Do two full-turn-separated angles give different values?

No. They represent the same nonzero direction.

Behind the numbers

How this calculation works

Treat a complex number as a point with real coordinate a and imaginary coordinate b. Its magnitude is the distance from zero, and atan2 uses both signs to determine the correct quadrant. In the reverse direction, resolve the magnitude along the real and imaginary axes. The result reports principal angles in degrees and radians.

THE FORMULAr = √(a²+b²); θ = atan2(b,a); a = r cos θ; b = r sin θ

A worked example

For 3+4i, the magnitude is √(3²+4²) = 5. The principal argument is atan2(4,3), about 53.130102° or 0.927295 radians. A magnitude of 5 with that direction reconstructs real component 3 and imaginary component 4, subject to floating-point rounding.

Good to know

Numerical real/imaginary representation conversion, not symbolic algebra. Polar magnitude must be nonnegative. Input angles are bounded and use your selected unit. The zero complex number has no unique argument. Trigonometric outputs are approximate, including possible tiny residual components on an axis.

The same complex number has two useful descriptions

Rectangular form separates a complex number into a real part and an imaginary coefficient. Polar form instead states how far it is from zero and in which direction it lies. These are two descriptions of the same point in the complex plane, not two different numerical quantities.

For 3+4i, the right triangle formed by the axes has legs three and four, so its magnitude is five. The angle is about 53.130102 degrees from the positive real axis. The complex arithmetic calculator operates on complex numbers using exact rational components; this converter focuses on switching between component and magnitude-angle representations.

A negative real component or imaginary coefficient does not imply a negative magnitude. Magnitude is a nonnegative distance. The principal angle carries the direction and quadrant information that a single cosine or a one-argument arctangent can lose.

State the angle unit and the zero case explicitly

A full turn is 360 degrees or 2π radians. An entered angle of 90 radians is therefore very different from 90 degrees. Select the input unit before using polar mode. Output includes both units so you can compare the two descriptions without silently mixing them.

At the zero complex number, the magnitude is zero and every angle would describe the same origin. There is no unique argument to report. The tool keeps that direction undefined instead of presenting a computed zero angle as though it were an actual preferred direction.

Numerical trigonometry uses floating-point approximations. An angle intended to lie precisely on an axis can leave a tiny residual in one component. That is a numerical approximation issue; it does not create an additional physical direction or make a rounded printed angle an exact symbolic multiple of π.

A few questions, answered

Why use atan2 instead of atan(imaginary/real)?

atan2 uses both signs, keeps the correct quadrant and handles a zero real component without dividing by zero.

Can angles greater than one full turn be entered?

Yes, within the stated bounds. Full-turn differences describe the same nonzero complex value.

Are the normalized directions exact?

No. Trigonometric values and the graph are numerical approximations.

Find your calculator

Start typing to explore the library.