User Rating 0.0
Total Usage 0 times
Is this tool helpful?

Your feedback helps us improve.

About

Converting a complex number z = a + bi from rectangular to polar form requires computing two quantities: the modulus r and the argument θ. Errors in quadrant selection are the most common source of incorrect results. The two-argument arctangent function atan2(b, a) resolves this by mapping all four quadrants and the axes correctly, unlike the single-argument arctan which cannot distinguish between quadrants II and IV. This calculator uses IEEE 754-compliant atan2 and returns the principal argument in the range (π, π].

At the origin (a = 0, b = 0), the modulus is 0 and the argument is undefined. This tool flags that condition explicitly rather than returning a misleading value. Results are provided in three equivalent representations: polar coordinates (r, θ), trigonometric form r(cos θ + i sin θ), and Euler form reiθ.

complex number polar form modulus argument Euler form trigonometric form atan2 complex plane

Formulas

A complex number in rectangular form is written as:

z = a + bi

The modulus (magnitude) is computed as:

r = |z| = a2 + b2

The argument (phase angle) uses the two-argument arctangent to resolve quadrant ambiguity:

θ = atan2(b, a)

Conversion between radians and degrees:

θdeg = θrad × 180π

The three equivalent polar representations are:

z = r θ
z = r(cos θ + i sin θ)
z = reiθ

Where a = real part, b = imaginary part, r = modulus (always 0), θ = argument (principal value in (π, π]), i = imaginary unit where i2 = 1, and e = Euler's number 2.71828.

Reference Data

Complex NumberModulus rArgument (deg)Argument (rad)Quadrant
1 + i√2 ≈ 1.414245°π/4I
1 + i√2 ≈ 1.4142135°3π/4II
1 i√2 ≈ 1.4142−135°3π/4III
1 i√2 ≈ 1.4142−45°π/4IV
3 + 4i553.13°0.9273I
3 + 4i5126.87°2.2143II
3 4i5−126.87°−2.2143III
3 4i5−53.13°−0.9273IV
550Positive real axis
55180°πNegative real axis
5i590°π/2Positive imaginary axis
5i5−90°π/2Negative imaginary axis
00UndefinedUndefinedOrigin
1 + √3i260°π/3I
√3 + i230°π/6I
11180°πNegative real axis
0.6 + 0.8i153.13°0.9273I
7 + 24i2573.74°1.2870I
12 + 5i13157.38°2.7468II
8 15i17−61.93°−1.0808IV

Frequently Asked Questions

The single-argument arctan(b/a) returns values only in (π/2, π/2), which covers quadrants I and IV only. It cannot distinguish between, for example, 1 + i (quadrant I) and 1 i (quadrant III) because both yield arctan(1) = 45°. The two-argument atan2(b, a) examines the signs of both a and b independently and returns the correct angle in (π, π].
The modulus r equals 0. The argument θ is mathematically undefined because the origin has no direction. IEEE 754 atan2(0, 0) returns 0 by convention, but this is an implementation artifact. This calculator explicitly reports the argument as undefined in that case.
Add 2π (or 360°) to any negative argument. For example, θ = 135° becomes 360° 135° = 225°. This calculator uses the principal value convention (π, π], which is the standard in most mathematics and engineering textbooks.
By the principal value convention, pure negative real numbers (e.g., 5 + 0i) have an argument of π (or 180°), not π. The interval is half-open: (π, π], so π is included but π is not. JavaScript's Math.atan2(0, 1) correctly returns π.
JavaScript uses 64-bit IEEE 754 double-precision floats, providing approximately 15 - 16 significant decimal digits. For most practical inputs, this is more than sufficient. Precision loss can appear when a and b differ by many orders of magnitude (e.g., a = 1e15, b = 1). This calculator displays results to 6 decimal places by default, which stays well within the reliable precision range.
Yes. Polar form makes multiplication trivial: multiply the moduli and add the arguments. For z1 z2 = r1r2 (θ1 + θ2). De Moivre's theorem extends this to integer powers: zn = rn nθ. This is why polar form is preferred in signal processing, AC circuit analysis, and quantum mechanics.