Rectangular to Polar Coordinates Logo
Rectangular to Polar Coordinates
Mathematics • August 24, 2026

Rectangular to Polar Formula: Derivations, Quadrant Rules & Solved Examples

Master the rectangular to polar formula r = √(x² + y²) and θ = atan2(y, x). Complete mathematical derivations, quadrant correction rules, and solved examples.

Rectangular to Polar Formula: Derivations, Quadrant Rules & Solved Examples

The rectangular to polar formula converts a two-dimensional Cartesian point (x,y)(x, y) into polar coordinates (r,θ)(r, \theta) using two fundamental equations: the radial distance formula r=x2+y2r = \sqrt{x^2 + y^2} and the polar angle formula θ=atan2(y,x)\theta = \text{atan2}(y, x) (or θ=arctan⁡(y/x)\theta = \arctan(y/x) with quadrant corrections). The radius rr represents Euclidean distance from the origin (r≥0r \ge 0), while the angle θ\theta represents the counterclockwise rotation from the positive x-axis.

Rectangular to Polar Formula - Derivation and Quadrant Rules Diagram Figure 1: Geometric breakdown and trigonometric derivation of the rectangular to polar formula.

Whether you are analyzing vectors in physics, designing navigation trajectories, or programming robotics, understanding how the rectangular to polar formula is derived and how to handle quadrant adjustments ensures 100% calculation accuracy. You can compute values instantly with our interactive rectangular to polar converter or explore bidirectional equations in our rectangular to polar and polar to rectangular guide.


The Two Core Rectangular to Polar Formulas

To transform any Cartesian coordinate pair (x,y)(x, y) into polar form (r,θ)(r, \theta), you apply two distinct mathematical equations:

1. Radial Distance (Magnitude) Formula

The radial magnitude rr measures the direct straight-line distance from the origin (0,0)(0, 0) to the point (x,y)(x, y). Derived from the Pythagorean theorem for a right-angled triangle with base xx and height yy:

r=x2+y2r = \sqrt{x^2 + y^2}

Key rule: In standard mathematical convention, r≥0r \ge 0.

2. Polar Angle (Direction) Formula

The angle θ\theta defines the directional bearing of the point measured counterclockwise from the positive horizontal x-axis:

θ=arctan⁡(yx)=tan⁡−1(yx)\theta = \arctan\left(\frac{y}{x}\right) = \tan^{-1}\left(\frac{y}{x}\right)

Because standard arctangent (arctan⁡\arctan) only produces angles between −90∘-90^\circ and +90∘+90^\circ (−π2-\frac{\pi}{2} to +π2+\frac{\pi}{2} radians), you must adjust θ\theta based on the Cartesian quadrant of (x,y)(x, y), or use the computer science two-argument function atan2(y,x)\text{atan2}(y, x).


Quadrant Adjustment Rules for the Angle Formula

When calculating the angle manually, apply the following quadrant rules to ensure θ\theta reflects the true vector position:

QuadrantCoordinate SignsFormula for θ\theta (Degrees: 0∘≤θ<360∘0^\circ \le \theta < 360^\circ)Formula for θ\theta (Radians: −π<θ≤π-\pi < \theta \le \pi)
Quadrant Ix>0,y>0x > 0, y > 0θ=arctan⁡(y/x)\theta = \arctan(y/x)θ=arctan⁡(y/x)\theta = \arctan(y/x)
Quadrant IIx<0,y>0x < 0, y > 0θ=arctan⁡(y/x)+180∘\theta = \arctan(y/x) + 180^\circθ=arctan⁡(y/x)+π\theta = \arctan(y/x) + \pi
Quadrant IIIx<0,y<0x < 0, y < 0θ=arctan⁡(y/x)+180∘\theta = \arctan(y/x) + 180^\circθ=arctan⁡(y/x)−π\theta = \arctan(y/x) - \pi
Quadrant IVx>0,y<0x > 0, y < 0θ=arctan⁡(y/x)+360∘\theta = \arctan(y/x) + 360^\circθ=arctan⁡(y/x)\theta = \arctan(y/x)

For an in-depth explanation of quadrant transitions and numerical implementations, read our detailed guide on understanding quadrants and atan2 in coordinate conversion.


Axis Boundaries and Special Edge Cases

When points lie directly along the coordinate axes (x=0x = 0 or y=0y = 0), dividing y/xy/x leads to division by zero. The rectangular to polar formula handles these edge cases as follows:

  • Positive X-axis (x>0,y=0)(x > 0, y = 0): r=xr = x, θ=0∘\theta = 0^\circ (0 rad0\text{ rad})
  • Positive Y-axis (x=0,y>0)(x = 0, y > 0): r=yr = y, θ=90∘\theta = 90^\circ (π2 rad\frac{\pi}{2}\text{ rad})
  • Negative X-axis (x<0,y=0)(x < 0, y = 0): r=∣x∣r = |x|, θ=180∘\theta = 180^\circ (π rad\pi\text{ rad})
  • Negative Y-axis (x=0,y<0)(x = 0, y < 0): r=∣y∣r = |y|, θ=270∘\theta = 270^\circ (−π2 rad-\frac{\pi}{2}\text{ rad} or 3π2 rad\frac{3\pi}{2}\text{ rad})
  • The Origin (0,0)(0, 0): r=0r = 0, θ\theta is mathematically undefined (conventionally set to 00).

Step-by-Step Solved Examples

