Polar ↔ Cartesian Coordinate Converter

Convert (x, y) ↔ (r, θ). Polar: r = √(x²+y²), θ = atan2(y, x). Cartesian: x = r·cos θ, y = r·sin θ.

Inputs

Result

Loading calculator…

How to use this calculator

  • Pick direction. Cartesian-to-polar takes (x, y) and returns (r, θ).
  • Polar-to-Cartesian takes (r, θ in degrees) and returns (x, y).
  • The angle-unit selector switches the displayed θ between degrees and radians.

About this calculator

Two coordinate systems for the same plane. Cartesian (x, y) — perpendicular axes, intuitive for rectangular shapes. Polar (r, θ) — radius from origin + angle from positive x-axis, intuitive for circular shapes and rotation. Conversions: r = √(x²+y²); θ = atan2(y, x) — uses the TWO-argument arctangent so the quadrant is preserved (regular atan(y/x) loses the sign distinction between quadrants II/IV and I/III). x = r·cos θ; y = r·sin θ. Polar is the natural form for orbits, spirals, antenna patterns, and complex-number magnitude/phase representation; Cartesian is the natural form for translation, regular grids, and most CAD work.

Frequently asked

Why atan2 instead of atan(y/x)?+
atan(y/x) returns an angle in (−π/2, π/2) — it can't distinguish Quadrant I from Quadrant III (both have positive y/x ratio) or II from IV. atan2(y, x) is a two-argument function that returns the angle in (−π, π] with the correct quadrant. Standard in every numerical library.
Is r ever negative?+
By convention r ≥ 0 (magnitude). Some textbooks allow r < 0 by reflecting across the origin (equivalent to adding π to θ); this calculator returns r ≥ 0 always.
What's the angle convention?+
Standard mathematical convention: θ measured counter-clockwise from the positive x-axis. 0° = +x, 90° = +y, 180° = −x, 270° = −y. Engineering compass-bearing convention (0° = +y, clockwise) is DIFFERENT — convert if needed.
Source?+
IEEE 754 atan2 specification; Spiegel MR (1968) "Mathematical Handbook of Formulas and Tables" Ch.1; standard coordinate-geometry textbooks.

Related calculators

More tools you might like

Hand-picked tools that pair well with this one — same audience, same intent.