A circle equation can show the centre and radius directly, or hide them inside expanded terms. Completing the square moves between those forms. Coordinates can also determine a circle from the endpoints of a diameter or from three non-collinear points.

This page focuses on constructing and interpreting equations. Circles in Coordinate Geometry develops the underlying distance, chord and tangent relationships.

On this page

Standard form and signs

A circle with centre (h,k)(h,k) and radius r>0r>0 has equation

(x−h)2+(y−k)2=r2.(x-h)^2+(y-k)^2=r^2.

For (x−3)2+(y+2)2=25(x-3)^2+(y+2)^2=25, the centre is (3,−2)(3,-2) and the radius is 5. The sign inside each bracket is part of a subtraction from the coordinate: y+2=y−(−2)y+2=y-(-2).

The right-hand side is the squared radius, not the radius. If it is 13, the radius is 13\sqrt{13}. If it is zero, the solution set is a single point. If it is negative, there are no real points because a sum of real squares cannot be negative.

Convert an expanded equation

Rewrite

x2+y2−6x+4y−12=0.x^2+y^2-6x+4y-12=0.

Group and complete each square

Move the constant and group the coordinate terms:

(x2−6x)+(y2+4y)=12.(x^2-6x)+(y^2+4y)=12.

For the xx group, half of −6-6 is −3-3, whose square is 9. For the yy group, half of 4 is 2, whose square is 4. Add both quantities to both sides:

(x2−6x+9)+(y2+4y+4)=12+9+4.(x^2-6x+9)+(y^2+4y+4)=12+9+4.

Hence

(x−3)2+(y+2)2=25.(x-3)^2+(y+2)^2=25.

The centre is (3,−2)(3,-2) and the radius is 5. Expand the completed squares to check that the original equation is recovered.

Completing squares reveals the centre

Completing squares reveals the centreThe circle centred at three, negative two has radius five and cardinal boundary points three, three; eight, negative two; three, negative seven; and negative two, negative two.−4−2246810−8−6−4−2240xyC (3, −2)(3, 3)r = 5
The standard form (x − 3)² + (y + 2)² = 25 reveals a radius of 5, not 25.
Diagram explanation and exact data

The same circle has expanded equation x² + y² − 6x + 4y − 12 = 0. Its full boundary is determined by the centre and radius.

Completing squares reveals the centre: exact reference data
Feature Exact coordinates
Centre (3,−2)(3,-2)
Top (3,3)(3,3)
Right (8,−2)(8,-2)
Bottom (3,−7)(3,-7)
Left (−2,−2)(-2,-2)

Normalize a common coefficient first

For 2x2+2y2−12x+8y−24=02x^2+2y^2-12x+8y-24=0, divide the entire equation by 2 first. This returns the same example. Completing a square inside a group with a non-unit coefficient without accounting for that coefficient produces an incorrect constant.

A general centre-and-radius test

For an equation already normalized as

x2+y2+Dx+Ey+F=0,x^2+y^2+Dx+Ey+F=0,

completion gives

(x+D2)2+(y+E2)2=D2+E24−F.\left(x+\frac D2\right)^2+\left(y+\frac E2\right)^2=\frac{D^2+E^2}{4}-F.

The centre is (−D/2,−E/2)(-D/2,-E/2). A real circle exists only when the expression on the right is positive. Equal coefficients on x2x^2 and y2y^2 alone are therefore not enough to guarantee a real circle.

This square-completion approach agrees with the circle and ellipse forms in OpenStax.

Construct a circle from a diameter

Let the diameter endpoints be A=(−1,2)A=(-1,2) and B=(5,6)B=(5,6). The centre is their midpoint:

C=(−1+52,2+62)=(2,4).C=\left(\frac{-1+5}{2},\frac{2+6}{2}\right)=(2,4).

The squared radius is the squared distance from CC to BB:

r2=(5−2)2+(6−4)2=9+4=13.r^2=(5-2)^2+(6-4)^2=9+4=13.

Therefore the equation is

(x−2)2+(y−4)2=13.(x-2)^2+(y-4)^2=13.

Both endpoints give 13 when substituted. Using the full diameter length as the radius would incorrectly make the right-hand side four times as large.

Construct a circle through three points

Three distinct non-collinear points determine a unique circle. To find the circle through (0,0)(0,0), (4,0)(4,0) and (0,2)(0,2), use x2+y2+Dx+Ey+F=0x^2+y^2+Dx+Ey+F=0.

Substituting (0,0)(0,0) gives F=0F=0. Substituting (4,0)(4,0) gives 16+4D=016+4D=0, so D=−4D=-4. Substituting (0,2)(0,2) gives 4+2E=04+2E=0, so E=−2E=-2.

Thus

x2+y2−4x−2y=0⇒(x−2)2+(y−1)2=5.x^2+y^2-4x-2y=0\Rightarrow(x-2)^2+(y-1)^2=5.

The centre is (2,1)(2,1) and radius 5\sqrt5. Geometrically, the same centre is where the perpendicular bisectors of the chords meet. Three distinct collinear points cannot all lie on a finite-radius circle.

Solve intersections with a line

Find where y=x+1y=x+1 meets x2+y2=25x^2+y^2=25. Substitute the line expression into the circle:

x2+(x+1)2=25⇒2x2+2x−24=0.x^2+(x+1)^2=25\Rightarrow2x^2+2x-24=0.

Divide by 2 and factor:

x2+x−12=(x+4)(x−3)=0.x^2+x-12=(x+4)(x-3)=0.

The inputs are x=−4x=-4 and x=3x=3. Use the line equation to recover the corresponding outputs: y=−3y=-3 and y=4y=4. The intersection points are therefore (−4,−3)(-4,-3) and (3,4)(3,4).

Both points satisfy both original equations. Finding only the xx-values would leave the geometric answer incomplete. A repeated quadratic root corresponds to tangency; no real roots means no real intersections.

Practice questions

  1. Find the centre and radius of x2+y2−6x+4y−12=0x^2+y^2-6x+4y-12=0.
  2. Find the circle with diameter endpoints (−1,2)(-1,2) and (5,6)(5,6).
  3. Find where y=x+1y=x+1 meets x2+y2=25x^2+y^2=25.
Check your answers
  1. Completing squares gives (x−3)2+(y+2)2=25(x-3)^2+(y+2)^2=25. The centre is (3,−2)(3,-2) and radius is 5.
  2. The midpoint is (2,4)(2,4) and r2=13r^2=13, giving (x−2)2+(y−4)2=13(x-2)^2+(y-4)^2=13.
  3. Substitution gives (x+4)(x−3)=0(x+4)(x-3)=0. The corresponding ordered pairs are (−4,−3)(-4,-3) and (3,4)(3,4), and both have x2+y2=25x^2+y^2=25.

Related topics

Parabolas introduces a different distance condition. Conic Sections compares circle equations with the other second-degree curves and explains why not every quadratic equation describes a real non-degenerate curve.

Sources and further reading