Cylindrical Coordinates Calculator
Test cases replayed : 3 of 3 match · Methodology · No outside source listed
Choose the direction, then enter either x, y and z, or ρ, φ (in degrees) and z.
Result
ρ = √(x² + y²)
φ = atan2(y, x) (degrees)
- x = ρ cos φ
- y = ρ sin φ
- z
- Distance from the origin √(ρ² + z²)
Estimate for planning only, not tax, legal, financial or medical advice. This calculator uses the method explained on this page.
This browser did not allow copying. The sentence is in the box below, already selected: copy it with your keyboard or the menu.
How to use this calculator
Fill in the fields in this order; each step takes you to its field.
- Convert: choose Cartesian (x, y, z) to cylindrical or Cylindrical (ρ, φ, z) to Cartesian.
- x, or ρ (distance from the z-axis): enter a number.
- y, or φ in degrees: enter a number.
- z (the same in both systems): enter a number.
- Read the result: ρ = √(x² + y²); the panel also shows φ = atan2(y, x) (degrees), x = ρ cos φ, y = ρ sin φ, z and Distance from the origin √(ρ² + z²).
How this calculator works
Cylindrical coordinates (ρ, φ, z) are polar coordinates in the xy-plane plus the height z: x = ρ cos φ, y = ρ sin φ, z = z. Back: ρ = √(x² + y²), φ = atan2(y, x), z = z (ISO 80000-2 uses ρ, φ, z).
φ is given in degrees between −180° and 180°; atan2 keeps the correct quadrant. The distance from the origin is √(ρ² + z²) = √(x² + y² + z²). Converted values are rounded to 10 decimal places.
The formula
| Symbol | Meaning |
|---|---|
| Convert (1: Cartesian (x, y, z) to cylindrical; 2: Cylindrical (ρ, φ, z) to Cartesian) | |
| x, or ρ (distance from the z-axis) | |
| y, or φ in degrees | |
| ρ = √(x² + y²) |
Worked example
| Convert | Cartesian (x, y, z) to cylindrical |
|---|---|
| x, or ρ (distance from the z-axis) | 3 |
| y, or φ in degrees | 4 |
| z (the same in both systems) | 5 |
| φ = atan2(y, x) (degrees) | 53.1301 |
|---|---|
| x = ρ cos φ | 3 |
| y = ρ sin φ | 4 |
| z | 5 |
| Distance from the origin √(ρ² + z²) | 7.0711 |
ρ = √(x² + y²) 5
Each step uses the unrounded value of the step before it; figures on this page are rounded for display.
Frequently asked questions
What is (3, 4, 5) in cylindrical coordinates?
ρ = 5, φ = atan2(4, 3) ≈ 53.1301° and z = 5.
What is (ρ, φ, z) = (2, 60°, −1) in Cartesian coordinates?
x = 2 cos 60° = 1, y = 2 sin 60° ≈ 1.7321 and z = −1.