Cylindrical Coordinates - Definition, Formula, and Examples

#Geometry
TL;DR
Cylindrical coordinates locate a point in 3D space as the ordered triple (r, θ, z), where $(r, \theta)$ are the polar coordinates of the point's shadow on the xy-plane and z is the usual height. This article gives the conversion formulas to and from Cartesian coordinates, shows when the system is worth using, and works through six examples plus the mistakes to avoid.
BT
Bhanzu TeamLast updated on July 22, 20268 min read

The Coordinate System Hidden Inside Every Pipe And Wire

Engineers modelling water rushing through a straight pipe, or the magnetic field wrapping around a live wire, almost never reach for plain $x, y, z$. They reach for a system that treats "distance from the central axis" as one clean number, because the physics wraps around that axis. That system is cylindrical coordinates, and once you see why it exists, the formulas stop looking arbitrary.

What Are Cylindrical Coordinates?

Cylindrical coordinates are a three-dimensional coordinate system that locates a point using the ordered triple $(r, \theta, z)$: the distance $r$ from the central axis, the angle $\theta$ measured around that axis, and the height $z$ along it. They extend the flat polar coordinate system into 3D by keeping the polar pair $(r, \theta)$ for the horizontal position and adding the ordinary Cartesian $z$ for height.

Read that first paragraph on its own and you have the answer. Cylindrical coordinates are "polar coordinates on the ground, plus a height."

Before the formulas, three plain definitions. $r$ (the radial distance) is how far the point sits from the vertical z-axis, always zero or positive. $\theta$ (the azimuthal angle) is how far around you have swung from the positive x-axis, exactly like the angle in coordinate geometry on the flat plane. $z$ (the height) is the same z you already know from Cartesian space.

The Conversion Formulas

From cylindrical to Cartesian (going from $(r, \theta, z)$ to $(x, y, z)$):

$$x = r\cos\theta$$ $$y = r\sin\theta$$ $$z = z$$

From Cartesian to cylindrical (going from $(x, y, z)$ to $(r, \theta, z)$):

$$r = \sqrt{x^2 + y^2}$$ $$\theta = \tan^{-1}!\left(\frac{y}{x}\right)$$ $$z = z$$

These are not magic. Drop a vertical line from the point to the xy-plane and you get a right triangle in that plane, with hypotenuse $r$, angle $\theta$, horizontal leg $x = r\cos\theta$, and vertical leg $y = r\sin\theta$. The $r = \sqrt{x^2 + y^2}$ formula is just the Pythagorean theorem on that triangle. The height $z$ never changes, because cylindrical coordinates only rethink the horizontal part.

Why does θ need a quadrant check? Because $\tan^{-1}(y/x)$ from a calculator only returns angles between $-90°$ and $90°$. If your point is in the second or third quadrant, you have to add $180°$ (or $\pi$). That single habit is where most sign errors come from.

When Cylindrical Coordinates Beat Cartesian

The rule of thumb: use cylindrical coordinates whenever the situation has rotational symmetry about an axis. If rotating the whole picture about a central line leaves it looking the same, the math gets simpler in $(r, \theta, z)$.

  • A pipe or cylinder. Its surface is just $r = \text{constant}$ - a single tidy equation. In Cartesian form the same surface is the clumsier $x^2 + y^2 = \text{constant}$.

  • Fields around a wire. A magnetic field wrapping a straight current-carrying wire depends only on distance from the wire, so it depends only on $r$.

  • Rotating machinery, whirlpools, tornadoes. Anything spinning about an axis.

