Cartesian to Polar Calculator - (x, y) to (r, theta) Solver
Use the cartesian to polar calculator to convert any (x, y) point into its polar form, returning the radius r, the angle theta in degrees and radians, and the quadrant label.
Cartesian to Polar Calculator
Results
What Is Cartesian to Polar Calculator?
A cartesian to polar calculator turns an (x, y) point on the rectangular coordinate plane into the same point written as (r, theta), where r is the distance from the origin and theta is the angle measured counterclockwise from the positive x-axis. It applies the two formulas r = sqrt(x^2 + y^2) and theta = atan2(y, x), so you can read both the radius and the angle in degrees and radians from any input, plus a quadrant label to confirm which side of the origin the point is on. Use it whenever a problem gives you Cartesian coordinates and expects a polar answer, or whenever you need a clean r and theta for a vector, a phasor, or a circular-motion diagram.
- • Convert a Cartesian point to polar form: A point written as (3, 4) becomes r = 5, theta = 53.13 degrees in a single step, the standard 3-4-5 right triangle in polar clothing.
- • Read the magnitude and direction of a 2D vector: Given the components of a force or velocity vector, the calculator returns the vector length r and the heading theta, ready to paste into a navigation or physics calculation.
- • Convert complex numbers to polar form: A complex number a + bi is just the Cartesian point (a, b); the calculator gives the magnitude sqrt(a^2 + b^2) and the argument atan2(b, a) in degrees and radians.
The cartesian coordinate plane labels every point with a horizontal x and a vertical y, while the polar system labels the same point with a distance from the origin and an angle from a reference direction. They describe the same plane, just with a different set of rulers, and the conversion is exact rather than approximate.
When all you need is the length of the same (x, y) pair without the angle, Vector Magnitude Calculator returns just the radius and skips the theta row.
How Cartesian to Polar Calculator Works
The calculator takes x and y, builds the radial distance r with the Pythagorean theorem, and recovers the angle with the two-argument arctangent atan2(y, x). It then multiplies the radian result by 180/pi to get the degree value, and picks a quadrant label from the signs of x and y. Every result is shown side by side so the polar answer can be read at a glance and pasted directly into a degree-based or radian-based formula.
- x: Horizontal Cartesian coordinate. Positive values are to the right of the y-axis, negative values to the left.
- y: Vertical Cartesian coordinate. Positive values are above the x-axis, negative values below.
- r (radius): Distance from the origin to (x, y). Always non-negative; computed as the Pythagorean length of x and y.
- theta (angle): Angle measured counterclockwise from the positive x-axis. In degrees the result lives in (-180°, 180°]; in radians it lives in (-pi, pi].
Math.atan2 is the standard two-argument inverse tangent built into JavaScript, Python, spreadsheets, and most scientific libraries. Its return value lives in the open interval (-pi, pi] (about -180° to 180°), and the four sign combinations of (x, y) place the angle in quadrant I, II, III, or IV, which is exactly the convention the calculator surfaces in the Quadrant row.
Point (3, 4) -> r = 5, theta = 53.13 degrees
x = 3, y = 4
r = sqrt(3^2 + 4^2) = sqrt(25) = 5; theta = atan2(4, 3) = 0.9273 rad = 53.13 degrees
r = 5, theta = 53.13 deg / 0.9273 rad (Quadrant I)
The classic 3-4-5 right triangle: legs of 3 and 4, hypotenuse of 5.
Point (-3, 4) -> r = 5, theta = 126.87 degrees
x = -3, y = 4
r = sqrt((-3)^2 + 4^2) = 5; theta = atan2(4, -3) = 2.2143 rad = 126.87 degrees
r = 5, theta = 126.87 deg / 2.2143 rad (Quadrant II)
Same radius as (3, 4), mirrored across the y-axis. Single-argument arctan would have given -53.13 degrees and the wrong quadrant.
According to Wolfram MathWorld, the polar coordinates of a Cartesian point (x, y) are (r, theta) where r = sqrt(x^2 + y^2) is the radial distance from the origin and theta = atan2(y, x) is the angle measured counterclockwise from the positive x-axis
According to Wikipedia (Polar coordinate system), the polar coordinate system represents a point by its distance r from a pole (the origin) and the angle theta from a polar axis (the positive x-axis), with the conversion to Cartesian given by x = r cos(theta) and y = r sin(theta)
The angle half of this conversion is exactly what Arcus Tangent Calculator does for a single tangent value, with the same atan2-based quadrant logic on its arctan2 tab.
Key Concepts Explained
Four ideas cover every cartesian-to-polar conversion you will run into, from a homework problem to a phasor diagram.
Radial distance r
r is the length of the line from the origin to the point. It is always non-negative, even when both x and y are negative, because it is a distance rather than a coordinate.
Polar angle theta
theta is the angle from the positive x-axis to the point, measured counterclockwise. It lives in the half-open interval (-180°, 180°] in degrees, or (-pi, pi] in radians.
Quadrant awareness
The signs of x and y choose the quadrant. The calculator labels each input with I, II, III, or IV, or with +x, -x, +y, -y on the axes, so you can confirm the result at a glance.
Degrees vs radians
The radius is a length, but the angle has to live in some unit. The calculator always returns theta in both degrees and radians, so the value can be pasted straight into a formula in either unit.
The radial distance and the angle are two halves of the same point. Knowing r and theta is enough to recover x = r cos(theta) and y = r sin(theta); knowing x and y is enough to recover r and theta through the formulas on this page.
Because r is just the hypotenuse of the right triangle formed by x and y, Right Triangle Calculator is the natural place to solve the matching legs and angles for the same input.
How to Use This Calculator
Five short steps take any (x, y) input to its polar (r, theta) answer, including the trickier cases on the axes and at the origin.
- 1 Enter x and y: Type the horizontal and vertical coordinates. Positive, negative, zero, and decimals all work; any real pair is accepted.
- 2 Read the radius: The top result is r, the distance from the origin to (x, y). It is always a non-negative number, regardless of the signs of x and y.
- 3 Read the angle in degrees: The second result is theta in degrees, the angle from the positive x-axis to the point, in the range (-180°, 180°].
- 4 Read the angle in radians: The third result is the same theta in radians, which is the unit every programming language and scientific library expects.
- 5 Check the quadrant label: The bottom result says I, II, III, IV, or the axis label (+x, -x, +y, -y), or 'Origin' when both inputs are zero. It is the fastest way to confirm the answer is on the side of the plane you expected.
An antenna sits 60 meters east and 25 meters north of the base station. Type x = 60 and y = 25 into the calculator. The radius reads 65.00 meters (the hypotenuse of the 60-25-? right triangle) and the angle reads 22.62 degrees, the bearing from the base station to the antenna measured counterclockwise from due east.
Benefits of Using This Calculator
The cartesian to polar calculator handles the four operations you would do by hand, plus the sign and axis cases that usually trip people up.
- • Both angle units in one step: Degrees and radians appear in the results panel at the same time, so there is no need to remember the 180/pi factor mid-calculation.
- • Quadrant label built in: The calculator returns a roman-numeral I, II, III, or IV, or an axis label, so you can confirm the side of the plane without drawing a coordinate diagram.
- • Atan2 used automatically: The two-argument arctangent picks the correct angle for every (x, y) input, including the four quadrants and the two axes where the single-argument arctan would silently return 0.
- • Domain error handled at the origin: When both x and y are zero, the calculator returns r = 0 and an explicit 'Undefined' angle instead of a silent NaN, so you can fix the input or treat the origin as a separate case.
- • Pairs with related coordinate tools: The same r and theta feed directly into the right triangle calculator for side solving, the complex number calculator for argument, and the angle converter for gradians or DMS.
If the (x, y) pair is the real and imaginary parts of a complex number, Complex Number Calculator converts the same input to polar form including the argument in degrees and radians.
Factors That Affect Your Results
Three things change the answer you should expect, plus two practical caveats about how the cartesian-to-polar conversion is usually defined.
Signs of x and y
The signs of the two inputs decide the quadrant. (3, 4) and (-3, 4) share the same r but theta jumps from 53.13 to 126.87 degrees, so sign handling is the main source of off-by-90 or off-by-180 mistakes.
Distance from the origin
r grows with the distance from the origin. Doubling both x and y doubles r; doubling only one of them multiplies r by sqrt(5) because of the Pythagorean formula.
Which angle unit the next step expects
The calculator returns both, but pasting the wrong one into a sin() or cos() call in code is the most common downstream mistake. Math libraries expect radians; protractors and most textbooks expect degrees.
- • The polar form of a non-origin point is not unique: (r, theta) and (r, theta + 360 degrees) describe the same point. The calculator reports the principal value in (-180°, 180°], so add or subtract full turns yourself if your problem expects a positive-only angle range.
- • The angle is rounded to 4 decimal places in degrees and 6 in radians. That is more than enough for engineering and academic work, but high-precision metrology may want to extend the displayed precision or use a dedicated tool.
When the radius r is exactly zero, the angle is mathematically undefined and the calculator says so in plain text. Treat the origin as a special case rather than zeroing out a denominator.
According to Wikipedia (Atan2), atan2(y, x) returns the angle whose tangent is y/x and whose sign follows the signs of y and x, with the result in the open interval (-pi, pi] so that every (x, y) pair maps to a unique theta
If you need the angle in gradians or DMS instead of the two units already shown, Radians to Degrees Calculator is the next step in the chain without redoing the cartesian-to-polar math.
Frequently Asked Questions
Q: What is the cartesian to polar conversion?
A: The cartesian to polar conversion rewrites a point written as (x, y) on the rectangular plane as (r, theta), where r is the distance from the origin and theta is the angle measured counterclockwise from the positive x-axis. The two conversion formulas are r = sqrt(x^2 + y^2) and theta = atan2(y, x).
Q: How do you convert (x, y) to polar (r, theta)?
A: Compute the radius r with the Pythagorean theorem, r = sqrt(x^2 + y^2). Then recover the angle with the two-argument arctangent, theta = atan2(y, x), which uses the signs of x and y to place the result in the correct quadrant. The angle is usually reported in degrees or radians.
Q: What is the formula for r and theta?
A: r is the radial distance: r = sqrt(x^2 + y^2). theta is the angle from the positive x-axis: theta_rad = atan2(y, x). To get the answer in degrees, multiply by 180/pi, so theta_deg = atan2(y, x) * 180/pi. The atan2 function is used instead of atan to handle all four quadrants.
Q: How do you convert cartesian to polar in degrees?
A: First compute theta in radians with atan2(y, x), then multiply by 180/pi. The cartesian to polar calculator does this in one step and shows the degree value directly in the results panel, alongside the same angle in radians for code or scientific work.
Q: What happens when both x and y are zero?
A: When x and y are both zero, the point is the origin. The radius r is 0, and the angle is undefined because atan2(0, 0) is indeterminate: every direction from the origin is equally valid. The calculator returns r = 0 and labels the angle as 'Undefined' so the edge case is visible.
Q: Is the cartesian to polar conversion unique?
A: For a non-origin point, the radius r is unique but the angle is unique only up to adding or subtracting full turns of 360 degrees (or 2 pi radians). The calculator reports the principal value in (-180°, 180°], which is the most common convention in math and engineering.