Rectangular to Polar Coordinates Logo
Rectangular to Polar Coordinates
Mathematics • October 1, 2026

How to Convert a Rectangular Equation to Polar Form (and Back) with 16 Worked Examples

Convert rectangular equations to polar form and polar equations to rectangular form. Three substitution rules, step-by-step examples for circles, lines, parabolas and hyperbolas, plus common mistakes.

How to Convert a Rectangular Equation to Polar Form (and Back) with 16 Worked Examples

Quick answer: To convert a rectangular equation to polar, replace every xx with rcos⁡θr\cos\theta, every yy with rsin⁡θr\sin\theta, and every x2+y2x^2 + y^2 with r2r^2, then solve for rr. To convert a polar equation to rectangular, multiply or rearrange until you can replace rcos⁡θr\cos\theta with xx, rsin⁡θr\sin\theta with yy, and r2r^2 with x2+y2x^2 + y^2.

Example: x2+y2=36x^2 + y^2 = 36 becomes r2=36r^2 = 36, so the polar equation is r=6r = 6.

Converting a single point such as (3,4)(3, 4) is a calculation, and our rectangular to polar calculator does it instantly. Converting an equation such as y=x2y = x^2 is algebra: you are rewriting the description of an entire curve. This guide covers that algebra with 16 worked examples, eight in each direction.


The Conversion Rules

Every conversion uses the same small set of identities. They come from the right triangle formed by a point, the origin, and the x-axis (see rectangular to polar formulas for the derivation).

RectangularPolarUse it when you see…
xxrcos⁡θr\cos\thetaa lone xx
yyrsin⁡θr\sin\thetaa lone yy
x2+y2x^2 + y^2r2r^2a sum of squares (circles)
yx\dfrac{y}{x}tan⁡θ\tan\thetaa ratio, or a line through the origin

Going the other way, you look for these same groupings in the polar equation: rcos⁡θ→xr\cos\theta \to x, rsin⁡θ→yr\sin\theta \to y, r2→x2+y2r^2 \to x^2 + y^2, and r=x2+y2r = \sqrt{x^2 + y^2}.


Part 1: Rectangular Equation to Polar Equation

Method

  1. Substitute x=rcos⁡θx = r\cos\theta and y=rsin⁡θy = r\sin\theta. Replace x2+y2x^2 + y^2 with r2r^2 wherever it appears.
  2. Simplify, using identities such as cos⁡2θ+sin⁡2θ=1\cos^2\theta + \sin^2\theta = 1.
  3. Solve for rr if possible. If you divide by rr, check whether the pole (r=0r = 0) still lies on the curve.

Example 1: Circle centered at the origin, x2+y2=36x^2 + y^2 = 36

x2+y2=36  ⇒  r2=36  ⇒  r=6x^2 + y^2 = 36 \;\Rightarrow\; r^2 = 36 \;\Rightarrow\; r = 6

A circle of radius 6 around the origin is simply r=6r = 6. The same method gives x2+y2=64⇒r=8x^2 + y^2 = 64 \Rightarrow r = 8 and x2+y2=25⇒r=5x^2 + y^2 = 25 \Rightarrow r = 5. We use r=6r = 6 rather than r=±6r = \pm 6 because r=−6r = -6 traces the same circle.

Example 2: Horizontal line, y=5y = 5

rsin⁡θ=5  ⇒  r=5sin⁡θ=5csc⁡θr\sin\theta = 5 \;\Rightarrow\; r = \frac{5}{\sin\theta} = 5\csc\theta

Example 3: Vertical line, x=3x = 3

rcos⁡θ=3  ⇒  r=3sec⁡θr\cos\theta = 3 \;\Rightarrow\; r = 3\sec\theta

Example 4: Line through the origin, y=xy = x

rsin⁡θ=rcos⁡θ  ⇒  tan⁡θ=1  ⇒  θ=π4r\sin\theta = r\cos\theta \;\Rightarrow\; \tan\theta = 1 \;\Rightarrow\; \theta = \frac{\pi}{4}

A line through the origin has no rr in its polar equation. Every point on it has the same direction. Negative values of rr cover the half of the line in Quadrant III.

Example 5: Line not through the origin, y=x+1y = x + 1

rsin⁡θ=rcos⁡θ+1  ⇒  r(sin⁡θ−cos⁡θ)=1  ⇒  r=1sin⁡θ−cos⁡θr\sin\theta = r\cos\theta + 1 \;\Rightarrow\; r(\sin\theta - \cos\theta) = 1 \;\Rightarrow\; r = \frac{1}{\sin\theta - \cos\theta}

In general, the line ax+by=cax + by = c becomes r=cacos⁡θ+bsin⁡θr = \dfrac{c}{a\cos\theta + b\sin\theta}.

Example 6: Circle through the origin, x2+y2=4xx^2 + y^2 = 4x

