Spherical Coordinates: Definition, Formula & Conversion

#Geometry
TL;DR
Spherical coordinates locate a point in 3D space using three numbers: rr, the distance from the origin, θ\theta, the angle down from the positive zz-axis, and φ\varphi, the angle around the zz-axis - written (r,θ,φ)(r, \theta, \varphi). This article defines the system, derives the conversion to and from Cartesian (x,y,z)(x, y, z), lists its properties, works six examples, and untangles the convention confusion over which angle is which.
MV
Madhukar VLast updated on July 31, 20269 min read

What Are Spherical Coordinates?

Spherical coordinates are a 3D coordinate system that names a point by one distance and two angles, instead of the three perpendicular distances used in Cartesian coordinates. A point PP is written as the ordered triple (r,θ,φ)(r, \theta, \varphi), where:

  • rr is the straight-line distance from the origin to PP (the radius),

  • θ\theta is the polar angle (or inclination), measured down from the positive zz-axis,

  • φ\varphi is the azimuthal angle, measured in the xyxy-plane from the positive xx-axis.

A quick way to picture it: φ\varphi is like longitude (which way around the globe), θ\theta is like the angle from the North Pole, and rr is how far out from the centre. This is the natural 3D extension of 2D polar coordinates, and it sits alongside the cartesian coordinate system as one of the standard ways to frame a point in space.

How Do You Convert Spherical Coordinates to Cartesian?

This is the most-asked question about the topic, and it comes straight from two right triangles. Drop PP onto the xyxy-plane; the projection has length rsin⁡θr\sin\theta (the horizontal reach), while the height is rcos⁡θr\cos\theta.

Spherical to Cartesian. The horizontal reach rsin⁡θr\sin\theta then splits into xx and yy by the azimuthal angle:

x=rsin⁡θcos⁡φy=rsin⁡θsin⁡φz=rcos⁡θx = r\sin\theta\cos\varphi \qquad y = r\sin\theta\sin\varphi \qquad z = r\cos\theta

Cartesian to spherical. Reverse the relations:

r=x2+y2+z2θ=cos⁡−1(zr)φ=tan⁡−1(yx)r = \sqrt{x^2 + y^2 + z^2} \qquad \theta = \cos^{-1}\left(\frac{z}{r}\right) \qquad \varphi = \tan^{-1}\left(\frac{y}{x}\right)

Here is what each symbol means:

  • rr - distance from the origin, always r≥0r \ge 0.

  • θ\theta - polar angle, ranging 0≤θ≤180°0 \le \theta \le 180° (or 00 to π\pi).

  • φ\varphi - azimuthal angle, ranging 0≤φ<360°0 \le \varphi < 360° (or 00 to 2π2\pi).

  • x,y,zx, y, z - the Cartesian coordinates of the same point.

As with polar to rectangular conversion, the tan⁡−1\tan^{-1} for φ\varphi needs a quadrant check - add 180°180° when the point sits in the left half of the xyxy-plane.

What Is the Difference Between Spherical and Cylindrical Coordinates?

Both are 3D systems, and choosing between them comes down to the symmetry of the problem. Cylindrical coordinates (ρ,φ,z)(\rho, \varphi, z) keep the flat zz-height of Cartesian coordinates and only make the base polar - ideal for pipes, cans, and anything with an axis of rotation. Spherical coordinates replace height entirely with a second angle, which suits anything organised around a single centre point.

  • Use cylindrical coordinates when the shape has a long straight axis (a cylinder, a coil, a rotating disk).

  • Use spherical coordinates when the shape radiates from a point (a planet's gravity, a light bulb's glow, a sphere).

The rule of thumb: match the coordinate system's natural surfaces to your problem, and the algebra collapses. A sphere is one equation, r=constantr = \text{constant}, in spherical coordinates but a messy x2+y2+z2=constantx^2 + y^2 + z^2 = \text{constant} in Cartesian.

What Are the Properties of Spherical Coordinates?

Spherical coordinates behave differently from Cartesian ones, and these properties are worth stating on their own:

  • Surfaces are simple. r=constantr = \text{constant} is a sphere, θ=constant\theta = \text{constant} is a cone, and φ=constant\varphi = \text{constant} is a half-plane through the zz-axis.

  • The origin and poles are special. At r=0r = 0 both angles are undefined; on the zz-axis (θ=0\theta = 0 or 180°180°) the angle φ\varphi carries no information.

  • Representations are not unique. Adding 360°360° to φ\varphi returns the same point, so a single point has many valid triples unless the ranges are restricted.

  • It generalises polar coordinates. Setting the problem in a single plane recovers the 2D polar system.

  • It is built for integration. Triple integrals over spheres and balls become far easier in spherical form, a link students meet in higher coordinate geometry and calculus.

Where Are Spherical Coordinates Used?

