Spherical Coordinates Calculator

Convert Cartesian x, y, and z values to radius, azimuth, and polar angle.

Cartesian to spherical coordinates
Enter a non-origin point in three-dimensional Cartesian space.

About spherical coordinates

Spherical coordinates describe a point in three-dimensional space using one distance and two angles instead of three perpendicular distances. This calculator converts Cartesian coordinates x, y, and z into radius, azimuth, and polar angle. The convention used here measures azimuth counterclockwise in the xy-plane from the positive x-axis and measures the polar angle downward from the positive z-axis. Stating the convention is important because some subjects use elevation in place of polar angle. The radial distance is the straight-line distance from the origin to the point. It is calculated as the square root of x squared plus y squared plus z squared, which is the three-dimensional extension of the Pythagorean theorem. Radius is always nonnegative. At the origin the radius is zero, but both direction angles are undefined, so the calculator asks for a point away from the origin. Azimuth is found with the two-argument arctangent of y and x. Unlike an ordinary arctangent of y divided by x, this operation identifies the correct quadrant and also works when x is zero. The result is normalized to a range from zero degrees up to, but not including, 360 degrees. A point along positive x has azimuth zero, positive y has 90 degrees, negative x has 180 degrees, and negative y has 270 degrees. The polar angle is the inverse cosine of z divided by radius. It ranges from zero degrees at the positive z-axis to 180 degrees at the negative z-axis, with 90 degrees representing the xy-plane. If your application uses elevation measured upward from the xy-plane, subtract the polar angle from 90 degrees. Mathematics, physics, geography, robotics, and computer graphics may label these angles differently, so verify the expected convention before transferring values. All angles are displayed in degrees and rounded to six decimal places, while calculations use full floating-point precision. Negative Cartesian coordinates are supported and naturally select the appropriate direction. Spherical coordinates are especially helpful when a problem has radial symmetry, such as fields around a point source, planetary positions, camera orientation, or integration over a sphere. They can turn complicated Cartesian relationships into simpler expressions organized around distance and direction.

Spherical coordinate examples

Cartesian pointSpherical resultInterpretation
(1, 1, 1)r 1.732051, azimuth 45°, polar 54.73561°Equal positive coordinates place the point in the first octant.
(0, 3, 4)r 5, azimuth 90°, polar 36.869898°The familiar 3-4-5 relationship gives an exact radius of 5.
(-2, 0, 0)r 2, azimuth 180°, polar 90°The point lies on the negative x-axis and in the xy-plane.

How to convert coordinates

  1. Enter the Cartesian x-coordinate.
  2. Enter the Cartesian y- and z-coordinates in the same unit.
  3. Select Convert coordinates to calculate the radius and angles.
  4. Read azimuth from the positive x-axis and polar angle from the positive z-axis.

Spherical coordinates FAQ

What are the three spherical coordinates?

They are radial distance, azimuth around the z-axis, and polar angle from the positive z-axis. Together they uniquely locate every point except for angle ambiguity at the origin.

Why does the calculator use atan2 for azimuth?

The two-argument arctangent preserves the signs of both x and y. It therefore chooses the correct quadrant and handles points where x is zero.

What angle convention is used?

Azimuth is measured counterclockwise from positive x in the xy-plane. Polar angle is measured downward from positive z, and both results are shown in degrees.

Why can the origin not be converted?

The origin has zero radial distance but no unique direction. Every azimuth and polar direction reaches the same point there, so the angles are undefined.

How do I convert polar angle to elevation?

Subtract the polar angle from 90 degrees to obtain elevation above the xy-plane. Confirm your field's naming convention because symbols vary among textbooks and software.