Spherical to Cartesian
Convert (ρ, θ, φ) to (x, y, z): x = ρ sin φ cos θ, y = ρ sin φ sin θ, z = ρ cos φ. φ is from +z-axis; θ is in xy-plane. Used in physics, 3D graphics, and orbital mechanics.
Did our AI summary help? Let us know.
ρ·sin φ projects onto xy-plane. Unit sphere: (sin φ cos θ, sin φ sin θ, cos φ). φ=0 → +z; φ=π → −z.
Ready to run the numbers?
Why: Spherical-to-Cartesian conversion is essential for wave functions, field vectors, 3D camera positioning, and converting orbital elements to Cartesian positions.
How: Apply x = ρ sin φ cos θ, y = ρ sin φ sin θ, z = ρ cos φ. Angles must be in radians for cos/sin. When ρ=0, (x,y,z)=(0,0,0). ρ·sin φ is distance from z-axis.
Run the calculator when you are ready.
Enter Spherical Coordinates
For educational and informational purposes only. Verify with a qualified professional.
🧮 Fascinating Math Facts
x = ρ sin φ cos θ, y = ρ sin φ sin θ, z = ρ cos φ.
— Conversion
ρ=1 parametrizes unit sphere.
— Geometry
Key Takeaways
- • x = ρ · sin(φ) · cos(θ), y = ρ · sin(φ) · sin(θ), z = ρ · cos(φ)
- • θ and φ must be in radians when evaluating trig functions
- • φ = 0 → point on +z-axis; φ = π/2 → point in xy-plane; φ = π → point on -z-axis
- • When ρ = 0, (x, y, z) = (0, 0, 0) regardless of angles
- • The factor sin(φ) projects the radial distance onto the xy-plane
Did You Know?
ρ·sin(φ) is the perpendicular distance from the z-axis — the "r" in cylindrical coordinates.
When ρ = 1, (sin φ cos θ, sin φ sin θ, cos φ) parametrizes the unit sphere.
Spherical-to-Cartesian is used to convert wave functions, field vectors, and orbital positions.
Spherical coordinates are used for camera positioning, environment mapping, and skyboxes.
ρ = √(x²+y²+z²), θ = atan2(y,x), φ = arccos(z/ρ). Use Cartesian to Spherical calculator.
The volume element in spherical coordinates is ρ² sin(φ) dρ dθ dφ. The sin(φ) appears in the conversion.
Understanding Spherical to Cartesian
Project the point: first project onto the z-axis (z = ρ·cos φ), then the xy-component has length ρ·sin φ. Resolve that into x and y using θ.
Ensure θ and φ are in radians when evaluating cos and sin.
Expert Tips
Radians Required
cos and sin expect radians. Convert degrees: angle_rad = angle_deg × π/180.
φ = 0 and φ = π
When φ = 0, sin φ = 0 so x = y = 0; point on +z. When φ = π, point on -z.
Verify with ρ
Check: x² + y² + z² = ρ². Use this to verify your conversion.
θ vs φ
θ is in the xy-plane (azimuth). φ is from the z-axis (polar/colatitude). Don't confuse them.
Frequently Asked Questions
What are the conversion formulas?
x = ρ·sin(φ)·cos(θ), y = ρ·sin(φ)·sin(θ), z = ρ·cos(φ). Angles must be in radians.
Can I use degrees?
Yes. Convert first: θ_rad = θ_deg × π/180, φ_rad = φ_deg × π/180. This calculator supports both modes.
What happens when ρ = 0?
You get (0, 0, 0) — the origin. The angles do not affect the result.
What is φ = 90°?
φ = π/2 means the point lies in the xy-plane. z = ρ·cos(π/2) = 0.
How do I convert Cartesian to spherical?
ρ = √(x²+y²+z²), θ = atan2(y,x), φ = arccos(z/ρ). See our Cartesian to Spherical calculator.
Why sin(φ) for x and y?
ρ·sin(φ) is the distance from the z-axis. That distance is then resolved into x and y using cos(θ) and sin(θ).
What convention does this use?
Physics convention: φ measured from +z-axis (0 at north pole, π at south pole). θ in xy-plane from x-axis.
How to Use This Calculator
- Enter spherical (ρ, θ, φ). Select degrees or radians for the angles.
- Click a sample example to auto-fill and calculate.
- Click Calculate to get Cartesian (x, y, z).
- Review the step-by-step solution and use Copy Results to share.
Note: Physics convention: φ from +z-axis. ρ must be non-negative. Standard floating-point arithmetic.
Related Calculators
Cartesian To Spherical Calculator
Cartesian To Spherical Calculator - Calculate and learn about coordinate-geometry concepts
MathematicsCylindrical To Cartesian Calculator
Cylindrical To Cartesian Calculator - Calculate and learn about coordinate-geometry concepts
MathematicsPolar To Cartesian Calculator
Polar To Cartesian Calculator - Calculate and learn about coordinate-geometry concepts
MathematicsCartesian To Cylindrical Calculator
Cartesian To Cylindrical Calculator - Calculate and learn about coordinate-geometry concepts
MathematicsCartesian To Polar Calculator
Cartesian To Polar Calculator - Calculate and learn about coordinate-geometry concepts
MathematicsSpherical Coordinates Calculator
Spherical Coordinates Calculator - Calculate and learn about coordinate-geometry concepts
Mathematics