Cartesian to Spherical Converter

Convert 3D Cartesian coordinates (x, y, z) to spherical coordinates while choosing the math or physics convention and angle unit (degrees or radians).

Coordinate inputs

How to use this converter

Enter the 3D Cartesian components (x, y, z), pick degrees or radians, and choose the math or physics convention. Click Calculate to update the radial distance and angles. The Reset button restores the default values so you can start fresh.

Methodology

The tool computes the radius using the Euclidean distance √(x² + y² + z²), then derives the azimuth with atan2(y, x) and the polar angle with arccos(z / ρ). The math and physics conventions simply swap which angle is labeled θ or φ. Angle units are converted after the raw radian values are calculated.

FAQ

What if ρ = 0?

If x = y = z = 0, the radius is zero and the angles technically lack direction. The converter returns 0 for both angles to keep the display consistent.

Why two different names (ρ vs r, θ vs φ)?

Different disciplines favor different labels. The math-friendly layout uses ρ for radius and φ for the polar angle, while physics notation prefers r and swaps θ/φ. This tool lets you match whichever reference you need.

Will it work with negative coordinates?

Yes. Using atan2 keeps the azimuth in the correct quadrant even when x or y are negative.

Full original guide (expanded)

Related math & conversions

About this tool

Suitable for multivariable calculus, electromagnetics, astronomy, and 3D geometry. Handles both main spherical systems and outputs in the angle unit you prefer so you can match lecture notes, textbooks, or simulation software.

Formulas
Radial distance

ρ = √(x² + y² + z²)

Math convention

θ = atan2(y, x)
φ = arccos(z / ρ)

Physics convention

θ = arccos(z / r)
φ = atan2(y, x)

Angle unit conversion

degrees = radians × 180 / π

Citations
Changelog
  • 0.1.0-draft — 2026-01-19: Initial draft generated from extracted HTML and carbon-copied formulas.
  • Version bump notes: validate formula extraction, confirm sources, and align display with canonical layout.
Verified by Ugo Candido Last Updated: 2026-01-19 Version 0.1.0-draft
Version 1.5.0