Polar to Rectangular Coordinates Calculator
Enter a radius and an angle to convert polar coordinates (r, theta) into rectangular Cartesian coordinates (x, y). Switch the direction to go the other way: enter x and y to recover r and theta. Choose degrees or radians - results update as you type, and the Show Your Work panel walks through every arithmetic step.
Polar and rectangular coordinate systems
A point in the plane can be described in two standard ways. In the rectangular (Cartesian) system, the point is located by its signed distances along two perpendicular axes: x runs horizontally and y runs vertically. In the polar system, the same point is described by its radial distance r from the origin and the angle theta it makes with the positive x-axis, measured counter-clockwise. Both descriptions are complete and exact - they just put different information first. Physics and engineering often favour polar coordinates for problems with rotational symmetry (circular motion, antenna patterns, AC circuits), while rectangular coordinates dominate linear algebra, computer graphics, and most school mathematics.
How the conversion formulas work
The connection between the two systems comes directly from the unit-circle definitions of sine and cosine. If you draw the right triangle from the origin to the point, the hypotenuse is r, the horizontal leg is x, and the vertical leg is y. Basic trigonometry then gives: x = r cos(theta) and y = r sin(theta). Going the other way, the Pythagorean theorem gives r = sqrt(x^2 + y^2), and the angle is recovered with the two-argument arctangent: theta = atan2(y, x). Using atan2 rather than a plain arctan is important because atan2 preserves the correct quadrant for all four quadrant combinations, while arctan(y/x) is ambiguous between Quadrant I and Quadrant III (and between II and IV). The result from atan2 lies in the range (-pi, pi] in radians, or (-180, 180] in degrees. Adding 2*pi (or 360 deg) to any negative result gives the equivalent angle in the range [0, 2*pi).
Negative radius and principal angles
Unlike Cartesian x and y, the radial coordinate r can be negative. A negative r means the point is in the opposite direction: (r, theta) and (-r, theta + pi) represent the same physical location. Most textbooks define r as non-negative and restrict theta to [0, 2*pi), but some contexts - particularly complex numbers written in polar form - allow r < 0. When converting to rectangular coordinates a negative r causes no problem: the cosine and sine formulas handle it automatically. Going from rectangular back to polar, r = sqrt(x^2 + y^2) is always non-negative, and theta = atan2(y, x) gives the principal angle. If you need theta expressed in [0, 360 deg), add 360 to any negative result from atan2.
Practical applications
Polar-to-rectangular conversion comes up in many applied settings. In electrical engineering, phasors in AC circuit analysis are written in polar form (magnitude and phase angle) and must be converted to rectangular form (real and imaginary parts) before addition or subtraction. In robotics and navigation, sensor readings often arrive as a range r and bearing theta, which must be converted to x-y displacements for path planning. Radar and sonar echo plots are naturally polar; converting to rectangular lets them be overlaid on a standard map grid. In computer graphics, polar parametric curves (rose curves, spirals, limacons) are sampled by sweeping theta and converting each (r, theta) to screen pixel (x, y). Scientific notation in complex number arithmetic is essentially polar form, and every complex multiplication is a polar computation.
Common polar angle conversions
| Angle (deg) | Angle (rad) | cos(theta) = x | sin(theta) = y |
|---|---|---|---|
| 0 | 0 | 1 | 0 |
| 30 | pi/6 | 0.8660 | 0.5000 |
| 45 | pi/4 | 0.7071 | 0.7071 |
| 60 | pi/3 | 0.5000 | 0.8660 |
| 90 | pi/2 | 0 | 1 |
| 120 | 2pi/3 | -0.5000 | 0.8660 |
| 135 | 3pi/4 | -0.7071 | 0.7071 |
| 150 | 5pi/6 | -0.8660 | 0.5000 |
| 180 | pi | -1 | 0 |
| 210 | 7pi/6 | -0.8660 | -0.5000 |
| 225 | 5pi/4 | -0.7071 | -0.7071 |
| 270 | 3pi/2 | 0 | -1 |
| 315 | 7pi/4 | 0.7071 | -0.7071 |
| 360 | 2pi | 1 | 0 |
Key angles with their exact and decimal x, y values for r = 1.
Frequently asked questions
What is the formula to convert polar to rectangular coordinates?
The two formulas are x = r * cos(theta) and y = r * sin(theta), where r is the radial distance from the origin and theta is the angle measured counter-clockwise from the positive x-axis. Make sure theta is in radians before evaluating the trig functions (multiply degrees by pi/180 first).
How do I convert rectangular coordinates to polar coordinates?
Use r = sqrt(x^2 + y^2) for the radius. For the angle use theta = atan2(y, x) - not arctan(y/x) - because atan2 accounts for the correct quadrant. The result is in the range (-pi, pi] in radians. Switch the calculator direction to "Rectangular to Polar" and it performs both steps automatically.
Should I use degrees or radians?
Pure mathematics and most programming languages work with radians internally. Degrees are more intuitive for angles you have memorised (30, 45, 60, 90 deg). This calculator accepts either: select the unit before entering theta. The standard library trig functions used in the computation always work in radians, so degrees are converted internally.
What does a negative r mean?
A negative radius means the point is plotted in the direction opposite to theta. For example, (-3, 45 deg) is the same point as (3, 225 deg). The x = r cos(theta) and y = r sin(theta) formulas handle a negative r correctly without any special treatment.
Why does atan2 give a negative angle sometimes?
The atan2(y, x) function returns a value in the range (-pi, pi] in radians, which corresponds to (-180, 180] in degrees. Angles in Quadrant III and IV (negative y) come out negative. To convert to the [0, 360 deg) convention, add 360 to any negative result. This calculator shows both forms in the output.
Can a single point have more than one set of polar coordinates?
Yes. Adding any integer multiple of 360 deg (or 2*pi rad) to theta gives the same point. Also, using -r and theta + 180 deg gives the same point. Rectangular coordinates, by contrast, are unique: every point has exactly one (x, y) pair.