MULTIVARIABLE CALCULUS • VECTORS AND GEOMETRY IN 3D

Cartesian to Cylindrical — Convert between Cartesian and cylindrical coordinates

Learn how to describe 3D points using distance, angle, and height instead of three perpendicular axes.

Historical Context & Motivation

For centuries, mathematicians have searched for the most natural way to describe points in space. The familiar Cartesian coordinate system — the (x, y, z) grid you already know — works beautifully for boxes, grids, and flat surfaces. But what happens when the object you're describing is round, like a pipe, a tornado, or a planet? Suddenly, using three perpendicular lines feels awkward. That frustration is exactly why cylindrical coordinates were invented: to give us a coordinate system that matches the natural symmetry of circular and cylindrical shapes.

1637
Descartes Publishes La Géométrie
René Descartes introduces the Cartesian coordinate system, linking algebra and geometry by assigning (x, y) pairs to points in a plane.
1694
Bernoulli Formalizes Polar Coordinates
Jakob Bernoulli develops polar coordinates (r, θ) for curves in 2D, showing that some shapes are far simpler to describe with a radius and an angle.
1700s
Extension to 3D — Cylindrical Coordinates
Mathematicians extend polar coordinates into three dimensions by adding a vertical height z, creating cylindrical coordinates (r, θ, z). This system becomes essential in physics and engineering.
1800s
Laplace and Fourier Use Cylindrical Coordinates
Pierre-Simon Laplace and Joseph Fourier apply cylindrical coordinates to solve problems in heat conduction through cylinders and gravitational fields — problems that would be far harder in Cartesian form.
Today
Modern Applications
Cylindrical coordinates are used everywhere: MRI scanners, robotics, fluid dynamics in pipes, and 3D computer graphics rely on the ability to switch between Cartesian and cylindrical systems.

The core question this lesson addresses is straightforward: given a point described as (x, y, z), how do we convert it to (r, θ, z) and back? Mastering this conversion opens the door to solving real-world 3D problems that have circular symmetry — and it all starts with the relationship between right triangles and circles that you learned in geometry and trigonometry.

Core Principles & Definitions

Before jumping into formulas, let's build a clear mental picture of what cylindrical coordinates actually measure. In the Cartesian system you measure three perpendicular distances — how far right (x), how far forward (y), and how far up (z). In the cylindrical system you describe the same point using a radial distance, an angle, and a height. The height coordinate z is the same in both systems — only the way you describe the horizontal position changes.

1

r — Radial Distance

The distance from the z-axis to the point, measured in the horizontal (xy) plane. It is always ≥ 0, and it corresponds to the hypotenuse of a right triangle with legs x and y.
2

θ — Angular Position

The angle measured counterclockwise from the positive x-axis to the line connecting the origin to the point's shadow on the xy-plane. Typically given in radians, with 0 ≤ θ < 2π.
3

z — Vertical Height

The signed distance above (positive) or below (negative) the xy-plane. This coordinate is identical in both Cartesian and cylindrical systems — no conversion needed.
4

The xy-Plane Connection

The conversion between (x, y) and (r, θ) is exactly the same as converting 2D Cartesian coordinates to polar coordinates. If you know polar coordinates, you already understand most of this!
KEY TAKEAWAY
Think of cylindrical coordinates like giving directions to a seat in a circular stadium. Instead of saying "go 30 meters east and 40 meters north" (Cartesian), you say "walk 50 meters from center stage at a 53° angle, then climb up 10 rows" (cylindrical). Both descriptions point to the same seat — one just works better for a round building.

Visual Explanation

The diagram below shows how a single point in 3D space can be located using both coordinate systems. The Cartesian description uses three perpendicular measurements (x, y, z), while the cylindrical description uses a distance from the z-axis (r), an angle from the positive x-axis (θ), and the same height (z).

A 3D point P is shown with its cylindrical coordinates. The cyan line (r) is the radial distance from the z-axis to the point's shadow on the xy-plane. The pink arc (θ) is the angle from the positive x-axis. The green dashed line (z) is the height above the xy-plane.

