Cylindrical Coordinates Calculator

Convert between cylindrical (r, θ, z) and Cartesian (x, y, z) coordinates with step-by-step solutions, reference angle table, and top-down projection visual.

x (Cartesian)
2.500000
Horizontal component: x = r·cos(θ)
y (Cartesian)
4.330127
Depth component: y = r·sin(θ)
z
2.000000
Height component — same in both systems
r (radial)
5.000000
Distance from z-axis: r = √(x² + y²)
θ (degrees)
60.000000°
Angle in xy-plane from positive x-axis
Distance to Origin
5.385165
√(x² + y² + z²) — Euclidean distance from origin

Conversion Steps

#Step
1x = r·cos(θ) = 5.0000·cos(60.0000°) = 2.500000
2y = r·sin(θ) = 5.0000·sin(60.0000°) = 4.330127
3z = 2.000000 (unchanged)

Top-Down Projection (xy-plane)

(2.5, 4.3)+x+y

Reference Angle Table

DegreesRadianscos θsin θ
0°0.00001.00000.0000
30°0.52360.86600.5000
45°0.78540.70710.7071
60°1.04720.50000.8660
90°1.57080.00001.0000
120°2.0944-0.50000.8660
135°2.3562-0.70710.7071
150°2.6180-0.86600.5000
180°3.1416-1.00000.0000
210°3.6652-0.8660-0.5000
225°3.9270-0.7071-0.7071
240°4.1888-0.5000-0.8660
270°4.7124-0.0000-1.0000
300°5.23600.5000-0.8660
315°5.49780.7071-0.7071
330°5.75960.8660-0.5000
360°6.28321.0000-0.0000
Planning notes, formulas, and examples

About the Cylindrical Coordinates Calculator

Cylindrical coordinates extend the familiar 2D polar system into three dimensions by adding a height axis z. A point in space is described by three values: the radial distance r from the z-axis, the angle θ measured counter-clockwise from the positive x-axis in the xy-plane, and the height z above (or below) the xy-plane. This system is especially convenient for problems with rotational symmetry around a central axis — think of pipes, solenoids, drill bits, or any geometry that naturally wraps around one direction.

Converting between cylindrical and Cartesian coordinates is straightforward. Going from cylindrical to Cartesian: x = r·cos θ, y = r·sin θ, and z stays the same. Going the other way: r = √(x² + y²), θ = atan2(y, x), and z is unchanged. The atan2 function is preferred over simple arctan because it correctly handles all four quadrants, returning an angle in the range [0, 2π).

This calculator performs both conversions, shows each algebraic step, and renders a top-down projection of the point in the xy-plane. A reference table lists cosine and sine values for 17 standard angles so you can verify results by hand. Preset buttons let you explore special points such as the unit vectors along each axis and the classic 45° diagonal. Choose degrees or radians — the calculator handles both seamlessly.

When This Page Helps

Converting between cylindrical (r, θ, z) and Cartesian (x, y, z) coordinates requires evaluating trig functions, choosing the right quadrant for atan2, and keeping track of whether angles are in degrees or radians. Errors in any one of these steps throw off the whole result. This calculator handles both conversion directions, shows every algebraic step, and renders a top-down projection so you can confirm the geometry visually. Multivariable-calculus and physics students use it to check homework, and engineers verify coordinate transforms for cylindrical FEA meshes.

How to Use the Inputs

  1. Select the conversion direction: Cylindrical → Cartesian or Cartesian → Cylindrical.
  2. Choose your angle unit (degrees or radians).
  3. Enter r, θ, and z (or x, y, z for the reverse direction).
  4. Read the converted coordinates and distance to the origin in the output cards.
  5. Review each algebraic step in the Conversion Steps table.
  6. Verify with the top-down projection diagram showing your point in the xy-plane.
  7. Use preset buttons to load common test points.
  8. Consult the Reference Angle Table for exact trig values at standard angles.
Formula used
Cylindrical → Cartesian: x = r·cos(θ) y = r·sin(θ) z = z Cartesian → Cylindrical: r = √(x² + y²) θ = atan2(y, x) z = z Distance to origin = √(x² + y² + z²)

Example Calculation

Result: x = 2.5, y ≈ 4.3301, z = 2

x = 5·cos(60°) = 5·0.5 = 2.5. y = 5·sin(60°) = 5·(√3/2) ≈ 4.3301. z remains 2.

Tips & Best Practices

  • Use atan2 (not arctan) when converting to cylindrical to handle all four quadrants correctly.
  • If θ is negative, add 2π (or 360°) to bring it into the conventional [0, 2π) range.
  • r is always non-negative; a negative r in some textbooks means θ is shifted by π.
  • This system is ideal for electromagnetics problems with axial symmetry (Gauss law, Ampere law).
  • Double-check that your calculator is in the correct angle mode (degrees vs. radians) before converting.

When to Choose Cylindrical Coordinates

Cylindrical coordinates are the natural choice whenever a problem has rotational symmetry about a single axis. A pipe, wire, solenoid, drill hole, or tree trunk is most simply described with r (how far from the axis), θ (how far around), and z (how far along). In multivariable calculus, triple integrals over cylinders and cones simplify dramatically in cylindrical form because the Jacobian dV = r dr dθ dz factors cleanly. Laplace's equation, the heat equation, and the wave equation all separate neatly in cylindrical coordinates, producing Bessel functions as radial solutions.

Electromagnetic Fields and Cylindrical Symmetry

Gauss's law and Ampère's law frequently exploit cylindrical symmetry. The magnetic field around an infinitely long straight wire depends only on r: B = μ₀I/(2πr). The electric field inside a coaxial cable also depends only on r, making the problem one-dimensional when expressed in cylindrical coordinates. Computing the flux through a cylindrical Gaussian surface or the circulation around a circular Ampèrian loop becomes a single-variable integral, vastly simpler than the equivalent Cartesian calculation.

Relationship to Polar and Spherical Systems

Cylindrical coordinates can be viewed as 2-D polar coordinates (r, θ) extruded along the z-axis. At z = 0 the two systems are identical. Spherical coordinates (ρ, φ, θ) relate to cylindrical by ρ = √(r² + z²) and φ = arctan(r/z). Moving between all three systems is a common exercise in vector calculus and is essential in physics: gravitational problems favour spherical, magnetic-coil problems favour cylindrical, and Cartesian coordinates remain king for rectangular geometries and most numerical simulations.

Sources & Methodology

Last updated:

Frequently Asked Questions

  • A 3D coordinate system using radial distance r, azimuthal angle θ, and height z to locate points in space.