Rectangular to Polar Coordinates Logo
Rectangular to Polar Coordinates
Mathematics • November 10, 2026 • By Shahab Dev

Polar to Rectangular Converter: Convert Polar Coordinates to Rectangular Coordinates

Convert polar to rectangular coordinates with our free converter. Enter r and theta to get x and y instantly, with worked examples in every quadrant.

Polar to Rectangular Converter: Convert Polar Coordinates to Rectangular Coordinates

Use this page to convert polar coordinates to rectangular coordinates. Enter the radius rr and the angle θ\theta in our rectangular to polar coordinates converter and it returns xx and yy at once. The worked examples below show the same calculation by hand, so you can check any answer the tool gives you.

Short answer: to convert polar to rectangular, use x=rcos⁡(θ)x = r \cos(\theta) and y=rsin⁡(θ)y = r \sin(\theta). For example, r=12r = 12 and θ=45∘\theta = 45^\circ gives x=8.49x = 8.49 and y=8.49y = 8.49, so the point is (8.49,8.49)(8.49, 8.49).

The full formulas, proofs, and engineering examples live in our polar to rectangular formulas guide, and the reverse direction is covered in our rectangular to polar and polar to rectangular guide. This page is the tool page: the fastest way to get an answer, with enough worked numbers to trust it.

How to Use the Polar to Rectangular Converter

  1. Enter the radius rr, the distance from the origin to the point.
  2. Enter the angle θ\theta, measured counterclockwise from the positive x axis.
  3. Read xx and yy. The converter applies x=rcos⁡(θ)x = r \cos(\theta) and y=rsin⁡(θ)y = r \sin(\theta) for you.

That is the whole job. There is no quadrant correction to worry about in this direction, because cosine and sine already carry the correct sign for any angle. If you are going the other way, from (x,y)(x, y) back to (r,θ)(r, \theta), the angle needs care, and our quadrants and atan2 guide explains why plain arctan gives the wrong angle when xx is negative.

The Conversion Formulas

x=rcos⁡(θ)x = r \cos(\theta)

y=rsin⁡(θ)y = r \sin(\theta)

Here rr is the polar radius, always a distance from the origin, and θ\theta is the polar angle. The formulas come from a right triangle with hypotenuse rr: the side next to θ\theta is xx and the side opposite θ\theta is yy.

In code, the same two lines do the work. Note that JavaScript trig functions expect radians, so degrees must be converted first:

const r = 12;
const thetaDeg = 45;
const theta = thetaDeg * Math.PI / 180;
const x = r * Math.cos(theta); // 8.4853
const y = r * Math.sin(theta); // 8.4853

Worked Example: Quadrant I

Convert r=12r = 12, θ=45∘\theta = 45^\circ to rectangular form.

  • cos⁡45∘=0.7071\cos 45^\circ = 0.7071 and sin⁡45∘=0.7071\sin 45^\circ = 0.7071
  • x=12×0.7071=8.4853x = 12 \times 0.7071 = 8.4853
  • y=12×0.7071=8.4853y = 12 \times 0.7071 = 8.4853

Result: (8.49,8.49)(8.49, 8.49). Both coordinates are positive, as they must be in Quadrant I.

Worked Example: Quadrant II

Convert r=9r = 9, θ=120∘\theta = 120^\circ to rectangular form.

  • cos⁡120∘=−0.5000\cos 120^\circ = -0.5000 and sin⁡120∘=0.8660\sin 120^\circ = 0.8660
  • x=9×(−0.5000)=−4.5000x = 9 \times (-0.5000) = -4.5000
  • y=9×0.8660=7.7942y = 9 \times 0.8660 = 7.7942

Result: (−4.50,7.79)(-4.50, 7.79). The xx coordinate is negative and the yy coordinate is positive, which is exactly the sign pattern of Quadrant II. This is the step where a calculator in the wrong mode, or a swapped sine and cosine, would silently give the wrong point.

Worked Example: Quadrant IV

Convert r=20r = 20, θ=300∘\theta = 300^\circ to rectangular form.

  • cos⁡300∘=0.5000\cos 300^\circ = 0.5000 and sin⁡300∘=−0.8660\sin 300^\circ = -0.8660
  • x=20×0.5000=10.0000x = 20 \times 0.5000 = 10.0000
  • y=20×(−0.8660)=−17.3205y = 20 \times (-0.8660) = -17.3205

Result: (10.00,−17.32)(10.00, -17.32). Check the distance back: 102+(−17.32)2=100+300=400=20\sqrt{10^2 + (-17.32)^2} = \sqrt{100 + 300} = \sqrt{400} = 20, which matches the original radius.

Worked Example: Angle on an Axis

Convert r=4r = 4, θ=90∘\theta = 90^\circ to rectangular form.

  • cos⁡90∘=0\cos 90^\circ = 0 and sin⁡90∘=1\sin 90^\circ = 1
  • x=4×0=0x = 4 \times 0 = 0
  • y=4×1=4y = 4 \times 1 = 4

Result: (0,4)(0, 4). The point sits on the positive y axis, so xx is zero and yy equals the radius.

Worked Example: Radians and a Round Trip Check

Convert r=6r = 6, θ=2π3\theta = \frac{2\pi}{3} radians to rectangular form. First turn the angle into degrees: 2π3=120∘\frac{2\pi}{3} = 120^\circ.

  • cos⁡120∘=−0.5000\cos 120^\circ = -0.5000 and sin⁡120∘=0.8660\sin 120^\circ = 0.8660
  • x=6×(−0.5000)=−3.0000x = 6 \times (-0.5000) = -3.0000
  • y=6×0.8660=5.1962y = 6 \times 0.8660 = 5.1962

