Cartesian to Polar Coordinates Converter
Convert between Cartesian (x, y) and Polar (r, θ) coordinates instantly with visual plot, quadrant detection, and radian/degree output.
About
Coordinate system conversion is a routine operation in physics, engineering, and signal processing. Errors in quadrant assignment are the most common failure mode. A naive use of arctan(y ÷ x) collapses two quadrants into one and is undefined when x = 0. This tool uses the two-argument atan2(y, x) function, which resolves the angle correctly across all four quadrants and both axes. The radial distance r is computed as the Euclidean norm. Results are given in both radians and degrees to 8 decimal places.
The reverse path, polar to Cartesian, applies standard trigonometric projection. Note: this tool assumes a standard mathematical convention where θ = 0 lies along the positive x-axis and increases counterclockwise. Navigational or engineering conventions (clockwise from north) require manual offset. The interactive plot updates in real time to confirm the geometric interpretation of your input.
Formulas
Conversion from Cartesian coordinates (x, y) to Polar coordinates (r, θ) uses the Euclidean distance and two-argument arctangent:
The reverse conversion from Polar to Cartesian applies trigonometric projection:
Angle unit conversion between radians and degrees:
Where x and y are the horizontal and vertical displacements from the origin. r is the radial distance (always ≥ 0). θ is the angle measured counterclockwise from the positive x-axis. atan2 returns values in the range (−π, π], correctly handling all four quadrants and axis-aligned points.
Reference Data
| Quadrant | Sign of x | Sign of y | θ Range (Degrees) | θ Range (Radians) | Example Point | r | θ |
|---|---|---|---|---|---|---|---|
| I | + | + | 0° to 90° | 0 to π2 | (3, 4) | 5 | 53.13° |
| II | − | + | 90° to 180° | π2 to π | (−3, 4) | 5 | 126.87° |
| III | − | − | −180° to −90° | −π to −π2 | (−3, −4) | 5 | −126.87° |
| IV | + | − | −90° to 0° | −π2 to 0 | (3, −4) | 5 | −53.13° |
| +X Axis | + | 0 | 0° | 0 | (5, 0) | 5 | 0° |
| −X Axis | − | 0 | 180° | π | (−5, 0) | 5 | 180° |
| +Y Axis | 0 | + | 90° | π2 | (0, 5) | 5 | 90° |
| −Y Axis | 0 | − | −90° | −π2 | (0, −5) | 5 | −90° |
| Origin | 0 | 0 | Undefined | Undefined | (0, 0) | 0 | N/A |
| Common Reference Angles | |||||||
| - | 1 | 0 | 0° | 0 rad | (1, 0) | 1 | 0° |
| - | √32 | 12 | 30° | π6 | (0.866, 0.5) | 1 | 30° |
| - | √22 | √22 | 45° | π4 | (0.707, 0.707) | 1 | 45° |
| - | 12 | √32 | 60° | π3 | (0.5, 0.866) | 1 | 60° |
| - | 0 | 1 | 90° | π2 | (0, 1) | 1 | 90° |
| - | −1 | 0 | 180° | π | (−1, 0) | 1 | 180° |
| - | 0 | −1 | −90° | −π2 | (0, −1) | 1 | −90° |