r2=4rcos⁡θ  ⇒  r=4cos⁡θr^2 = 4r\cos\theta \;\Rightarrow\; r = 4\cos\theta

We divided by rr, which could lose the solution r=0r = 0. But r=4cos⁡θr = 4\cos\theta reaches r=0r = 0 at θ=π2\theta = \frac{\pi}{2}, so the pole is still included. This is a circle of radius 2 centered at (2,0)(2, 0).

Example 7: Circle through the origin, x2+y2=6yx^2 + y^2 = 6y

r2=6rsin⁡θ  ⇒  r=6sin⁡θr^2 = 6r\sin\theta \;\Rightarrow\; r = 6\sin\theta

This is a circle of radius 3 centered at (0,3)(0, 3). More generally, x2+y2+Dx+Ey=0x^2 + y^2 + Dx + Ey = 0 becomes r=−Dcos⁡θ−Esin⁡θr = -D\cos\theta - E\sin\theta.

Example 8: Parabola, y=x2y = x^2

rsin⁡θ=r2cos⁡2θ  ⇒  r=sin⁡θcos⁡2θ=tan⁡θ sec⁡θr\sin\theta = r^2\cos^2\theta \;\Rightarrow\; r = \frac{\sin\theta}{\cos^2\theta} = \tan\theta\,\sec\theta

Bonus: Hyperbolas xy=4xy = 4 and x2−y2=1x^2 - y^2 = 1

xy=4  ⇒  r2cos⁡θsin⁡θ=4  ⇒  r22sin⁡2θ=4  ⇒  r2=8csc⁡2θxy = 4 \;\Rightarrow\; r^2\cos\theta\sin\theta = 4 \;\Rightarrow\; \frac{r^2}{2}\sin 2\theta = 4 \;\Rightarrow\; r^2 = 8\csc 2\theta x2−y2=1  ⇒  r2(cos⁡2θ−sin⁡2θ)=1  ⇒  r2cos⁡2θ=1  ⇒  r2=sec⁡2θx^2 - y^2 = 1 \;\Rightarrow\; r^2(\cos^2\theta - \sin^2\theta) = 1 \;\Rightarrow\; r^2\cos 2\theta = 1 \;\Rightarrow\; r^2 = \sec 2\theta

Both use double-angle identities: 2sin⁡θcos⁡θ=sin⁡2θ2\sin\theta\cos\theta = \sin 2\theta and cos⁡2θ−sin⁡2θ=cos⁡2θ\cos^2\theta - \sin^2\theta = \cos 2\theta.


Part 2: Polar Equation to Rectangular Equation

Method

  1. Look for rcos⁡θr\cos\theta, rsin⁡θr\sin\theta or r2r^2 already in the equation.
  2. If they are not there, multiply both sides by rr (or rearrange) to create them.
  3. Replace them with xx, yy and x2+y2x^2 + y^2, then simplify. Complete the square to identify circles.

Example 9: r=4r = 4

r2=16  ⇒  x2+y2=16r^2 = 16 \;\Rightarrow\; x^2 + y^2 = 16

A circle of radius 4 centered at the origin.

Example 10: θ=π3\theta = \dfrac{\pi}{3}

tan⁡θ=tan⁡π3=3  ⇒  yx=3  ⇒  y=3 x\tan\theta = \tan\frac{\pi}{3} = \sqrt{3} \;\Rightarrow\; \frac{y}{x} = \sqrt{3} \;\Rightarrow\; y = \sqrt{3}\,x

Example 11: r=2sec⁡θr = 2\sec\theta

r=2cos⁡θ  ⇒  rcos⁡θ=2  ⇒  x=2r = \frac{2}{\cos\theta} \;\Rightarrow\; r\cos\theta = 2 \;\Rightarrow\; x = 2

Example 12: r=4sin⁡θr = 4\sin\theta

Multiply both sides by rr:

r2=4rsin⁡θ  ⇒  x2+y2=4y  ⇒  x2+(y−2)2=4r^2 = 4r\sin\theta \;\Rightarrow\; x^2 + y^2 = 4y \;\Rightarrow\; x^2 + (y - 2)^2 = 4

A circle of radius 2 centered at (0,2)(0, 2).

Example 13: r=6cos⁡θr = 6\cos\theta

r2=6rcos⁡θ  ⇒  x2+y2=6x  ⇒  (x−3)2+y2=9r^2 = 6r\cos\theta \;\Rightarrow\; x^2 + y^2 = 6x \;\Rightarrow\; (x - 3)^2 + y^2 = 9

A circle of radius 3 centered at (3,0)(3, 0).

Example 14: r=2sin⁡θ+cos⁡θr = \dfrac{2}{\sin\theta + \cos\theta}

rsin⁡θ+rcos⁡θ=2  ⇒  y+x=2r\sin\theta + r\cos\theta = 2 \;\Rightarrow\; y + x = 2

A straight line with slope −1-1 and y-intercept 2.