"Astronomers fixed the stars with two angles and a distance long before algebra existed." The system is the natural language of anything centred on a point.

  • Astronomy and navigation - a star's position is two angles (like right ascension and declination) plus a distance; GPS and celestial navigation are angular by nature (see the Wikipedia spherical coordinate system).

  • Physics - gravitational and electric fields from a point source, and quantum orbitals, are described in spherical coordinates because the physics has spherical symmetry.

  • Engineering - antenna radiation patterns, radar and sonar domes, and 3D scanners report data as distance-and-angles.

  • Computer graphics - camera orbits and environment mapping rotate a viewpoint using two angles around a target, which is spherical thinking.

Examples of Spherical Coordinates

Example 1

Convert the spherical point (4,90°,0°)(4, 90°, 0°) to Cartesian coordinates.

Use x=rsin⁡θcos⁡φx = r\sin\theta\cos\varphi, y=rsin⁡θsin⁡φy = r\sin\theta\sin\varphi, z=rcos⁡θz = r\cos\theta with sin⁡90°=1\sin 90° = 1, cos⁡90°=0\cos 90° = 0.

x=4(1)(1)=4y=4(1)(0)=0z=4(0)=0x = 4(1)(1) = 4 \qquad y = 4(1)(0) = 0 \qquad z = 4(0) = 0

Final answer: (4,0,0)(4, 0, 0) - a point on the xx-axis.

Example 2

A student converts the spherical point (2,0°,45°)(2, 0°, 45°) and reports (2sin⁡0°cos⁡45°,… )(2\sin 0°\cos 45°, \dots), then panics that everything is zero.

Wrong path. The student notices θ=0°\theta = 0° makes sin⁡θ=0\sin\theta = 0, so x=0x = 0 and y=0y = 0, and concludes the point must be the origin.

Why it breaks. Only xx and yy vanish. The zz-coordinate uses cos⁡θ\cos\theta, and cos⁡0°=1\cos 0° = 1, so z=2cos⁡0°=2z = 2\cos 0° = 2. The point is not the origin at all.

The rescue. Compute all three coordinates: x=2sin⁡0°cos⁡45°=0x = 2\sin 0°\cos 45° = 0, y=2sin⁡0°sin⁡45°=0y = 2\sin 0°\sin 45° = 0, z=2cos⁡0°=2z = 2\cos 0° = 2. When θ=0°\theta = 0° the point sits on the positive zz-axis, and φ\varphi is irrelevant there.

Final answer: (0,0,2)(0, 0, 2).

Example 3

Convert the Cartesian point (0,0,5)(0, 0, 5) to spherical coordinates.

r=0+0+25=5,θ=cos⁡−1(55)=cos⁡−1(1)=0°r = \sqrt{0 + 0 + 25} = 5, \qquad \theta = \cos^{-1}\left(\frac{5}{5}\right) = \cos^{-1}(1) = 0°

With θ=0°\theta = 0° the point is on the zz-axis, so φ\varphi is undefined (conventionally taken as 0°0°).

Final answer: (5,0°,0°)(5, 0°, 0°).

Example 4

Convert the spherical point (6,90°,90°)(6, 90°, 90°) to Cartesian coordinates.

With sin⁡90°=1\sin 90° = 1, cos⁡90°=0\cos 90° = 0:

x=6(1)(0)=0y=6(1)(1)=6z=6(0)=0x = 6(1)(0) = 0 \qquad y = 6(1)(1) = 6 \qquad z = 6(0) = 0

Final answer: (0,6,0)(0, 6, 0) - a point on the yy-axis.

Example 5

What surface does the equation r=3r = 3 describe in spherical coordinates?

Every point at distance 3 from the origin, in every direction, satisfies this. That is the set of all points equidistant from the centre - a sphere of radius 3. In Cartesian form it is x2+y2+z2=9x^2 + y^2 + z^2 = 9.

Final answer: a sphere of radius 3 centred at the origin.

Example 6

Convert the Cartesian point (1,1,2)(1, 1, \sqrt{2}) to spherical coordinates.

r=1+1+2=4=2r = \sqrt{1 + 1 + 2} = \sqrt{4} = 2 θ=cos⁡−1(22)=45°\theta = \cos^{-1}\left(\frac{\sqrt{2}}{2}\right) = 45° φ=tan⁡−1(11)=45°\varphi = \tan^{-1}\left(\frac{1}{1}\right) = 45°

Since (1,1)(1, 1) is in the first quadrant of the xyxy-plane, no adjustment to φ\varphi is needed.

Final answer: (2,45°,45°)(2, 45°, 45°).

Where Do Students Trip Up on Spherical Coordinates?

The confusion that trips students up most is between the two angles - treating θ\theta as the "around" angle when it is actually the "down from the top" angle, or vice versa. Fixing rr first, then deciding which angle drops from the pole and which sweeps around, clears most of the trouble.

Mistake 1: Swapping the θ and φ conventions

Where it slips in: Moving between a maths textbook and a physics textbook.

