Connect via MCP →

Enter Calculation

For Cartesian → Cylindrical fill x, y, z. For Cylindrical → Cartesian fill r, θ (degrees), z.

Formula

Advertisement

Results

Converted Coordinates
(5, 53.1301°, 5)
(r, θ, z) cylindrical
x 3
y 4
z 5
r (radius) 5
θ (degrees) 53.130102°

What Are Cylindrical Coordinates?

Cylindrical coordinates describe a point in 3D space using a radius r, an angle θ, and a height z. They extend 2D polar coordinates by simply keeping the Cartesian z-axis. This system is ideal for problems with rotational symmetry around an axis — pipes, cylinders, electromagnetic fields, and fluid flow.

3D diagram showing a point defined by radius r, angle theta, and height z in cylindrical coordinates
A point P located by its radius r, azimuth angle θ, and height z above the xy-plane.

How to Use This Calculator

Pick a conversion direction. For Cartesian → Cylindrical, enter the x, y, and z values; the tool returns r, θ (in degrees), and z. For Cylindrical → Cartesian, enter r, θ (degrees), and z to get x, y, and z. The angle is computed with the two-argument arctangent (atan2) so the correct quadrant is always chosen.

The Formula Explained

The radius is the straight-line distance from the z-axis: $$r = \sqrt{x^{2} + y^{2}}$$ The angle uses $$\theta = \operatorname{atan2}(y,\ x)$$ which returns a value between −180° and 180°, handling all four quadrants and the axes correctly. The height \(z\) is identical in both systems. The inverse is $$x = r\cos\theta \qquad y = r\sin\theta$$

Advertisement
Top-down view showing conversion between Cartesian x, y and polar r, theta in the plane
Looking down the z-axis: r and θ relate to x and y through a right triangle.

Worked Example

Convert the Cartesian point (3, 4, 5). The radius is $$\sqrt{3^{2} + 4^{2}} = \sqrt{25} = 5$$ The angle is \(\operatorname{atan2}(4, 3) \approx 53.13°\). The height stays 5. So the cylindrical coordinates are (5, 53.13°, 5).

FAQ

Why use atan2 instead of arctan(y/x)? Plain arctan loses quadrant information and is undefined when x = 0. atan2 handles every case correctly.

Are angles in degrees or radians? This calculator displays and accepts θ in degrees for convenience; internally it converts to radians for the trig functions.

What if x and y are both zero? The point is on the z-axis, so r = 0 and θ is conventionally 0°.

Last updated: