A point in the plane can be located in two ways. Rectangular (Cartesian) coordinates say how far to go along each axis; polar coordinates give the distance from the origin and the angle measured anticlockwise from the positive x-axis. Polar form is the natural language of circles, rotations, radar and navigation bearings, alternating current and complex numbers (modulus and argument).
This calculator converts in both directions:
- (x, y) → (r, θ) with the quadrant handled correctly by , the angle in degrees or radians, and a choice of range: or ;
- (r, θ) → (x, y), accepting angles such as π/3 or 3pi/4;
- 3D: (x, y, z) → cylindrical and spherical , and spherical back to (x, y, z).
Whenever the numbers allow it, an exact line shows results such as , or . For the angle side of the story, see the reference angle calculator; for distances between two points, the distance calculator.
How to use this calculator
- Choose the conversion: rectangular → polar, polar → rectangular, 3D → cylindrical/spherical, or spherical → 3D.
- Choose degrees or radians, and for results the angle range (0 to 360° or −180° to 180°).
- Enter the coordinates. Angles can be typed as numbers or multiples of π (π/6, -3pi/4).
- Read the converted point in the headline, then each coordinate separately, the exact values and the steps.
The formula
Rectangular → polar.
is corrected for the quadrant: add 180° when , and handle separately. Using alone gives the same angle for and — the most common mistake.
Polar → rectangular.
Cylindrical coordinates keep the polar of and add unchanged. Spherical coordinates (calculus convention, = azimuth, = angle from the axis):
Physics texts and ISO 80000-2 swap the letters: there is the angle from and the azimuth. The formulas are the same.
Worked example
(3, 4) → polar. and ≈ 53.13° (0.9273 rad).
(−2, −2) → polar. ≈ 2.83. The point is in quadrant III, so in the 0–360° range, or $ heta = -135° = -\frac{3\pi}{4}$ in the −180°–180° range. A plain would be wrong.
(4, 150°) → rectangular. ≈ −3.46 and .
(3, 4, 12) → spherical. , ≈ 53.13° as in 2D, and ≈ 22.62°. In cylindrical coordinates the same point is (5, 53.13°, 12).
Choosing the angle range
The same direction has infinitely many angles: , , … Two conventions pick one:
| Range | Used in | (−1, −1) gives |
|---|---|---|
| / 0–360° | navigation, plotting, most school exercises | 225° = 5π/4 |
| / −180°–180° | programming (atan2), complex numbers (principal argument) | −135° = −3π/4 |
At the origin and the angle is undefined: every gives the same point. The calculator says so instead of inventing a value.
Polar coordinates and complex numbers
The complex number has modulus and argument , so converting to polar form is exactly writing . Multiplying complex numbers then multiplies the moduli and adds the arguments — the reason electrical engineers write impedances in polar form. Vectors work the same way: magnitude and direction are the polar coordinates of the vector’s components (see the vector calculator).
Frequently asked questions
How do I convert rectangular coordinates to polar coordinates?
Compute r = √(x² + y²) and θ = atan2(y, x). For (3, 4), r = 5 and θ ≈ 53.13°. If you use arctan(y/x) by hand, add 180° when x is negative.
How do I convert polar coordinates to rectangular?
Use x = r cos θ and y = r sin θ. For r = 2 and θ = π/3: x = 1 and y = √3 ≈ 1.7321.
Why does arctan(y/x) give the wrong angle?
arctan only returns angles between −90° and 90°, so it cannot tell (1, 1) from (−1, −1): both give y/x = 1. atan2 looks at the signs of x and y separately and returns the right quadrant.
Can r be negative?
Some textbooks allow (−r, θ) as another name for (r, θ + 180°). This calculator returns r ≥ 0, the standard choice; to enter a negative radius, add 180° to the angle instead.
What is the difference between cylindrical and spherical coordinates?
Cylindrical coordinates are polar coordinates in the xy-plane plus the height z. Spherical coordinates use the straight-line distance ρ from the origin and two angles: the azimuth θ and the angle φ from the +z axis.
Sources
- OpenStax, Algebra and Trigonometry 2e, §10.3 Polar Coordinates
- OpenStax, Calculus Volume 3, §2.7 Cylindrical and Spherical Coordinates
- Weisstein, E. W., “Polar Coordinates”, MathWorld (Wolfram Research)
- Weisstein, E. W., “Spherical Coordinates”, MathWorld (Wolfram Research)
Last updated: