Spherical Coordinates Calculator
Convert a point between rectangular and spherical coordinates (maths convention).
The x-coordinate.
The y-coordinate.
The z-coordinate. The answer is (ρ, θ, φ). The maths convention: θ is the azimuth, measured in the xy-plane from the positive x-axis, and φ is the angle from the positive z-axis. Physics books swap the two letters.
Choose degrees or radians for the angles.
Result
You entered
On the z-axis the angle θ can be anything; 0 is used.
Decimal
Show the work
Spherical coordinates
Spherical coordinates locate a point by its distance from the origin and two angles. The distance is the length of the position vector, from Pythagoras in three dimensions.
Angle in the xy-plane
The point is on the z-axis, so it has no direction in the xy-plane: can be anything, and 0 is used.
Polar angle from the z-axis
The angle is measured from the positive z-axis, from to . Its cosine is the height divided by the distance , and the inverse cosine gives an angle in exactly that range.
Spherical-coordinate convention
In the mathematics convention used here, is the azimuth (measured in the xy-plane from the positive x-axis) and is the angle from the positive z-axis. Physics books swap the two letters: there is the angle from the z-axis and is the azimuth. Check which your course uses.
Result
So the spherical coordinates are .