Spherical Coordinates Calculator

Created by Bogna Szyk
Reviewed by Steven Wooding
Last updated: Apr 06, 2022

The spherical coordinates calculator is a tool that converts between rectangular and spherical coordinate systems. It describes the position of a point in a three-dimensional space, similarly to our cylindrical coordinates calculator. For a two-dimensional space, instead of using this Cartesian to spherical converter, you should head to the polar coordinates calculator.

Rectangular and spherical coordinates

Spherical coordinates
Source: Wikimedia

Coordinates are sets of values that describe the position of any given point in space. For a three-dimensional space, you need precisely three coordinates to define a point uniquely.

The Cartesian system, also known as the rectangular coordinate system, is constructed by drawing three lines in space. They all cross a common point, called the origin, and are perpendicular to one another. These lines are called the axes of the system. Each pair of axes defines a plane: these are called the XY, XZ, and YZ planes. The coordinates of any arbitrary point are defined as the distance between that point and the planes.

We define the spherical coordinate system by a fixed origin and a zenith direction. The zenith is an imaginary point located directly above the origin. The direction from the origin to the zenith is called the zenith direction.

Each arbitrary point in space has three spherical coordinates. The first one, called radial distance or radius (r), is simply the three-dimensional distance between the origin and this point. The second one - the polar angle (θ) - is the angle from the zenith direction to the line that connects the point with the origin. The third one is called the azimuth angle (φ).

When you create a reference plane that passes through the origin and is orthogonal to the zenith, then φ is the angle between the point's orthogonal projection to the plane and a fixed reference direction on that plane.

Converting Cartesian to spherical

When converting from the rectangular to the spherical system, our spherical coordinate calculator assumes that the origins of both systems overlap. It also assumes that the z-axis is equivalent to the zenith direction. The spherical reference plane coincides with the XY plane.

You should use the following formulas for the conversion:

  • r = √(x² + y² + z²)

  • θ = arccos(z/r)

  • φ = arctan(y/x)

where:

  • (x, y, z) - Cartesian coordinates; and
  • (r, θ, φ) - Spherical coordinates.

Converting spherical to Cartesian

The spherical coordinates calculator is also able to recalculate the spherical coordinates into rectangular ones. It uses the following equations:

  • x = r * sin θ * cos φ

  • y = r * sin θ * sin φ

  • z = r * cos θ

Don't forget to check our other coordinate geometry calculators like the average rate of change (aroc) calculator.

Bogna Szyk
Cartesian (x, y, z) to spherical (r, θ, φ)
x
y
z
r
θ
deg
φ
deg
Spherical (r, θ, φ) to Cartesian (x, y, z)
r
θ
deg
φ
deg
x
y
z
Check out 38 similar coordinate geometry calculators 📈
Average rate of changeBilinear interpolationCatenary curve… 35 more
People also viewed…

Black Friday

How to get best deals on Black Friday? The struggle is real, let us help you with this Black Friday calculator!

Long subtraction

This long subtraction calculator helps you solve any long subtraction problem for any two whole numbers as well as for numbers with decimal places.

Social Media Time Alternatives

Check what you could have accomplished if you get out of your social media bubble.

Square in a circle

The square in a circle calculator is a perfect tool to find the biggest square that can fit in a circle. You can also use this calculator to find the largest circle that can fit inside a square, find the dimensions of a square with the same area as a circle, and find the dimensions of a circle with the same area as a square.
Copyright by Omni Calculator sp. z o.o.
Privacy policy & cookies
main background