Notice how the radial distance r and the angle θ describe the point's location on the horizontal plane — just like polar coordinates in 2D. The z-coordinate then lifts the point up (or pushes it down) to its actual position in 3D space. This is why cylindrical coordinates are sometimes described as "polar coordinates with a height."

Mathematical Framework

The conversion formulas come directly from basic right-triangle trigonometry. When you project a 3D point onto the xy-plane, the x and y coordinates form the legs of a right triangle, and r is the hypotenuse. The angle θ is the standard angle from the positive x-axis. Let's formalize these relationships.

Cartesian → Cylindrical

RADIAL DISTANCE
r = √(x² + y²)
This is the Pythagorean theorem applied in the xy-plane. The value r is always non-negative.
ANGULAR POSITION
θ = arctan(y / x) (adjusted for quadrant)
Use the atan2(y, x) function (available on most calculators as a two-argument arctangent) to automatically place θ in the correct quadrant. The range is typically 0 ≤ θ < 2π or −π < θ ≤ π.
HEIGHT
z = z
The z-coordinate is unchanged — it is the same in both systems.

Cylindrical → Cartesian

BACK TO CARTESIAN
x = r cos θ , y = r sin θ , z = z
These come from the definitions of cosine and sine: the adjacent side is r cos θ and the opposite side is r sin θ. Together with z, you recover the full Cartesian triple.
⚠️ Watch Out for Quadrants!
The basic arctan(y/x) formula only returns angles in Quadrants I and IV (between −π/2 and π/2). If the point lies in Quadrant II or III (where x is negative), you must add π to the result. Better yet, use the atan2(y, x) function, which handles all four quadrants automatically.

Quadrant-by-Quadrant Angle Guide

The trickiest part of the conversion is finding θ correctly when the point is not in the first quadrant. The diagram below shows the four quadrants of the xy-plane and the corresponding angle ranges, along with examples of how to adjust the raw arctan value.

Each quadrant requires a different adjustment to the raw arctan value to produce an angle in [0, 2π). In Quadrant I, no adjustment is needed. In Quadrants II and III, add π. In Quadrant IV, add 2π to obtain a positive angle.
Quadrant corrections for the angle θ
QuadrantSign of xSign of yθ Formula (for 0 ≤ θ < 2π)
I++θ = arctan(y/x)
II+θ = arctan(y/x) + π
IIIθ = arctan(y/x) + π
IV+θ = arctan(y/x) + 2π
💡 Special Cases on the Axes
If x = 0 and y > 0, then θ = π/2. If x = 0 and y < 0, then θ = 3π/2. If the point is at the origin (x = y = 0), the angle θ is undefined, and r = 0.

Worked Example

Let's convert the Cartesian point (−3, 3√3, 7) to cylindrical coordinates (r, θ, z). This point has a negative x-value and a positive y-value, so it lies in Quadrant II.

Convert (−3, 3√3, 7) to Cylindrical
1
Step 1 — Identify the given valuesWe are given x = −3, y = 3√3, and z = 7. Our goal is to find r, θ, and z in cylindrical form.
2
Step 2 — Calculate rUse the formula r = √(x² + y²). Substituting: r = √((−3)² + (3√3)²) = √(9 + 27) = √36 = 6.
r = 6
3
Step 3 — Find the reference angleCompute the raw arctangent: arctan(y/x) = arctan(3√3 / (−3)) = arctan(−√3). The calculator returns −π/3 (or −60°). This raw value is negative and doesn't reflect the correct quadrant yet.
4
Step 4 — Adjust θ for Quadrant IISince x < 0 and y > 0 (Quadrant II), add π to the raw result: θ = −π/3 + π = 2π/3. Equivalently, 2π/3 radians = 120°. This places the angle correctly in the second quadrant.
θ = 2π/3 (120°)
5
Step 5 — Write zThe z-coordinate stays the same: z = 7.
z = 7
6
Step 6 — State the final answerThe cylindrical coordinates are (r, θ, z) = (6, 2π/3, 7).
(r, θ, z) = (6, 2π/3, 7)
7
Step 7 — Verify by converting backCheck: x = r cos θ = 6 cos(2π/3) = 6 × (−1/2) = −3 ✓. y = r sin θ = 6 sin(2π/3) = 6 × (√3/2) = 3√3 ✓. z = 7 ✓. The conversion is confirmed.

