Math

Cartesian to Spherical Coordinates Calculator

Convert a 3D point into radius, azimuth and polar angle with explicit angle conventions.

Exact method explained belowEditable inputs
Calculation notebook
Calculation notebook

The formula and worked example below explain the calculation.

See the method

Enter your values

Runs on your device

Your answer

Your result

Let’s calculate.

Use the Calculate button to see your result.

Review the method below for assumptions and conventions.

How to use this tool

  1. Enter x, y, z.
  2. Select Calculate to view the result.
  3. Check the method and assumptions below before using the result.

Input reference and sample values

Use the units and choices shown for each field. Sample values are provided for practice, not as recommendations.

InputFormat and unitsSample
xNumeric value.1
yNumeric value.1
zNumeric value.1

Result for these sample inputs

1.73205081
Azimuth (degrees)
45
Polar angle from +z (degrees)
54.7356103

Select Try the example in the form to load these values and calculate them again. This replaces the current form inputs. Compare the result with the method and worked explanation below.

The method, explained

Radius r = hypot(x,y,z), azimuth = atan2(y,x), and polar angle = acos(z/r). Azimuth is normalized to [0,360); polar angle is measured down from +z.

A WORKED EXAMPLE

Using x = 1, y = 1, z = 1, the result is 1.73205081. Change these example inputs to match your task; use the method above to check each step.

What to keep in mind

Uses physics-style polar angle from +z, not elevation above the xy plane. Finite-precision arithmetic is used. Check the domain and the stated convention before using an approximation.

Common questions

Is polar angle the same as elevation?

No. Elevation is measured upward from the xy plane; the polar angle here is measured downward from +z. Away from singular cases, elevation equals 90° minus polar angle.

How can I check the result?

Radius r = hypot(x,y,z), azimuth = atan2(y,x), and polar angle = acos(z/r). Azimuth is normalized to [0,360); polar angle is measured down from +z. The worked example uses editable inputs. Calculations run on your device; no external API or account is required.

Methodology maintained by ClarityKit. How these tools are built and checked.