For shapes that are symmetric about a point rather than an axis (a sphere, a planet's gravity), spherical coordinates do the same job. And for flat, non-symmetric work, Cartesian form stays the right tool.

Examples of Cylindrical Coordinates

Example 1

Convert the cylindrical point $(4, 0, 5)$ to Cartesian coordinates.

Use $x = r\cos\theta$, $y = r\sin\theta$, $z = z$ with $r = 4$, $\theta = 0$, $z = 5$.

$$x = 4\cos 0 = 4$$ $$y = 4\sin 0 = 0$$ $$z = 5$$

Final answer: $(4, 0, 5)$.

Example 2

Convert the Cartesian point $(0, 3, 7)$ to cylindrical coordinates. A student writes $\theta = \tan^{-1}(3/0)$ on a calculator, gets an error, and guesses $\theta = 0$.

Reaching for $\tan^{-1}(y/x)$ blindly is the natural first move, but division by zero has no output, so the calculator error is a signal, not noise.

Watch where it breaks: guessing $\theta = 0$ would place the point on the positive x-axis, yet the point $(0, 3)$ sits straight up the positive y-axis. The angle cannot be $0$.

The correct way is to reason from the position, not the formula. The point $(0, 3)$ lies on the positive y-axis, which is at $\theta = 90° = \frac{\pi}{2}$. Then:

$$r = \sqrt{0^2 + 3^2} = 3$$ $$\theta = \frac{\pi}{2}$$ $$z = 7$$

Final answer: $\left(3, \frac{\pi}{2}, 7\right)$.

Example 3

Convert the cylindrical point $\left(2, \frac{\pi}{3}, 4\right)$ to Cartesian coordinates.

With $r = 2$, $\theta = \frac{\pi}{3}$ (which is $60°$), $z = 4$:

$$x = 2\cos\frac{\pi}{3} = 2 \cdot \frac{1}{2} = 1$$ $$y = 2\sin\frac{\pi}{3} = 2 \cdot \frac{\sqrt{3}}{2} = \sqrt{3}$$ $$z = 4$$

Final answer: $(1, \sqrt{3}, 4)$.

Example 4

Convert the Cartesian point $(1, 1, 2)$ to cylindrical coordinates.

$$r = \sqrt{1^2 + 1^2} = \sqrt{2}$$ $$\theta = \tan^{-1}!\left(\frac{1}{1}\right) = \frac{\pi}{4}$$ $$z = 2$$

The point is in the first quadrant, so no quadrant adjustment is needed. Final answer: $\left(\sqrt{2}, \frac{\pi}{4}, 2\right)$.

Example 5

Describe the surface given by the cylindrical equation $r = 3$ (with $\theta$ and $z$ free).

Fixing $r = 3$ means every point sits exactly $3$ units from the z-axis, at any angle and any height.

That is precisely the definition of an infinite cylinder of radius $3$ centred on the z-axis. This is the whole reason the system is named after the cylinder. Final answer: an infinite circular cylinder of radius $3$ about the z-axis.

Example 6

Convert the Cartesian point $(-2, 0, 1)$ to cylindrical coordinates.

$$r = \sqrt{(-2)^2 + 0^2} = 2$$

The point $(-2, 0)$ sits on the negative x-axis. A calculator gives $\tan^{-1}(0/-2) = 0$, but $\theta = 0$ is the positive x-axis. The point is at $\theta = 180° = \pi$.

$$\theta = \pi$$ $$z = 1$$

Final answer: $(2, \pi, 1)$.

Where This System Comes From: "Symmetry Deserves Its Own Language"

Cylindrical coordinates were not invented to make homework longer. They exist because whole branches of physics describe things that wrap around an axis, and forcing that physics into a square $x, y, z$ grid buries the symmetry under algebra.

  • Fluid flow in round pipes: velocity depends on distance from the centre, so $r$ is the natural variable and the other coordinates barely matter.

  • Electromagnetism: the field around a long straight wire circles it, so it is a function of $r$ alone.

  • Astronomy: accretion disks and rotating gas clouds spin about a central axis.

The system is the standard tool in multivariable calculus for exactly these problems, as laid out in the OpenStax treatment of cylindrical and spherical coordinates. Choosing the right coordinate system is itself a piece of problem-solving: the geometry does not change, but the effort does. The same solids you meet in 3D geometry shapes become far easier to describe once the coordinates match their symmetry.

Tripping Points To Avoid

Mistake 1: Trusting the calculator's arctangent without a quadrant check

Where it slips in: converting a Cartesian point to cylindrical when the point is not in the first quadrant.

Don't do this: copy $\theta = \tan^{-1}(y/x)$ straight off the calculator and move on.

The correct way: the calculator only returns angles from $-90°$ to $90°$. The first-instinct error is to trust it for a point on the negative x-axis, where the true angle is $180°$. Always locate the point's quadrant first, then adjust $\theta$ by $180°$ if it lies left of the y-axis. This is the single most common source of wrong cylindrical answers.

Mistake 2: Confusing the order of the triple

Where it slips in: reading or writing $(r, \theta, z)$.

Don't do this: write the height second, as if it were $(r, z, \theta)$.

The correct way: the order is radius, angle, height - the two "flat" polar values first, then height last. Mixing up angle and height is a habit that a clear diagram fixes: draw the point once and label each coordinate on its own axis before writing the triple.

Mistake 3: Forgetting that r is never negative

Where it slips in: solving for $r$ from $r = \sqrt{x^2 + y^2}$.

Don't do this: keep a negative root because "the point is in the negative direction."

The correct way: direction is carried entirely by $\theta$, so $r$ is a distance and is always $\ge 0$.

Conclusion

  • Cylindrical coordinates describe a 3D point as $(r, \theta, z)$: polar coordinates on the ground plus a height.

  • Convert with $x = r\cos\theta$, $y = r\sin\theta$, $z = z$ one way, and $r = \sqrt{x^2 + y^2}$, $\theta = \tan^{-1}(y/x)$, $z = z$ the other.

  • The system shines for anything with rotational symmetry about an axis, where a surface like a cylinder collapses to the single equation $r = \text{constant}$.

  • Always check the quadrant when finding $\theta$, and remember $r$ is never negative.

To take cylindrical coordinates further with a teacher, explore Bhanzu's geometry tutor, a high school math tutor, or math tutoring.

A Practical Next Step

Work through these to lock it in: convert the cylindrical point $\left(5, \frac{\pi}{2}, -3\right)$ to Cartesian; convert the Cartesian point $(-1, -1, 4)$ to cylindrical (mind the quadrant); and describe the surface $z = 2$ in cylindrical coordinates. If the quadrant step trips you on the second one, return to Example 6 and locate the point before touching the arctangent. Want a live Bhanzu trainer to walk through more cylindrical coordinate problems? Book a free demo class.

Read More

Book a Free Demo

Was this article helpful?

Your feedback helps us write better content

Frequently Asked Questions

What are cylindrical coordinates in simple terms?
They locate a 3D point by how far it is from a central vertical axis ($r$), how far around it has swung ($\theta$), and how high it is ($z$).
How do you convert cylindrical to Cartesian?
Use $x = r\cos\theta$, $y = r\sin\theta$, and $z = z$.
What is the difference between polar and cylindrical coordinates?
Polar coordinates are 2D, $(r, \theta)$. Cylindrical coordinates are polar coordinates with a height $z$ added, making them 3D.
When should I use cylindrical coordinates instead of Cartesian?
When the problem has rotational symmetry about an axis - pipes, wires, rotating fluids - because the equations become far simpler.
Is r ever negative in cylindrical coordinates?
No. In the standard convention $r$ is a distance, so it is always zero or positive; the direction is carried by the angle $\theta$.
✍️ Written By
BT
Bhanzu Team
Content Creator and Editor
Bhanzu’s editorial team, known as Team Bhanzu, is made up of experienced educators, curriculum experts, content strategists, and fact-checkers dedicated to making math simple and engaging for learners worldwide. Every article and resource is carefully researched, thoughtfully structured, and rigorously reviewed to ensure accuracy, clarity, and real-world relevance. We understand that building strong math foundations can raise questions for students and parents alike. That’s why Team Bhanzu focuses on delivering practical insights, concept-driven explanations, and trustworthy guidance-empowering learners to develop confidence, speed, and a lifelong love for mathematics.
Related Articles
Book a FREE Demo ClassBook Now →