When to Use Each System

Neither coordinate system is "better" overall — each has strengths that depend on the shape of the problem. The table below compares the two systems across several practical criteria.

Cartesian vs. Cylindrical comparison
CriterionCartesian (x, y, z)Cylindrical (r, θ, z)
Best for shapesBoxes, planes, rectangular solidsCylinders, cones, spirals, pipes
Equation simplicityx² + y² = 25 is a cylinder (looks complicated)r = 5 (beautifully simple!)
IntegrationVolume element is dx dy dzVolume element is r dr dθ dz (note the extra r)
Ease of visualizationVery intuitive — perpendicular gridIntuitive for rotational symmetry
Angle ambiguityNo angles — no ambiguityMust handle quadrant corrections for θ
KEY TAKEAWAY
Choosing the right coordinate system is like choosing the right tool. You wouldn't use a ruler to measure around a circular pizza — you'd use a protractor and a tape measure from the center. Cylindrical coordinates are your "circular toolkit" for 3D problems with rotational symmetry.

Connection to Spherical Coordinates & Beyond

Cylindrical coordinates are just one step on the ladder of alternative coordinate systems. When you study problems with full spherical symmetry — like gravity around a planet or electromagnetic fields from a point charge — you'll meet spherical coordinates (ρ, θ, φ), which describe points using a distance from the origin, a polar angle, and an azimuthal angle. The table below shows how the three main 3D coordinate systems relate.

The three major 3D coordinate systems
FeatureCartesianCylindricalSpherical
Coordinates(x, y, z)(r, θ, z)(ρ, θ, φ)
Symmetry typeRectangularCircular / cylindricalSpherical
Typical useFlat surfaces, boxesPipes, columns, spiralsPlanets, atoms, radiation
Volume elementdx dy dzr dr dθ dzρ² sin φ dρ dθ dφ

Understanding Cartesian-to-cylindrical conversion is essential preparation for these more advanced systems. The same trigonometric reasoning you've practiced here — relating distances and angles via sine, cosine, and the Pythagorean theorem — appears in every coordinate transformation you'll encounter in multivariable calculus and physics.

Practice Problems

PROBLEM 1CONCEPTUAL
Explain in your own words why the z-coordinate does not change when converting from Cartesian to cylindrical coordinates. What geometric fact makes this possible?
PROBLEM 2BASIC CALCULATION
Convert the Cartesian point (4, 4, −2) to cylindrical coordinates (r, θ, z). Express θ in radians.
PROBLEM 3INTERMEDIATE
Convert the Cartesian point (−5, −5√3, 10) to cylindrical coordinates. Give θ in the range [0, 2π).
PROBLEM 4APPLIED
A robot arm is positioned at Cartesian coordinates (−6, 8, 3) in meters. The control software requires the position in cylindrical coordinates to calculate the rotation angle and extension distance. Find (r, θ, z) and explain what each coordinate tells the robot.
PROBLEM 5CRITICAL THINKING
The equation x² + y² − 6x = 0 describes a surface in 3D (where z can be any value). Convert this equation to cylindrical coordinates, simplify it, and describe the geometric shape.

Lesson Summary

Cylindrical coordinates describe a 3D point using three values: r (radial distance from the z-axis), θ (angle from the positive x-axis), and z (height, unchanged from Cartesian). To convert from Cartesian to cylindrical, compute r = √(x² + y²) and θ = atan2(y, x), adjusting for the correct quadrant. To convert back, use x = r cos θ and y = r sin θ.

The key insight is that cylindrical coordinates are simply polar coordinates extended into 3D by adding a vertical z-axis. They are most powerful when the problem involves circular or rotational symmetry — cylinders, cones, spirals, and pipes all become much simpler. Always watch for quadrant corrections when computing θ, and verify your answer by converting back to Cartesian to check.

Varsity Tutors • Multivariable Calculus • Cartesian to Cylindrical — Convert between Cartesian and cylindrical coordinates