Saved

Press the star next to a tool's name to save it.

All my tools

Coordinate Converter

Use this Cartesian to polar calculator to convert points between Cartesian, polar, cylindrical and spherical coordinates, in either direction, in degrees or radians.

Restored your last values ·

Choose the conversion and the angle unit, then fill in the values. For polar and cylindrical coordinates the angle φ is measured from the positive x-axis. For spherical coordinates, θ is measured down from the positive z-axis and φ is the angle in the xy-plane, the physics convention.

Everything is worked out in your browser. Nothing you type is sent anywhere.

–

–

Choose the conversion, enter the values, then press Convert.

See full result

A coordinate converter changes points between Cartesian, polar, cylindrical and spherical coordinates, in both directions. It is a Cartesian to polar calculator, a polar to Cartesian calculator and a cylindrical coordinates calculator in one. Choose the conversion, pick degrees or radians, enter the values and press the button. The formulas follow the Wikipedia pages on the polar, cylindrical and spherical coordinate systems, and the work is done in your browser.

How to use the coordinate converter as a Cartesian to polar calculator

  1. Choose the conversion.
  2. Choose degrees or radians for the angles.
  3. Enter the three values (or two for a flat conversion).
  4. Press Convert.

Cartesian and polar coordinates

In the plane, a point can be given by its distance r from the origin and its angle φ from the positive x-axis. The Wikipedia page gives the conversion to Cartesian coordinates as x = r cos φ and y = r sin φ. In the other direction, r is the square root of x² + y², and the angle is found with the two-argument arctangent, atan2(y, x), which gives an angle from −180° to 180° and places the point in the right quadrant. For the point (3, 4), r is 5 and φ is about 53.13°. For (−1, 0), the angle is 180°, and for (0, −1) it is −90°, which is the same as 270°. The calculator shows both ranges. At the origin, the angle is not defined.

Cylindrical coordinates

Cylindrical coordinates add the height z to the polar coordinates, so a point is (ρ, φ, z). The page gives x = ρ cos φ, y = ρ sin φ and z unchanged. In the other direction, ρ is the square root of x² + y² and φ is atan2(y, x). The example on the page, the cylindrical point (2, −60°, 1), has Cartesian coordinates of about (1.0, −1.732, 1.0), which the calculator gives. Cylindrical coordinates are handy for problems with a rotational symmetry about an axis, such as pipes, wires and rotating machines.

Spherical coordinates

Spherical coordinates describe a point by its distance r from the origin and two angles. The page uses the convention of the international standard ISO 80000-2: the polar angle θ, also called inclination, is measured down from the positive z-axis, and the azimuth φ is the angle in the xy-plane from the x-axis. Then x = r sin θ cos φ, y = r sin θ sin φ and z = r cos θ. The reverse gives r as the square root of x² + y² + z², θ as the inverse cosine of z/r, and φ as atan2(y, x). For (1, 1, 1), r is 1.73205, θ is 54.7356° and φ is 45°. The elevation, the angle above the xy-plane, is 90° minus θ.

Mind the convention

The page warns that the mathematical convention swaps the meaning of θ and φ, so a formula from one book may not match another. If your source calls the angle from the z-axis φ and the azimuth θ, swap the two angle boxes. Also check the unit. Many mistakes come from entering degrees while the converter is set to radians.

Where these coordinates are used

Polar coordinates describe circular motion, radar and spirals. Cylindrical coordinates suit pipes and cables. Spherical coordinates describe positions on a globe, directions in space, and the fields of point sources. The calculator converts between them, so that you can switch to whichever system makes a problem easier.

A worked example in each system

Take the point (1, 1, 1). In cylindrical coordinates, ρ is the square root of 2, which is 1.41421, φ is 45° and z is 1. In spherical coordinates, r is 1.73205, θ is 54.7356° and φ is 45°. Now go back: from the spherical values, x = r sin θ cos φ is 1.73205 × 0.816497 × 0.707107, which is 1, and the same for y, while z = r cos θ is 1.73205 × 0.57735, which is 1. The round trip returns the original point, and you can test it by feeding the output of one conversion into the next.

Special points and angles

Points on an axis have simple coordinates. The point (0, 0, 5) has ρ = 0, so the azimuth φ is not defined, and in spherical coordinates θ is 0. The point (0, 0, −5) has θ equal to 180°. A point in the xy-plane has θ = 90°, and an elevation of 0°. The calculator sets the angle to 0 for the origin, but reports that at the origin the angle has no meaning in the polar conversion.

Choosing the angle range

The polar angle can be written in several equivalent ways, since adding 360° to an angle gives the same direction. The calculator shows the angle from −180° to 180°, which is what the arctangent function returns, and from 0° to 360°, which many textbooks prefer. Both describe the same point, and you can use whichever your problem requires.

Typing tips

Leave the third box empty for the flat conversions between Cartesian and polar coordinates. The labels of the boxes change with the conversion, so check that each number goes in the right box. Negative numbers are allowed for x, y and z, but not for a radius.

Common mistakes

  • Using arctan(y/x) instead of atan2. It gives the wrong quadrant when x is negative.
  • Mixing degrees and radians. Check the unit setting.
  • Swapping θ and φ. Conventions differ between books.
  • Using a negative radius. Add 180° to the angle instead.
  • Expecting an angle at the origin. It is not defined.

What next

Use this often? Add Coordinate to your Home screen.

Frequently asked questions

What is a Cartesian to polar calculator?

A tool that converts a point (x, y) to polar coordinates (r, φ), and back, and also handles cylindrical and spherical coordinates.

How do you convert Cartesian to polar coordinates?

r = √(x² + y²) and φ = atan2(y, x). For (3, 4), r = 5 and φ ≈ 53.13°.

How do you convert polar to Cartesian?

x = r cos φ and y = r sin φ.

What are cylindrical coordinates?

Polar coordinates plus a height: (ρ, φ, z). The point (2, −60°, 1) is about (1, −1.732, 1) in Cartesian coordinates.

How are spherical coordinates defined?

With radius r, inclination θ from the +z axis and azimuth φ: x = r sin θ cos φ, y = r sin θ sin φ, z = r cos θ.

What went wrong?

We only receive the reason you pick, never what you typed into the tool.

Thanks for your feedback.

More Math Tools