Last verified · v1.0
Calculator · math
Cylindrical Coordinates Calculator
Free cylindrical coordinates calculator. Convert Cartesian (x, y, z) to cylindrical (r, θ, z) or back, with radians and degrees supported.
Inputs
Selected Coordinate Component
—
Explain my result
Get a plain-English breakdown of your result with practical next steps.
The formula
How the
result is
computed.
What Are Cylindrical Coordinates?
Cylindrical coordinates describe any point in three-dimensional space using three values: a radial distance r, an azimuthal angle θ, and a vertical height z. This system extends polar coordinates into 3D by keeping the z-axis unchanged, making it the natural framework for problems with rotational symmetry around a central axis — such as pipes, coils, pressure vessels, and electromagnetic waveguides.
Conversion Formulas
Cartesian (x, y, z) to Cylindrical (r, θ, z)
To convert a point from Cartesian to cylindrical coordinates, apply the following three relations:
- r = √(x² + y²) — the perpendicular distance from the z-axis to the point; always non-negative.
- θ = atan2(y, x) — the azimuthal angle measured counter-clockwise from the positive x-axis, returning a value in (−π, π] radians.
- z = z — the vertical component is identical in both systems and requires no conversion.
Cylindrical (r, θ, z) to Cartesian (x, y, z)
To recover Cartesian coordinates from a cylindrical triple, apply the inverse relations:
- x = r cos θ
- y = r sin θ
- z = z
Geometric Derivation
The derivation begins in the xy-plane. Any point (x, y) lies at a Euclidean distance r = √(x² + y²) from the origin, by the Pythagorean theorem. The angle θ satisfies cos θ = x/r and sin θ = y/r, immediately yielding x = r cos θ and y = r sin θ. Appending the unchanged z-coordinate elevates the 2D polar system into full cylindrical form. The two-argument atan2(y, x) function is used in place of a plain arctan to correctly resolve the quadrant for all (x, y) pairs — unlike arctan(y/x), which is undefined when x = 0 and returns ambiguous results when x < 0. According to Pauls Online Math Notes — Calculus III: Cylindrical Coordinates, this system is the standard choice whenever the geometry of a problem has an axis of symmetry.
Variable Reference
- r (Radial Distance): The shortest distance from the z-axis to the point, computed as √(x² + y²). Always r ≥ 0. When r = 0, the point lies on the z-axis and θ is undefined.
- θ (Azimuthal Angle): The angle swept counter-clockwise from the positive x-axis in the xy-plane. This calculator supports radians (range −π to π) or degrees (range −180° to 180°). Radians are the standard in calculus and physics; degrees are common in engineering and navigation.
- z (Height): The signed vertical distance along the z-axis. This coordinate is identical in Cartesian and cylindrical systems — no formula is needed.
Worked Examples
Example 1: Cartesian to Cylindrical
Convert the Cartesian point (3, 4, 7) to cylindrical coordinates:
- r = √(3² + 4²) = √(9 + 16) = √25 = 5
- θ = atan2(4, 3) ≈ 0.9273 rad (≈ 53.13°)
- z = 7
Result: (r, θ, z) = (5, 0.9273 rad, 7). Verification: x = 5 cos(0.9273) ≈ 3 ✓, y = 5 sin(0.9273) ≈ 4 ✓.
Example 2: Cylindrical to Cartesian
Convert the cylindrical point (6, π/3 rad, −2) to Cartesian:
- x = 6 cos(π/3) = 6 × 0.5 = 3
- y = 6 sin(π/3) = 6 × (√3/2) ≈ 5.196
- z = −2
Real-World Applications
Cylindrical coordinates reduce complexity wherever circular or axial symmetry appears:
- Integral Calculus: Triple integrals over cylinders and cones use the cylindrical volume element r dr dθ dz. The factor r is the Jacobian determinant of the transformation. As detailed in Whitman College — 15.2 Double Integrals in Cylindrical Coordinates, integrating over a cylinder of radius R and height H gives ∫₀ᴴ ∫₀²π ∫₀ᴿ r dr dθ dz = πR²H, recovering the standard volume formula.
- Electromagnetism: The magnetic field around a long straight current-carrying wire is purely azimuthal: B = (μ₀I)/(2πr) in the θ̂-direction — a single-component description impossible without cylindrical coordinates.
- Structural Engineering: Axisymmetric finite-element analyses of pressure vessels, nuclear fuel rods, and rotating shafts adopt RZ cylindrical formulations to collapse 3D problems into 2D, dramatically reducing computational cost.
- Fluid Dynamics: Poiseuille flow in a circular pipe and Taylor-Couette flow between coaxial cylinders have velocity fields that depend only on r, reducing the Navier-Stokes equations to ordinary differential equations in a single variable.
Reference