Example 15: r=11−cos⁡θr = \dfrac{1}{1 - \cos\theta}

r−rcos⁡θ=1  ⇒  r=1+x  ⇒  x2+y2=(1+x)2  ⇒  y2=1+2xr - r\cos\theta = 1 \;\Rightarrow\; r = 1 + x \;\Rightarrow\; x^2 + y^2 = (1 + x)^2 \;\Rightarrow\; y^2 = 1 + 2x

A parabola opening to the right. Squaring both sides of r=1+xr = 1 + x is safe here because r≥0r \ge 0 and 1+x=r≥01 + x = r \ge 0 on this curve.

Example 16: r2=4sin⁡2θr^2 = 4\sin 2\theta (lemniscate)

r2=8sin⁡θcos⁡θ  ⇒  r4=8(rsin⁡θ)(rcos⁡θ)  ⇒  (x2+y2)2=8xyr^2 = 8\sin\theta\cos\theta \;\Rightarrow\; r^4 = 8(r\sin\theta)(r\cos\theta) \;\Rightarrow\; (x^2 + y^2)^2 = 8xy

We multiplied both sides by r2r^2 so that each sin⁡θ\sin\theta and cos⁡θ\cos\theta gets its own factor of rr.


Summary Table

Rectangular equationPolar equationShape
x2+y2=a2x^2 + y^2 = a^2r=ar = aCircle at origin
x=ax = ar=asec⁡θr = a\sec\thetaVertical line
y=by = br=bcsc⁡θr = b\csc\thetaHorizontal line
y=mxy = mxθ=arctan⁡m\theta = \arctan mLine through origin
x2+y2=2axx^2 + y^2 = 2axr=2acos⁡θr = 2a\cos\thetaCircle through origin, center (a,0)(a, 0)
x2+y2=2byx^2 + y^2 = 2byr=2bsin⁡θr = 2b\sin\thetaCircle through origin, center (0,b)(0, b)
y=x2y = x^2r=tan⁡θsec⁡θr = \tan\theta\sec\thetaParabola
x2−y2=1x^2 - y^2 = 1r2=sec⁡2θr^2 = \sec 2\thetaHyperbola

Common Mistakes

  1. Substituting rr for x2+y2x^2 + y^2. The correct replacement is r2r^2. Only x2+y2\sqrt{x^2 + y^2} equals rr.
  2. Dividing by rr without checking the pole. In r2=4rcos⁡θr^2 = 4r\cos\theta, dividing by rr removes the solution r=0r = 0. It is safe only if the simplified equation still passes through the pole, as r=4cos⁡θr = 4\cos\theta does at θ=π2\theta = \frac{\pi}{2}.
  3. Writing θ=arctan⁡(y/x)\theta = \arctan(y/x) for every point. Inside an equation, tan⁡θ=y/x\tan\theta = y/x is fine. When you need an actual angle for a specific point, arctan⁡\arctan alone gives the wrong quadrant for x<0x < 0. Use atan2.
  4. Forgetting to complete the square. x2+y2=4yx^2 + y^2 = 4y is correct but hides the shape. x2+(y−2)2=4x^2 + (y-2)^2 = 4 shows the center and radius.
  5. Squaring without checking signs. Squaring both sides can add points that are not on the original curve. Check the sign condition, as in Example 15.

More pitfalls that apply to points as well as equations are collected in common mistakes in rectangular and polar conversions.


Check Your Work with Points

A quick way to test a converted equation is to pick a point on the original curve, convert it, and confirm it satisfies the new equation.

For Example 6, the point (4,0)(4, 0) lies on x2+y2=4xx^2 + y^2 = 4x because 16+0=1616 + 0 = 16. Converting it with our online calculator gives r=4, θ=0∘r = 4,\ \theta = 0^\circ. Plugging into r=4cos⁡θr = 4\cos\theta gives 4cos⁡0=44\cos 0 = 4, so the conversion checks out.


Frequently Asked Questions

What is the polar form of x2+y2=36x^2 + y^2 = 36?

r=6r = 6. Replace x2+y2x^2 + y^2 with r2r^2 to get r2=36r^2 = 36, then take the positive root.

How do you convert y=xy = x to polar form?

Substitute to get rsin⁡θ=rcos⁡θr\sin\theta = r\cos\theta, so tan⁡θ=1\tan\theta = 1 and θ=π4\theta = \frac{\pi}{4} (45°).

How do you convert r=4sin⁡θr = 4\sin\theta to rectangular form?

Multiply both sides by rr to get r2=4rsin⁡θr^2 = 4r\sin\theta, then substitute to get x2+y2=4yx^2 + y^2 = 4y, which is the circle x2+(y−2)2=4x^2 + (y - 2)^2 = 4.

Is there a calculator for converting equations?

Our rectangular to polar calculator converts individual points and shows every step. Equations need the algebra above, but you can use the calculator to check any point on your curve. For the reverse direction with points, see polar to rectangular formulas and examples.