Example 1: Standard First-Quadrant Point (3,4)(3, 4)

  1. Apply the radius formula: r=32+42=9+16=25=5r = \sqrt{3^2 + 4^2} = \sqrt{9 + 16} = \sqrt{25} = 5
  2. Apply the angle formula: θ=arctan⁡(43)≈53.1301∘(0.9273 rad)\theta = \arctan\left(\frac{4}{3}\right) \approx 53.1301^\circ \quad (0.9273\text{ rad})
  3. Polar form: (5,53.13∘)(5, 53.13^\circ)

Example 2: Second-Quadrant Point (−6,8)(-6, 8)

  1. Calculate radial distance: r=(−6)2+82=36+64=100=10r = \sqrt{(-6)^2 + 8^2} = \sqrt{36 + 64} = \sqrt{100} = 10
  2. Calculate raw arctangent: arctan⁡(8−6)=arctan⁡(−1.3333)≈−53.1301∘\arctan\left(\frac{8}{-6}\right) = \arctan(-1.3333) \approx -53.1301^\circ
  3. Apply Quadrant II correction (+180∘+ 180^\circ): θ=−53.1301∘+180∘=126.8699∘(2.2143 rad)\theta = -53.1301^\circ + 180^\circ = 126.8699^\circ \quad (2.2143\text{ rad})
  4. Polar form: (10,126.87∘)(10, 126.87^\circ)

Example 3: Third-Quadrant Point (−5,−5)(-5, -5)

  1. Calculate radial distance: r=(−5)2+(−5)2=25+25=50=52≈7.0711r = \sqrt{(-5)^2 + (-5)^2} = \sqrt{25 + 25} = \sqrt{50} = 5\sqrt{2} \approx 7.0711
  2. Calculate angle with Quadrant III correction: θ=arctan⁡(−5−5)+180∘=arctan⁡(1)+180∘=45∘+180∘=225∘\theta = \arctan\left(\frac{-5}{-5}\right) + 180^\circ = \arctan(1) + 180^\circ = 45^\circ + 180^\circ = 225^\circ
  3. Polar form: (7.0711,225∘)(7.0711, 225^\circ) or (7.0711,−135∘)(7.0711, -135^\circ)

Mathematical Derivation of the Formula

The rectangular to polar formula is rooted in Euclidean geometry:

        P (x, y) = P (r, θ)
       /|
      / |
   r /  | y
    /   |
   / θ  |
  O-----|
     x
  1. Construct a right triangle with vertices at the origin O(0,0)O(0,0), the horizontal projection (x,0)(x, 0), and point P(x,y)P(x, y).
  2. By the Pythagorean theorem, hypotenuse2=base2+height2  ⟹  r2=x2+y2  ⟹  r=x2+y2\text{hypotenuse}^2 = \text{base}^2 + \text{height}^2 \implies r^2 = x^2 + y^2 \implies r = \sqrt{x^2 + y^2}.
  3. By the trigonometric definition of tangent, tan⁡(θ)=oppositeadjacent=yx\tan(\theta) = \frac{\text{opposite}}{\text{adjacent}} = \frac{y}{x}.
  4. Taking the inverse tangent yields θ=arctan⁡(yx)\theta = \arctan\left(\frac{y}{x}\right).

To verify your manual calculations or test large coordinate arrays, you can use our interactive Rectangular to Polar Converter or study our comprehensive Step-by-Step Conversion Guide.


Frequently Asked Questions (FAQ)

What is the rectangular to polar formula?

The rectangular to polar formula transforms Cartesian coordinates (x,y)(x, y) into polar coordinates (r,θ)(r, \theta). The equations are r=x2+y2r = \sqrt{x^2 + y^2} for the radial distance and θ=atan2(y,x)\theta = \text{atan2}(y, x) for the polar angle.

Why can’t I just use arctan⁡(y/x)\arctan(y/x) for all angles?

Because the basic arctan⁡(y/x)\arctan(y/x) function has a range of (−90∘,+90∘)(-90^\circ, +90^\circ), it cannot differentiate between Quadrant I and Quadrant III (where y/x>0y/x > 0), or Quadrant II and Quadrant IV (where y/x<0y/x < 0). Quadrant adjustments or atan2(y, x) are necessary to produce the correct angle between 0∘0^\circ and 360∘360^\circ (−π-\pi to π\pi).

Can the radius rr in the rectangular to polar formula ever be negative?

In standard polar coordinate representations, the radial distance rr is always defined as non-negative (r≥0r \ge 0). While some advanced calculus contexts allow negative radii by flipping the angle by 180∘180^\circ ((−r,θ)≡(r,θ+180∘)(-r, \theta) \equiv (r, \theta + 180^\circ)), scientific calculators and computer algorithms output r≥0r \ge 0.

How does the rectangular to polar formula work on handheld calculators?

Scientific calculators provide a dedicated Pol( function (e.g., Pol(x, y) on Casio models). It computes rr and θ\theta automatically using internal atan2 logic. Learn the exact button steps in our guide on how to convert rectangular to polar in Casio calculators.

Can I use these formulas to convert whole equations?

Yes. Substitute x=rcos⁡θx = r\cos\theta, y=rsin⁡θy = r\sin\theta and x2+y2=r2x^2 + y^2 = r^2 into the equation and simplify. Our guide on how to convert a rectangular equation to polar form works through 16 examples, including circles, lines, and parabolas.