Skip to content
D DocNectar

Free Cartesian to Spherical Coordinate Converter

Convert between 3D Cartesian (x, y, z) and spherical (r, θ, φ) coordinates using the physics convention.

100% Free No Signup Works on all devices

Last updated October 10, 2026 · Report an error

Thanks for rating!

A point in 3D space can be described by Cartesian coordinates (x, y, z) or spherical coordinates (r, θ, φ — distance from the origin, inclination from the +z axis, and azimuth around the xy-plane). This tool converts a point between the two forms in either direction.

How it works

Choose a conversion direction. Cartesian → Spherical: enter x, y, and z, and the tool computes r = √(x² + y² + z²), θ = arccos(z/r), and φ = atan2(y, x). Spherical → Cartesian: enter r, θ, and φ in degrees, and the tool computes x, y, and z from them. This tool uses the physics/ISO convention, where θ is measured from the +z axis (not from the xy-plane, as some math textbooks define it).

  1. Enter conversion direction.
  2. Enter x (for Cartesian → Spherical).
  3. Enter y (for Cartesian → Spherical).
  4. Enter z (for Cartesian → Spherical).
  5. Enter r (for Spherical → Cartesian).
  6. Enter θ in degrees, inclination from +z axis (for Spherical → Cartesian).
  7. Enter φ in degrees, azimuth in xy-plane (for Spherical → Cartesian).
  8. Click Calculate to see your results.

Examples

A symmetric point

The point (1, 1, 1) converts to r ≈ 1.732, θ ≈ 54.74°, φ = 45° in spherical coordinates — and converting back reproduces (1, 1, 1) exactly.

Who should use it

  • Physics and engineering coursework involving 3D coordinate systems.
  • 3D graphics, geodesy, and antenna/radiation-pattern calculations.

Industry applications

  • Physics and engineering education
  • 3D graphics, robotics, and geodesy

Advantages

  • Instant, exact conversion in either direction.
  • Clearly documents which angle convention is used, avoiding a common source of confusion.

Limitations

  • 3D spherical coordinate conventions genuinely differ across textbooks — always double check which one a downstream calculation expects.

Common mistakes to avoid

  • Confusing the physics convention (θ from the +z axis) with the math-textbook convention some sources use (θ from the xy-plane) — they're not interchangeable without adjusting the formula.
  • Entering θ outside the valid 0°-180° range — inclination angles don't wrap the way azimuth angles do.

Best practices

  • Confirm which θ/φ convention your downstream formula or textbook expects before mixing results from different sources.
  • Use the origin guard as a hint — if you get a validation error, your point genuinely has no defined direction.

Tips

  • Converting a point to spherical and back to Cartesian should return your original x, y, and z — a handy way to sanity-check your own by-hand math.

Frequently asked questions

Yes, with no signup and no limit on how many conversions you run.
The physics/ISO convention: θ (theta) is the inclination angle measured from the +z axis (0° at the north pole, 180° at the south pole), and φ (phi) is the azimuth angle in the xy-plane. Some math textbooks swap these two names or measure θ from the xy-plane instead — always confirm which convention a given formula or textbook is using.
That's the origin, where inclination and azimuth are mathematically undefined — the tool returns a validation error in that case rather than a misleading result.
Degrees are more familiar for most everyday use — the underlying trigonometry uses radians internally and converts to degrees for display.

Get new calculators and guides in your inbox

No spam — just new tools like Cartesian-Spherical Coordinate Converter and practical guides.

Favorites