Rectangular to Polar Coordinates Logo
Rectangular to Polar Coordinates
Mathematics • July 23, 2026

How to Convert Rectangular to Polar Coordinates: Step-by-Step Guide & Formulas

Learn how to convert rectangular to polar coordinates with step-by-step formulas, quadrant rules (atan2), solved examples, and engineering applications.

How to Convert Rectangular to Polar Coordinates: Step-by-Step Guide & Formulas

Learn how to convert rectangular to polar coordinates (x,y)→(r,θ)(x, y) \to (r, \theta) with exact trigonometric formulas. While Cartesian coordinates specify a position using horizontal and vertical offsets from an origin, polar coordinates represent the same point using a straight-line radial distance (rr) and a directional angle (θ\theta).

Whether you are performing vector analysis for physics coursework or programming robotic movement, having a reliable conversion strategy ensures exact results. You can calculate values instantly on our interactive rectangular to polar coordinates converter or review common traps in our guide on common conversion mistakes.


Core Formulas to Convert Rectangular to Polar Coordinates

To transform any two-dimensional point (x,y)(x, y) into polar coordinates (r,θ)(r, \theta), you need two essential equations derived from the Pythagorean theorem and right-triangle trigonometry.

1. Radius (Magnitude) Formula

The radial distance rr represents the straight-line Euclidean distance from the origin (0,0)(0,0) to the point (x,y)(x, y):

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

Note: In standard polar coordinates, the radial distance rr is non-negative (r≥0r \ge 0).

2. Angle (Polar Direction) Formula

The polar angle θ\theta measures the counterclockwise angle relative to the positive x-axis. Using basic trigonometry, tan⁡(θ)=yx\tan(\theta) = \frac{y}{x}, which leads to:

θ=arctan⁡(yx)\theta = \arctan\left(\frac{y}{x}\right)

However, standard arctangent (arctan⁡\arctan) only returns values between −90∘-90^\circ and +90∘+90^\circ (−π2-\frac{\pi}{2} to +π2+\frac{\pi}{2} radians). To determine the correct polar angle across all four Cartesian quadrants, modern computational systems use the two-argument arctangent function, atan2(y,x)\text{atan2}(y, x). Learn more in our article on understanding quadrants and atan2 in coordinate conversion.


Determining Angles Across Quadrants using atan2(y, x)

When working with manual math calculations, you must adjust the angle based on the sign of xx and yy:

QuadrantCoordinate SignsFormula for θ\theta (Degrees)Formula for θ\theta (Radians)
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 (or −180∘- 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 (or negative angle)θ=arctan⁡(y/x)\theta = \arctan(y/x)

For programmatic implementations, programming languages (Python, C++, JavaScript, MATLAB) provide built-in atan2(y, x) functions that execute these conditional branches in machine code, guaranteeing branch-accurate results.


Step-by-Step Solved Examples

Example 1: Quadrant I Point (3,4)(3, 4)

  1. Calculate Radial Distance rr: r=32+42=9+16=25=5r = \sqrt{3^2 + 4^2} = \sqrt{9 + 16} = \sqrt{25} = 5
  2. Calculate Angle θ\theta: θ=arctan⁡(43)≈53.13∘(0.9273 rad)\theta = \arctan\left(\frac{4}{3}\right) \approx 53.13^\circ \quad (0.9273 \text{ rad})
  3. Polar Coordinate: (5,53.13∘)(5, 53.13^\circ)

Example 2: Quadrant II Point (−5,12)(-5, 12)

  1. Calculate Radial Distance rr: r=(−5)2+122=25+144=169=13r = \sqrt{(-5)^2 + 12^2} = \sqrt{25 + 144} = \sqrt{169} = 13
  2. Calculate Angle θ\theta: θ=arctan⁡(12−5)+180∘=−67.38∘+180∘=112.62∘\theta = \arctan\left(\frac{12}{-5}\right) + 180^\circ = -67.38^\circ + 180^\circ = 112.62^\circ
  3. Polar Coordinate: (13,112.62∘)(13, 112.62^\circ)

Example 3: Quadrant III Point (−3,−4)(-3, -4)

  1. Calculate Radial Distance rr: r=(−3)2+(−4)2=9+16=5r = \sqrt{(-3)^2 + (-4)^2} = \sqrt{9 + 16} = 5
  2. Calculate Angle θ\theta: θ=arctan⁡(−4−3)−180∘=53.13∘−180∘=−126.87∘(or 233.13∘)\theta = \arctan\left(\frac{-4}{-3}\right) - 180^\circ = 53.13^\circ - 180^\circ = -126.87^\circ \quad (\text{or } 233.13^\circ)
  3. Polar Coordinate: (5,233.13∘)(5, 233.13^\circ)

Real-World Applications of Polar Coordinates

  1. Navigation and Aviation: Aircraft bearings rely on heading angle and distance rather than grid offsets.
  2. Robotics and Kinematics: Robotic arms rotate around joints using polar angles (θ1,θ2)(\theta_1, \theta_2) to reach Cartesian target points.
  3. Acoustics and Signal Processing: Microphone polar patterns measure directional audio sensitivity.
  4. CAD & Computer Graphics: Rotational geometry and radial arrays compute vertex locations using (rcos⁡θ,rsin⁡θ)(r\cos\theta, r\sin\theta).

Frequently Asked Questions

What happens if x=0x = 0?

If x=0x = 0 and y>0y > 0, θ=90∘\theta = 90^\circ (π2\frac{\pi}{2} rad). If x=0x = 0 and y<0y < 0, θ=270∘\theta = 270^\circ (−π2-\frac{\pi}{2} rad). If both x=0x = 0 and y=0y = 0, r=0r = 0 and θ\theta is mathematically undefined.

Can polar radius rr be negative?

In strict geometric terms, distance rr is positive (r≥0r \ge 0). However, in polar graphing, a negative radius (−r,θ)(-r, \theta) signifies moving in the opposite direction, equivalent to (r,θ+180∘)(r, \theta + 180^\circ).

Why is atan2(y, x) preferred over atan(y/x)?

Standard atan(y/x) cannot distinguish between (−x,−y)(-x, -y) and (x,y)(x, y) because the negative signs cancel out. atan2(y, x) inspects the signs of both parameters individually to return the exact quadrant angle.


• Rectangular to Polar Converter – Convert 2D Cartesian coordinates to polar online.

• Understanding Quadrants and atan2 – Deep-dive into quadrant-aware arctangent.

• Polar to Rectangular Coordinates – Learn inverse conversions from polar back to Cartesian.

• Rectangular to Polar Formulas & Identities – Mathematical derivations and trigonometry proofs.

• Casio Calculator Keystroke Guide – Quick button guide for Casio scientific calculators.