Don't do this: Assuming θ\theta is always the azimuthal angle. Many maths books use (r,θ,φ)(r, \theta, \varphi) with θ\theta around and φ\varphi from the pole - the exact reverse of the physics convention.

The correct way: Check the source's definition before computing. This article uses θ\theta = polar (from the zz-axis) and φ\varphi = azimuthal (around); state your convention so results are reproducible.

Mistake 2: Ignoring the quadrant when finding φ

Where it slips in: Using tan⁡−1(y/x)\tan^{-1}(y/x) for a point with negative xx.

Don't do this: Reporting the raw calculator angle for a point in the second or third quadrant of the xyxy-plane.

The correct way: As in 2D, tan⁡−1\tan^{-1} only returns (−90°,90°)(-90°, 90°). Add 180°180° when xx is negative to place φ\varphi in the correct quadrant.

Mistake 3: Forgetting the angle ranges

Where it slips in: Reporting θ=200°\theta = 200° or a negative rr.

Don't do this: Letting θ\theta exceed 180°180° or leaving rr negative.

The correct way: Keep r≥0r \ge 0, 0≤θ≤180°0 \le \theta \le 180°, and 0≤φ<360°0 \le \varphi < 360° for a single clean representation.

Conclusion

  • Spherical coordinates name a 3D point by a radius rr and two angles (θ,φ)(\theta, \varphi), written (r,θ,φ)(r, \theta, \varphi).

  • Convert to Cartesian with x=rsin⁡θcos⁡φx = r\sin\theta\cos\varphi, y=rsin⁡θsin⁡φy = r\sin\theta\sin\varphi, z=rcos⁡θz = r\cos\theta, and back with r=x2+y2+z2r = \sqrt{x^2 + y^2 + z^2}.

  • A sphere is one equation (r=constantr = \text{constant}), which is why the system suits point-centred physics, astronomy, and 3D graphics.

  • The biggest pitfall is swapping the θ\theta and φ\varphi conventions, so always state which angle is which.

To take spherical coordinates further with a teacher, explore Bhanzu's geometry tutor or high school math tutor sessions, or browse math classes online for guided 3D coordinate practice.

Read More

Practice These to Solidify Your Understanding

Work through these problems in order:

  1. Convert the spherical point (2,90°,180°)(2, 90°, 180°) to Cartesian coordinates.

  2. Convert the Cartesian point (0,4,0)(0, 4, 0) to spherical coordinates.

  3. Describe the surface given by θ=90°\theta = 90° in spherical coordinates.

Answer to Question 1: x=2sin⁡90°cos⁡180°=−2x = 2\sin 90°\cos 180° = -2, y=2sin⁡90°sin⁡180°=0y = 2\sin 90°\sin 180° = 0, z=2cos⁡90°=0z = 2\cos 90° = 0, so (−2,0,0)(-2, 0, 0). Answer to Question 2: r=4r = 4, θ=cos⁡−1(0/4)=90°\theta = \cos^{-1}(0/4) = 90°, φ=tan⁡−1(4/0)=90°\varphi = \tan^{-1}(4/0) = 90°, so (4,90°,90°)(4, 90°, 90°). Answer to Question 3: the xyxy-plane, since θ=90°\theta = 90° means every point lies flat at the equator.

Want a live Bhanzu trainer to work through more coordinate problems with you? Book a free demo class.

Was this article helpful?

Your feedback helps us write better content

Frequently Asked Questions

What are spherical coordinates in simple terms?
They locate a point in space by how far it is from the centre (rr) and two angles that give its direction (θ\theta and φ\varphi), instead of three straight-line distances.
What is the formula to convert spherical to Cartesian coordinates?
Use x=rsin⁡θcos⁡φx = r\sin\theta\cos\varphi, y=rsin⁡θsin⁡φy = r\sin\theta\sin\varphi, and z=rcos⁡θz = r\cos\theta, where θ\theta is the polar angle and φ\varphi is the azimuthal angle.
Why do physics and maths books define the angles differently?
It is purely a naming convention. Physics usually calls the polar angle θ\theta; many maths texts call it φ\varphi. Nothing about the geometry changes, but you must know which book's convention you are using.
What does r = constant represent in spherical coordinates?
A sphere centred at the origin, because every point at that fixed distance in every direction lies on it.
When should I use spherical instead of cylindrical coordinates?
Use spherical coordinates when the problem radiates from a single point, and cylindrical coordinates when it has a long straight axis of symmetry.
✍️ Written By
Madhukar V
Madhukar V
Math Columnist & Analyst
I see mathematics as more than just numbers and formulas—it is a way of thinking, questioning, and understanding the world around us. I work at the intersection of mathematics, EdTech, technology, and AI-powered learning, I enjoy exploring how mathematical ideas can be made simple, meaningful, and relatable. Through my articles, I aim to present mathematics with curiosity and a practical perspective, helping readers see the beauty and relevance behind every concept in a Bhanzu way.
LinkedIn
Related Articles
Book a FREE Demo ClassBook Now →