Result: (−3.00,5.20)(-3.00, 5.20). Now check the round trip. Feed (−3,5.1962)(-3, 5.1962) into the reverse conversion: r=(−3)2+5.19622=9+27=36=6r = \sqrt{(-3)^2 + 5.1962^2} = \sqrt{9 + 27} = \sqrt{36} = 6, and θ=atan2(5.1962,−3)=120∘\theta = \text{atan2}(5.1962, -3) = 120^\circ. The point returns exactly to where it started.

One more round trip, using a point from our quadrants guide: r=5r = 5, θ=143.13∘\theta = 143.13^\circ gives x=5×(−0.8000)=−4.00x = 5 \times (-0.8000) = -4.00 and y=5×0.6000=3.00y = 5 \times 0.6000 = 3.00, so the point is (−4,3)(-4, 3). That matches the Quadrant II example in the quadrants and atan2 guide, where (−4,3)(-4, 3) converts forward to (5,143.13∘)(5, 143.13^\circ). Plain arctan would have said −36.87∘-36.87^\circ for that point, which is 180 degrees off, so the atan2 check is what keeps the round trip honest.

Degrees or Radians: Get the Mode Right

The single most common error in polar to rectangular conversion is a mode mismatch. Most calculators and all programming languages expect radians, while most textbook problems give degrees.

  • Degrees to radians: θradians=θdegrees×π180\theta_{\text{radians}} = \theta_{\text{degrees}} \times \frac{\pi}{180}
  • Radians to degrees: θdegrees=θradians×180π\theta_{\text{degrees}} = \theta_{\text{radians}} \times \frac{180}{\pi}

So 45∘45^\circ is π4\frac{\pi}{4} radians, 120∘120^\circ is 2π3\frac{2\pi}{3} radians, and 300∘300^\circ is 5π3\frac{5\pi}{3} radians. If your answer looks wrong by a large amount, check the mode before anything else. The same warning applies in spreadsheets: our rectangular to polar in Excel guide shows the RADIANS step, and our rectangular to polar in Desmos guide shows how to plot the converted point.

What If r Is Negative?

A negative radius is allowed in polar coordinates. It means: go the distance ∣r∣|r| in the direction opposite to θ\theta, which is the same as adding 180∘180^\circ to the angle. For example, r=−5r = -5, θ=30∘\theta = 30^\circ gives x=−5×0.8660=−4.33x = -5 \times 0.8660 = -4.33 and y=−5×0.5000=−2.50y = -5 \times 0.5000 = -2.50, so the point is (−4.33,−2.50)(-4.33, -2.50). That is the same point as r=5r = 5, θ=210∘\theta = 210^\circ. If your problem never uses negative radii, you can ignore this case entirely.

Frequently Asked Questions

What is the formula to convert polar to rectangular?

Use x=rcos⁡(θ)x = r \cos(\theta) and y=rsin⁡(θ)y = r \sin(\theta), where rr is the distance from the origin and θ\theta is the angle from the positive x axis. Put your values in, and the two equations give the rectangular point (x,y)(x, y) directly.

How do I convert polar to rectangular with an example?

Take r=7r = 7 and θ=30∘\theta = 30^\circ. Then x=7×cos⁡30∘=7×0.8660=6.06x = 7 \times \cos 30^\circ = 7 \times 0.8660 = 6.06 and y=7×sin⁡30∘=7×0.5000=3.50y = 7 \times \sin 30^\circ = 7 \times 0.5000 = 3.50, so the point is (6.06,3.50)(6.06, 3.50). The worked examples above show the same steps for Quadrant II, Quadrant IV, an axis angle, and a radian angle.

How do I convert polar to rectangular on a calculator?

Make sure the calculator is in degree mode if your angle is in degrees, or radian mode if it is in radians. Then compute r×cos⁡(θ)r \times \cos(\theta) for xx and r×sin⁡(θ)r \times \sin(\theta) for yy. Many scientific calculators also have a Rec function that does both at once. Our Casio calculator guide covers the keystrokes.

Can the angle be larger than 360 degrees?

Yes. Polar angles repeat every 360∘360^\circ, so θ=480∘\theta = 480^\circ behaves exactly like θ=120∘\theta = 120^\circ, and gives the same (x,y)(x, y). If you prefer, subtract 360∘360^\circ until the angle sits between 0∘0^\circ and 360∘360^\circ before converting.

What is polar to rectangular when theta is 180 degrees?

With θ=180∘\theta = 180^\circ, cos⁡180∘=−1\cos 180^\circ = -1 and sin⁡180∘=0\sin 180^\circ = 0, so x=−rx = -r and y=0y = 0. For example, r=10r = 10, θ=180∘\theta = 180^\circ gives (−10,0)(-10, 0), a point on the negative x axis.

How do I convert rectangular back to polar?

Use r=x2+y2r = \sqrt{x^2 + y^2} and θ=atan2(y,x)\theta = \text{atan2}(y, x). The atan2 function matters because plain arctan cannot tell Quadrants II and III apart. Follow the step by step conversion guide for the full reverse method with worked numbers.

• Rectangular to Polar Converter: Convert coordinates in both directions with steps.

• Polar to Rectangular Formulas: Proofs, derivations, and solved engineering examples.

• Rectangular to Polar and Polar to Rectangular: Two way conversion guide with round trip verification.

• Understanding Quadrants and atan2: Why plain arctan fails and how atan2 fixes the angle.

• Step by Step Conversion Guide: The reverse direction, rectangular to polar, worked step by step.

• Rectangular to Polar in Excel: Spreadsheet formulas for batch conversions.

• Rectangular to Polar in Desmos: Graph and convert coordinates in Desmos.