Cartesian to polar coordinates

Pick a conversion, fill in the boxes it uses, and read the result. Angles from Cartesian input are shown in degrees and radians together.

Used when converting from Cartesian.
Used when converting from Cartesian.
Used for 3D conversions from Cartesian and for cylindrical to Cartesian.
Used when converting to Cartesian. Not negative.
Polar angle. For spherical, the angle down from the +z axis.
The angle around the z axis, for cylindrical and spherical input.
Radius r5
Angle θ53.13010235° = 0.927295218 rad

Runs in your browser: nothing you enter is sent anywhere.

How to use it

  1. Choose the conversion.
  2. Fill the boxes that apply; the hints say which. Other boxes are ignored.
  3. For angles you type, choose degrees or radians.

How it works

From Cartesian, r = √(x² + y²) with θ = atan2(y, x), lifted to the range 0 to 360° (0 to 2π). In 3D, the cylindrical radius is √(x² + y²), and the spherical radius is √(x² + y² + z²) with polar angle arccos(z / r). Conversions back use the sine and cosine formulas.

Worked example

The point (3, 4) has r = 5 and θ = atan2(4, 3) ≈ 53.13° (0.9273 rad). The point (−1, 1) has r = √2 ≈ 1.4142 and θ = 135°.

The 3D point (1, 1, 1) has spherical r = √3 ≈ 1.7321, polar angle ≈ 54.7356° and azimuth 45°.

Tips

  • Angles come out in 0 to 360°, so a point below the x-axis gives an angle above 180° instead of a negative one.
  • Round trips can differ in the last digit because of floating-point rounding.

Frequently asked questions

What are the formulas for Cartesian to polar?

r = √(x² + y²) and θ = atan2(y, x). atan2 picks the correct quadrant, and this tool gives the angle between 0° and 360°.

Which spherical convention does this use?

The physics (ISO) one. θ is the polar angle measured from the +z axis, from 0° to 180°, and φ is the azimuth in the xy-plane. Many maths texts swap the two names, so check yours.

How do I convert polar back to x and y?

x = r cos θ and y = r sin θ. For cylindrical, z stays the same. For spherical, x = r sin θ cos φ, y = r sin θ sin φ and z = r cos θ.

Why does 90° give exactly 0 for the cosine here?

Floating-point cos(π/2) is about 6e-17. Values that tiny compared with the radius are shown as 0.

More in Math

All tools in this category: Math ·Updated November 3, 2026

Privacy choices

Google Analytics shows us which tools are used and whether they work. It may set cookies. Your choice is kept in this browser.