Polar Coordinates Calculator: Cartesian, Polar, Cylindrical and Spherical
By FindMySum · Last reviewed
This polar coordinates calculator converts a point between Cartesian (x, y) and polar (r, θ) coordinates, shows every step, and draws the point on the plane. For three dimensions it converts between Cartesian (x, y, z), cylindrical and spherical coordinates, with a switch for the two ways the spherical angles are named. Angles can be in degrees or radians.
Worked example: the point (3, 4)
The calculator opens with x = 3 and y = 4.
- Radius. r = √(x² + y²) = √(9 + 16) = √25 = 5. This is the distance from the origin, from Pythagoras.
- Angle. θ = atan2(4, 3) ≈ 53.130°, measured counter-clockwise from the positive x-axis. Both coordinates are positive, so the point is in quadrant I and the angle is between 0° and 90°.
- Result. (3, 4) in Cartesian coordinates is (5, 53.13°) in polar coordinates, or (5, 0.9273 rad).
Going back, x = 5 cos 53.13° = 3 and y = 5 sin 53.13° = 4. Switch the mode to "Polar → Cartesian" and the calculator starts from exactly these numbers.
Why the angle needs atan2
The tempting formula θ = arctan(y ÷ x) gives the right answer only in quadrants I and IV. The points (1, 1) and (−1, −1) have the same ratio y ÷ x = 1, so arctan returns 45° for both, although the second point is on the opposite side of the origin, at 225°. It also fails on the y-axis, where x = 0 and the ratio is undefined.
The two-argument arctangent atan2(y, x), available in every programming language and spreadsheet, fixes both problems. It looks at the signs of x and y and returns an angle between −180° and 180°. Textbooks reach the same answer with a rule: add 180° to arctan(y ÷ x) when x is negative. The calculator reports the atan2 angle and the same direction measured from 0° to 360°, since courses differ on which range they want.
| Point | Quadrant | atan2 | 0° to 360° |
|---|---|---|---|
| (3, 4) | I | 53.13° | 53.13° |
| (−1, 1) | II | 135° | 135° |
| (−2, −2√3) | III | −120° | 240° |
| (0, −5) | negative y-axis | −90° | 270° |
Cylindrical coordinates
Cylindrical coordinates add height to polar coordinates: a point is (r, θ, z), where r and θ locate its shadow on the xy-plane and z is how far above or below that plane it sits. Converting is the polar conversion plus copying z. The point (1, −3, 5) has r = √10 ≈ 3.162, θ = atan2(−3, 1) ≈ −71.57° (or 288.43°) and z = 5. Equations with an axis of symmetry become simple: the cylinder x² + y² = 4 is just r = 2, which is where the name comes from. Physics texts following ISO 80000-2 write cylindrical coordinates as (ρ, φ, z); the meaning is the same.
Spherical coordinates and the θ/φ confusion
Spherical coordinates describe a point by its distance from the origin and two angles. The polar angle is measured down from the positive z-axis, from 0° at the top to 180° at the bottom. The azimuth is the same angle as in polar coordinates, measured around the z-axis from +x.
The formulas are distance = √(x² + y² + z²), polar angle = arccos(z ÷ distance) and azimuth = atan2(y, x), and back again x = distance × sin(polar) × cos(azimuth), y = distance × sin(polar) × sin(azimuth), z = distance × cos(polar).
The difficulty is the names. Physicists and the international standard ISO 80000-2 write (r, θ, φ) and call the polar angle θ and the azimuth φ. Most calculus textbooks, including OpenStax Calculus, write (ρ, θ, φ) and do the opposite: θ is the azimuth, the same θ as in polar coordinates, and φ is the polar angle. A homework answer can be marked wrong simply because the two angles are swapped. The calculator therefore asks which convention you use and labels every result with the matching letters. For (1, 1, 1) it gives a distance of √3 ≈ 1.732, a polar angle of about 54.74° and an azimuth of 45° in either convention; only which one is called θ changes.
Degrees or radians
Both work as long as you are consistent. Calculus uses radians, because derivatives and integrals of sine and cosine come out cleanly only in radians, so textbooks give answers such as (5, 0.9273) or (8, π/3, π/6). Engineering and navigation tend to use degrees. The calculator converts the angles you type and shows its answers in the unit you choose; radians appear as decimals, so π/3 shows as 1.047198.
Accuracy
The conversions use trigonometric functions, so results are floating-point numbers rounded to 12 significant figures. Exact values such as √3 or π/6 appear as decimals; values that should be zero, such as cos 90°, are cleaned to 0 rather than shown as 6 × 10⁻¹⁷. At the origin the angle is undefined, and the calculator shows 0, as atan2(0, 0) does.
More questions
Are polar coordinates unique?
No. Adding any whole number of turns to the angle gives the same point, so (5, 53.13°) and (5, 413.13°) coincide. Some textbooks also allow a negative radius, which points the opposite way: (−5, 233.13°) is the same point again. To get one answer, calculators restrict r to zero or more and the angle to one turn.
How are polar coordinates related to complex numbers?
A complex number x + yi plotted on the plane has the same polar form: its modulus is r and its argument is θ. 3 + 4i has modulus 5 and argument 53.13°, so it equals 5(cos 53.13° + i sin 53.13°), or 5e^(0.9273i) with the angle in radians. The complex number calculator works in that form.
Where are spherical coordinates used?
Anywhere a problem has a centre point: the gravitational or electric field of a charge, the shape of atomic orbitals, antenna radiation patterns, the sky in astronomy (altitude and azimuth), and positions on Earth (latitude, longitude and height). Integrals over balls and spheres are much simpler in spherical coordinates.
How do I convert latitude and longitude to spherical coordinates?
Longitude is the azimuth, measured east from the prime meridian. Latitude is measured up from the equator, so the polar angle from the North Pole is 90° minus the latitude. Toronto at 43.65° N, 79.38° W has a polar angle of 46.35° and an azimuth of −79.38°. Real geodesy uses an ellipsoid rather than a sphere, which shifts positions by up to about 21 km.
What is the area element in polar coordinates?
dA = r dr dθ. A small patch of the plane between r and r + dr and between θ and θ + dθ is nearly a rectangle with sides dr and r dθ. In cylindrical coordinates the volume element is r dr dθ dz, and in spherical coordinates it is ρ² sin φ dρ dθ dφ in the maths convention.
Sources
This article explains how the calculator works and is general information, not financial, tax, legal or medical advice. Rules change; check the sources above or a qualified professional before you act.