Rectangular to Polar Coordinates Calculator

Rectangular to Polar Coordinates Calculator

Growing AI Skill PRO

Enter Calculation

Formula

(r,θ)=(X2+Y2,atan2(Y,X))\left(r,\ \theta\right) = \left(\sqrt{\text{X}^{2} + \text{Y}^{2}},\ \ \operatorname{atan2}\!\left(\text{Y},\ \text{X}\right)\right)
Usage stats

Advertisement

Results

Polar Coordinates (r, θ)
5, 53.1301°
r = magnitude, θ = angle
Radius (r) 5
Angle θ (degrees) 53.130102°
Angle θ (radians) 0.927295

Report an error on this page

What Is Rectangular to Polar Conversion?

Every point in a plane can be described two ways. In the rectangular (Cartesian) system a point is given by horizontal and vertical distances, written as (x, y). In the polar system the same point is given by its distance from the origin, \(r\), and the angle \(\theta\) it makes with the positive x-axis. This calculator converts a rectangular pair (x, y) into its polar equivalent \((r, \theta)\), reporting \(\theta\) in both degrees and radians.

Point shown with rectangular and polar coordinates on a plane
A point P described by rectangular (x, y) and polar (r, θ) coordinates.

How to Use the Calculator

Enter the x-coordinate and the y-coordinate of your point. Click calculate and the tool returns the radius \(r\) and the angle \(\theta\). Negative values are fully supported, and the angle is computed with the atan2 function so the result lands in the correct quadrant (between −180° and 180°).

The Formula Explained

The radius comes straight from the Pythagorean theorem, since x and y are the legs of a right triangle and \(r\) is the hypotenuse:

$$r = \sqrt{x^{2} + y^{2}}$$

The angle uses the two-argument arctangent, $$\theta = \operatorname{atan2}(y,\ x).$$ Unlike a plain \(\arctan(y/x)\), atan2 inspects the signs of both x and y, so it correctly distinguishes, for example, the second quadrant from the fourth. Convert radians to degrees by multiplying by \(180/\pi\).

Advertisement
Right triangle showing relationship between x, y, r and angle theta
The conversion forms a right triangle: r is the hypotenuse and θ the angle at the origin.

Worked Example

Take the point (3, 4). The radius is $$\sqrt{3^{2} + 4^{2}} = \sqrt{9 + 16} = \sqrt{25} = 5.$$ The angle is $$\operatorname{atan2}(4,\ 3) \approx 0.9273 \text{ radians},$$ which is about 53.13°. So (3, 4) in polar form is approximately (5, 53.13°).

Advertisement

Quadrant Adjustment Rules for θ

The plain arctangent \(\arctan(y/x)\) only returns values between −90° and 90°, so it cannot tell opposite quadrants apart. For example, (3, 4) and (−3, −4) give the same ratio \(y/x\). The two-argument function \(\operatorname{atan2}(y, x)\) applies the correction automatically. The table shows the rule by quadrant or axis, using the principal range (−180°, 180°] and the equivalent 0°–360° range. In every case \(r = \sqrt{x^2 + y^2}\).

Location Condition θ in (−180°, 180°] θ in [0°, 360°)
Quadrant I x > 0, y > 0 \(\arctan(y/x)\) \(\arctan(y/x)\)
Quadrant II x < 0, y > 0 \(\arctan(y/x) + 180^\circ\) \(\arctan(y/x) + 180^\circ\)
Quadrant III x < 0, y < 0 \(\arctan(y/x) - 180^\circ\) \(\arctan(y/x) + 180^\circ\)
Quadrant IV x > 0, y < 0 \(\arctan(y/x)\) \(\arctan(y/x) + 360^\circ\)
Positive x-axis x > 0, y = 0 0° 0°
Positive y-axis x = 0, y > 0 90° 90°
Negative x-axis x < 0, y = 0 180° 180°
Negative y-axis x = 0, y < 0 −90° 270°
Origin x = 0, y = 0 Undefined (r = 0) Undefined (r = 0)

To convert radians, multiply degrees by \(\pi/180\). For instance, 90° = \(\pi/2\) rad and 180° = \(\pi\) rad. To shift a negative angle into the 0°–360° range, add 360° (2π rad).

FAQ

Why use atan2 instead of arctan? Plain \(\arctan(y/x)\) loses quadrant information and divides by zero when \(x = 0\). atan2 handles all four quadrants and the axes correctly.

What is the range of the angle? This tool reports \(\theta\) in (−180°, 180°]. To get a 0–360° value, add 360° to any negative result.

What if both x and y are zero? The radius is 0 and the angle is undefined; the calculator returns 0° by convention.

Last updated:

Most popular in Math and Statistics

View all Math and Statistics calculators