User Rating 0.0
Total Usage 0 times
Angle unit:
Presets:
Cylindrical (r, θ, z)
r
θ
z
Cartesian (x, y, z)
x
y
z
Spherical (ρ, θ, φ)
ρ
θ
φ
3D Visualization Drag to rotate
Is this tool helpful?

Your feedback helps us improve.

About

Coordinate system errors propagate silently through integration bounds, vector field computations, and boundary condition definitions. A sign mistake in the θ component or a forgotten r factor in the volume element dV = r dr dz invalidates the entire result. This calculator performs exact conversions between cylindrical (r, θ, z), Cartesian (x, y, z), and spherical (ρ, θ, φ) coordinate systems using standard ISO 31-11 conventions. It handles quadrant-aware arctangent via atan2 and supports both degree and radian input.

The tool assumes the physics convention for spherical coordinates where θ is the azimuthal angle and φ is the polar angle measured from the positive z-axis. Note: the mathematics convention swaps θ and φ. Verify which convention your textbook uses before applying results. The interactive 3D visualization renders the point and its projections onto coordinate planes to build geometric intuition.

cylindrical coordinates coordinate converter cartesian to cylindrical spherical coordinates 3D coordinates math calculator coordinate system

Formulas

The fundamental conversion from cylindrical to Cartesian coordinates uses the polar projection onto the xy-plane.

x = r cos θ
y = r sin θ
z = z

The inverse transformation from Cartesian to cylindrical recovers the radial distance and azimuthal angle.

r = x2 + y2
θ = atan2(y, x)

Conversion between cylindrical and spherical coordinates (physics convention where φ is the polar angle from the z-axis).

ρ = r2 + z2
φ = atan2(r, z)

The gradient operator in cylindrical coordinates applies scale factors to partial derivatives.

f = fr er + 1r fθ eθ + fz ez

The Laplacian in cylindrical coordinates includes the critical 1r factor.

2f = 1r r (r fr) + 1r2 2fθ2 + 2fz2

Where r = radial distance from z-axis, θ = azimuthal angle in xy-plane measured from positive x-axis, z = height along the vertical axis, ρ = radial distance from origin (spherical), φ = polar angle from positive z-axis (physics convention).

Reference Data

PropertyCylindricalCartesianSpherical
Coordinates(r, θ, z)(x, y, z)(ρ, θ, φ)
Range of r / ρr 0x Rρ 0
Range of θ[0, 2π) - [0, 2π)
Range of φ - - [0, π]
Volume Elementr dr dzdx dy dzρ2 sinφ
Scale Factor h1111
Scale Factor h2r1ρ
Scale Factor h311ρ sinφ
Unit Vectorser, eθ, ezex, ey, ezeρ, eθ, eφ
OrthogonalYesYesYes
Best for SymmetryAxial / CylindricalNone (general)Radial / Spherical
Common ApplicationsPipes, solenoids, rotating shaftsGeneral mechanics, CADGravity, EM radiation, antennas
Laplacian Form1r r(r fr) + ...2fx2 + 2fy2 + 2fz2Complex (see formulas)
x from Cylindricalr cosθ - ρ sinφ cosθ
y from Cylindricalr sinθ - ρ sinφ sinθ
z from Cylindricalz - ρ cosφ
r from Cartesianx2 + y2 - -
θ from Cartesianatan2(y, x) - atan2(y, x)
ρ from Cartesian - - x2 + y2 + z2
Jacobian Determinantr1ρ2 sinφ
ISO ConventionISO 31-11ISO 31-11ISO 31-11 (physics)

Frequently Asked Questions

When r = 0, the point lies on the z-axis. The azimuthal angle θ becomes undefined (any value yields the same point). The calculator returns θ = 0 by convention, matching the behavior of atan2(0, 0). The Laplacian and gradient operators contain 1r terms that become singular at r = 0. Apply L'Hôpital's rule or use Cartesian coordinates near the axis for differential operations.
ISO 31-11 defines two conventions. In physics, θ is the azimuthal angle (in the xy-plane, range [0, 2π)) and φ is the polar angle from the z-axis (range [0, π]). In mathematics, these symbols are swapped. This calculator uses the physics convention. Mixing conventions inverts the Jacobian determinant and corrupts volume integrals. Always check your source material before substituting values.
The standard arctan(yx) returns values in (π2, π2) and cannot distinguish quadrants II and III from I and IV. The atan2(y, x) function uses the signs of both arguments to return the correct angle in (π, π]. This calculator normalizes negative results to [0, 2π) by adding 2π when the raw result is negative.
The Jacobian matrix of the transformation maps differential elements between coordinate systems. For cylindrical coordinates, (x, y, z)(r, θ, z) evaluates to r. This means a differential volume element dx dy dz transforms to r dr dz. Omitting the r factor is one of the most common integration errors in multivariable calculus. It arises because arclength in the θ direction scales linearly with r.
By standard convention, r 0. A negative r value is geometrically equivalent to the point at (|r|, θ + π, z). Some polar plotting software allows negative r for convenience. This calculator accepts negative r input and automatically normalizes it: it takes the absolute value and adds π to θ, then reduces θ modulo 2π.
The coordinate system itself is geometry-dependent, not medium-dependent. Choose cylindrical coordinates when the problem has axial symmetry (pipes, coaxial cables, rotating machinery). The material properties (thermal conductivity, permittivity) appear as coefficients inside the differential operators, not in the coordinate transformation. However, anisotropic materials where conductivity differs along er vs eθ require tensor notation in that coordinate system, making the Laplacian more complex than the scalar form shown here.