How it works
Polar coordinates give a point by its distance r from the origin and its angle θ from the positive x-axis. Rectangular (Cartesian) coordinates give it by x and y.
x = r cos θ, y = r sin θ
r = √(x² + y²), θ = tan⁻¹(y/x), corrected for the quadrant
tan⁻¹ alone only returns angles between −90° and 90°, so when x is negative the calculator adds or subtracts 180° to put θ in the second or third quadrant. θ is given between −180° and 180°, with the matching angle between 0° and 360° when it is negative.
Worked example
(2, 60°): x = 2 cos 60° = 2 × ½ = 1, y = 2 sin 60° = 2 × √3/2 = √3 ≈ 1.732050808.
(−1, 1): r = √(1 + 1) = √2. tan⁻¹(1/−1) = −45°, but the point is in the second quadrant, so θ = −45° + 180° = 135°.
Tips
- Check the angle unit before converting: cos 60 in radians is about −0.952, not ½.
- Some textbooks allow a negative r, which points the opposite way: (−2, 60°) is then the same point as (2, 240°). This calculator always gives r ≥ 0, as r = √(x² + y²).
- For complex numbers, the same conversion turns a + bi into r∠θ; the complex numbers calculator does that too.
Questions
How do I convert polar to rectangular?
Multiply: x = r cos θ and y = r sin θ. For (2, 60°), x = 1 and y = √3.
How do I convert rectangular to polar?
r = √(x² + y²) and θ = tan⁻¹(y/x), adding 180° when x is negative (and y ≥ 0) or subtracting 180° when both are negative.
Why is my angle wrong by 180°?
tan⁻¹(y/x) cannot tell (1, 1) from (−1, −1), because y/x is the same. Look at the signs of x and y to choose the quadrant; this calculator does that for you. When x = 0, y/x is undefined: the point is straight up (θ = 90°) if y > 0 and straight down (θ = −90°) if y < 0.
What is the origin in polar form?
r = 0. The angle θ is not defined there; any angle gives the same point.
Sources
- NIST Digital Library of Mathematical Functions, §1.9 Calculus of a Complex Variable. §1.9(i), equations 1.9.3–1.9.6: x = r cos θ, y = r sin θ, r = (x² + y²)^½, θ chosen by quadrant; 1.9.7: principal value −π ≤ ph z ≤ π. Checked 22 November 2026.
- NIST Digital Library of Mathematical Functions, §4.23 Inverse Trigonometric Functions. §4.23(ii) principal values and Table 4.23.1: arctan(±∞) = ±½π, the ends of the principal range used for θ before the quadrant correction. Checked 22 November 2026.
- POSIX.1-2024 (IEEE Std 1003.1-2024): atan2. DESCRIPTION and RETURN VALUE: uses the signs of both arguments to pick the quadrant; result in [−π, π]. Checked 22 November 2026.
- TI-30XS MultiView eGuide: Rectangular to Polar. Rectangular ⇄ polar menu; set the angle mode before converting; example (3, 4) → (5.0, 53.1°). Checked 22 November 2026.