In short

Three non-collinear points determine a unique circle — you find it by substituting the points into the general form and solving three simultaneous equations. If two of the points are endpoints of a diameter, the diameter form (x - x_1)(x - x_2) + (y - y_1)(y - y_2) = 0 gives the equation in one line. A circle can also be described parametrically as x = h + r\cos\theta, y = k + r\sin\theta. And to test whether a point P is inside, on, or outside a circle, substitute P into S = x^2 + y^2 + 2gx + 2fy + c: the sign of S tells you.

Take three pins and push them into a sheet of paper — anywhere, as long as they're not in a straight line. Now try to draw a circle that passes through all three pins. With a steady hand and some patience, you will find that exactly one circle does the job. Not two, not zero — one.

That is a remarkable fact. Two points don't determine a circle — infinitely many circles pass through any two given points. But the moment you fix a third point (not on the line through the first two), the circle snaps into place. The geometric reason is that the centre must be equidistant from all three points, and as you will see, that pins down the centre to a single location.

This article covers four constructions that every coordinate-geometry course expects you to handle: the circle through three points, the diameter form, parametric equations, and the position of a point relative to a circle.

Circle through three given points

The method

Suppose you want the circle through three points A = (x_1, y_1), B = (x_2, y_2), C = (x_3, y_3). Since every circle has the general form x^2 + y^2 + 2gx + 2fy + c = 0, and the three points must satisfy this equation, you get three linear equations in the three unknowns g, f, c:

x_1^2 + y_1^2 + 2g x_1 + 2f y_1 + c = 0
x_2^2 + y_2^2 + 2g x_2 + 2f y_2 + c = 0
x_3^2 + y_3^2 + 2g x_3 + 2f y_3 + c = 0

Why: each equation says "this point lies on the circle." The terms x_i^2 + y_i^2 are known numbers (computed from the given coordinates), so these are genuinely three linear equations in g, f, c.

Solve this 3 \times 3 system — by substitution, elimination, or Cramer's rule — and you have the circle's equation. The system has a unique solution exactly when the three points are non-collinear.

Why three non-collinear points work

The centre of the circle must be equidistant from all three points. The locus of points equidistant from A and B is the perpendicular bisector of AB. The locus of points equidistant from B and C is the perpendicular bisector of BC. The centre is the intersection of these two perpendicular bisectors.

Two distinct lines in the plane either intersect at exactly one point (if they are not parallel) or not at all (if they are parallel). The perpendicular bisectors of AB and BC are parallel only when A, B, C are collinear — because in that case, both bisectors are perpendicular to the same line, hence parallel to each other. If the three points are not collinear, the two bisectors meet at exactly one point: the centre.

The unique circle through $A(0, 0)$, $B(8, 0)$, and $C(0, 6)$. The centre at $(4, 3)$ is equidistant from all three points — each is exactly 5 units away.

A full computation

Find the circle through A = (0, 0), B = (8, 0), C = (0, 6).

Substituting into x^2 + y^2 + 2gx + 2fy + c = 0:

From A(0, 0):

0 + 0 + 0 + 0 + c = 0 \implies c = 0

From B(8, 0):

64 + 0 + 16g + 0 + 0 = 0 \implies 16g = -64 \implies g = -4

From C(0, 6):

0 + 36 + 0 + 12f + 0 = 0 \implies 12f = -36 \implies f = -3

Why: having one point at the origin simplifies things enormously — it immediately gives c = 0, and the other two equations each contain only one unknown.

The equation is x^2 + y^2 - 8x - 6y = 0. Centre = (-g, -f) = (4, 3), radius = \sqrt{16 + 9 - 0} = 5.

Verify: A(0,0) gives 0 + 0 - 0 - 0 = 0. B(8,0) gives 64 + 0 - 64 - 0 = 0. C(0,6) gives 0 + 36 - 0 - 36 = 0. All three check out.

Notice something about the triangle ABC: its sides are AB = 8, AC = 6, and BC = \sqrt{64 + 36} = 10. Since 6^2 + 8^2 = 10^2, this is a right triangle with the right angle at A. The hypotenuse BC has length 10, and the radius of the circle is 5 = 10/2. This is not a coincidence — the circle through the vertices of a right triangle always has the hypotenuse as a diameter. You will see why in the next section.

The diameter form

When you know that two points A = (x_1, y_1) and B = (x_2, y_2) are endpoints of a diameter of a circle, there is a shortcut that gives the equation without computing the centre and radius separately.

Derivation

Let P = (x, y) be any point on the circle (other than A or B). Since AB is a diameter, the angle \angle APB is a right angle — this is the famous angle-in-a-semicircle theorem (Thales' theorem).

The slope of PA is \dfrac{y - y_1}{x - x_1} and the slope of PB is \dfrac{y - y_2}{x - x_2}.

Two lines are perpendicular when the product of their slopes is -1:

\frac{y - y_1}{x - x_1} \cdot \frac{y - y_2}{x - x_2} = -1

Multiply both sides by (x - x_1)(x - x_2):

(y - y_1)(y - y_2) = -(x - x_1)(x - x_2)

Rearrange:

(x - x_1)(x - x_2) + (y - y_1)(y - y_2) = 0

Why: the angle-in-a-semicircle condition (perpendicularity of PA and PB) translates directly into the slope condition, which simplifies to this clean equation. The points A and B themselves also satisfy this equation (each makes one factor zero), so the equation captures the entire circle.

Diameter form of a circle

If (x_1, y_1) and (x_2, y_2) are endpoints of a diameter, the circle's equation is

(x - x_1)(x - x_2) + (y - y_1)(y - y_2) = 0

This is elegant: no need to find the midpoint, no need to compute the radius, no square roots at all. The diameter endpoints go directly into the equation.

Expand it and you get the general form. The centre is \left(\dfrac{x_1 + x_2}{2}, \dfrac{y_1 + y_2}{2}\right) — the midpoint of the diameter, as expected — and the radius is \dfrac{1}{2}\sqrt{(x_1 - x_2)^2 + (y_1 - y_2)^2} — half the length of the diameter.

Parametric equations of a circle

The idea

In the standard form (x - h)^2 + (y - k)^2 = r^2, the point (x, y) is constrained by a relationship between x and y. But there is another way to describe the same circle: let a single parameter — an angle \theta — trace out every point as it sweeps from 0 to 2\pi.

A point $P$ on the circle $x^2 + y^2 = 9$. The angle $\theta$ that the radius $OP$ makes with the positive $x$-axis determines $P$ uniquely: $x = 3\cos\theta$, $y = 3\sin\theta$. As $\theta$ sweeps from $0$ to $2\pi$, $P$ traces out the entire circle.

Derivation

Consider the circle x^2 + y^2 = r^2 (centred at the origin, for simplicity). A point P on this circle is at distance r from the origin. If the line OP makes an angle \theta with the positive x-axis, then by the definition of \cos and \sin:

x = r\cos\theta, \quad y = r\sin\theta

Why: in a right triangle with hypotenuse r and angle \theta, the adjacent side is r\cos\theta and the opposite side is r\sin\theta. This is simply the definition of trigonometric ratios applied to the radius.

Verify: (r\cos\theta)^2 + (r\sin\theta)^2 = r^2(\cos^2\theta + \sin^2\theta) = r^2 \cdot 1 = r^2. The Pythagorean identity \cos^2\theta + \sin^2\theta = 1 guarantees that every point of this form lies on the circle. And conversely, every point on the circle corresponds to some angle \theta.

For a circle with centre (h, k) and radius r, shift the origin:

Parametric equations of a circle

x = h + r\cos\theta, \quad y = k + r\sin\theta, \quad 0 \leq \theta < 2\pi

The parameter \theta is the angle the radius makes with the positive x-direction, measured at the centre.

The parametric form is useful when you want to "walk along" the circle — for instance, to find where a moving point on the circle is closest to a given line, or to set up optimisation problems. Any point on the circle can be written as (h + r\cos\theta, k + r\sin\theta) for some \theta, which reduces a two-variable problem to a single-variable problem in \theta.

Position of a point with respect to a circle

Inside, on, or outside?

Given a circle S: x^2 + y^2 + 2gx + 2fy + c = 0 and a point P = (x_1, y_1), there are three possibilities: P is inside the circle, on the circle, or outside the circle.

The test is simple. Compute

S_1 = x_1^2 + y_1^2 + 2gx_1 + 2fy_1 + c

This is the value you get by substituting (x_1, y_1) into the left side of the circle's equation.

Why the sign works

Rewrite the circle in standard form: (x + g)^2 + (y + f)^2 = g^2 + f^2 - c. The left side is the squared distance from (x, y) to the centre (-g, -f). Call this d^2, and call the radius r^2 = g^2 + f^2 - c.

Then S_1 = d^2 - r^2, where d is the distance from P to the centre.

Why: (x_1 + g)^2 + (y_1 + f)^2 - (g^2 + f^2 - c) = x_1^2 + y_1^2 + 2gx_1 + 2fy_1 + c = S_1. So S_1 is literally d^2 - r^2, and the sign of that difference tells you whether d is less than, equal to, or greater than r.

Three points relative to the circle $(x - 2)^2 + (y - 3)^2 = 16$. $P_1(3, 4)$ is inside ($S_1 < 0$), $P_2(6, 3)$ is on the circle ($S_1 = 0$), and $P_3(7, 6)$ is outside ($S_1 > 0$). The sign of $S_1$ captures the comparison between the point's distance from the centre and the radius.

Verify with the circle (x - 2)^2 + (y - 3)^2 = 16, which in general form is x^2 + y^2 - 4x - 6y - 3 = 0.

For P_1: distance from (3, 4) to centre (2, 3) is \sqrt{1 + 1} = \sqrt{2} \approx 1.41, which is less than the radius 4. Inside. For P_3: distance from (7, 6) to (2, 3) is \sqrt{25 + 9} = \sqrt{34} \approx 5.83, which is greater than 4. Outside. The sign test and the distance comparison agree.

Worked examples

Example 1: Circle through three points

Find the equation of the circle passing through A = (1, 1), B = (5, 1), and C = (3, 5).

Step 1. Substitute each point into x^2 + y^2 + 2gx + 2fy + c = 0.

From A(1, 1): 1 + 1 + 2g + 2f + c = 0, so 2g + 2f + c = -2 ... (i)

From B(5, 1): 25 + 1 + 10g + 2f + c = 0, so 10g + 2f + c = -26 ... (ii)

From C(3, 5): 9 + 25 + 6g + 10f + c = 0, so 6g + 10f + c = -34 ... (iii)

Why: each equation is the circle equation evaluated at a point that lies on the circle. The three equations form a 3 \times 3 linear system in g, f, c.

Step 2. Subtract (i) from (ii) to eliminate c and f.

(10g + 2f + c) - (2g + 2f + c) = -26 - (-2)

8g = -24, so g = -3.

Why: subtracting eliminates both f and c because their coefficients match, leaving a single equation in g.

Step 3. Subtract (i) from (iii) to eliminate c.

(6g + 10f + c) - (2g + 2f + c) = -34 - (-2)

4g + 8f = -32

Substitute g = -3: -12 + 8f = -32, so 8f = -20, hence f = -5/2.

Why: once g is known, the second subtracted equation contains only f.

Step 4. Find c from (i).

2(-3) + 2(-5/2) + c = -2

-6 - 5 + c = -2, so c = 9.

Result: The circle is x^2 + y^2 - 6x - 5y + 9 = 0. Centre = (3, 5/2), radius = \sqrt{9 + 25/4 - 9} = \sqrt{25/4} = 5/2.

The circle through $A(1, 1)$, $B(5, 1)$, and $C(3, 5)$, with centre at $(3, 5/2)$ and radius $5/2$. The three dashed segments from the centre to the vertices all have the same length — confirming the centre is equidistant from all three points.

Verify: A(1,1): 1 + 1 - 6 - 5 + 9 = 0. B(5,1): 25 + 1 - 30 - 5 + 9 = 0. C(3,5): 9 + 25 - 18 - 25 + 9 = 0. All three satisfy the equation.

Example 2: Diameter form and point-position test

The points A = (2, -1) and B = (6, 3) are endpoints of a diameter. Write the equation of the circle, and determine whether the point P = (5, 0) is inside, on, or outside it.

Step 1. Write the diameter form directly.

(x - 2)(x - 6) + (y + 1)(y - 3) = 0

Why: the diameter form (x - x_1)(x - x_2) + (y - y_1)(y - y_2) = 0 applies directly when you know the diameter endpoints. No midpoint or distance computation needed.

Step 2. Expand to general form.

(x^2 - 8x + 12) + (y^2 - 2y - 3) = 0
x^2 + y^2 - 8x - 2y + 9 = 0

Why: expanding gives the general form, which is easier to use for the point-position test.

Step 3. Read off the centre and radius.

2g = -8 \Rightarrow g = -4, 2f = -2 \Rightarrow f = -1, c = 9.

Centre = (-g, -f) = (4, 1). Radius = \sqrt{16 + 1 - 9} = \sqrt{8} = 2\sqrt{2}.

Why: the centre (4, 1) is indeed the midpoint of A(2, -1) and B(6, 3): (2+6)/2 = 4, (-1+3)/2 = 1. This is a good consistency check.

Step 4. Test P = (5, 0).

S_1 = 25 + 0 - 40 - 0 + 9 = -6

Since S_1 < 0, the point P(5, 0) is inside the circle.

Why: S_1 < 0 means the distance from P to the centre is less than the radius. Checking: distance from (5, 0) to (4, 1) is \sqrt{1 + 1} = \sqrt{2} \approx 1.41, which is indeed less than 2\sqrt{2} \approx 2.83.

Result: The circle is x^2 + y^2 - 8x - 2y + 9 = 0, centre (4, 1), radius 2\sqrt{2}. The point (5, 0) lies inside.

The circle with diameter $AB$. The point $P(5, 0)$ lies inside the circle — its distance to the centre ($\sqrt{2}$) is less than the radius ($2\sqrt{2}$). The diameter segment $AB$ passes through the centre, as expected.

The picture confirms: P is visibly inside the circle, closer to the centre than the circle's boundary.

Common confusions

Going deeper

If you came here to learn the circle-through-three-points method, the diameter form, parametric equations, and the point-position test, you have the essentials. The rest of this article explores connections and edge cases.

The circumcircle of a triangle

The circle through three non-collinear points is the circumcircle of the triangle formed by those three points. Its centre is called the circumcentre, and its radius is the circumradius, usually denoted R.

There is a beautiful formula connecting the circumradius to the triangle's sides. If the triangle has sides a, b, c and area \Delta, then

R = \frac{abc}{4\Delta}

This follows from the extended law of sines: \dfrac{a}{\sin A} = 2R. The circumcentre is equidistant from all three vertices, and it lies at the intersection of the perpendicular bisectors of the sides — the same geometric construction described earlier.

For a right triangle, the circumcentre is the midpoint of the hypotenuse, and the circumradius is half the hypotenuse. This is why the circle through A(0,0), B(8,0), C(0,6) had its centre at (4, 3) — the midpoint of the hypotenuse BC — and radius 5 — half of BC = 10.

Parametric form and trigonometric substitution

The parametric equations x = h + r\cos\theta, y = k + r\sin\theta are useful beyond just describing the circle. They are a standard tool in optimisation problems involving circles.

For instance: find the maximum value of 3x + 4y on the circle x^2 + y^2 = 25. Using the parametric form with h = 0, k = 0, r = 5:

3x + 4y = 3(5\cos\theta) + 4(5\sin\theta) = 15\cos\theta + 20\sin\theta

This is a single-variable expression in \theta. Its maximum value is \sqrt{15^2 + 20^2} = \sqrt{225 + 400} = \sqrt{625} = 25. The parametric form turned a constrained two-variable problem into an unconstrained one-variable problem — a technique you will see again and again in optimisation.

The power of a point

The quantity S_1 = x_1^2 + y_1^2 + 2gx_1 + 2fy_1 + c that you compute for the point-position test has a deeper geometric meaning. It is called the power of the point P with respect to the circle.

If P is outside the circle and you draw any line through P that intersects the circle at points A and B, then PA \cdot PB = S_1. This product is the same regardless of which line you draw — it depends only on P and the circle, not on the particular line. That is why S_1 is called the "power": it measures a fundamental relationship between the point and the circle.

The power of a point $P$ outside a circle. Any line through $P$ cutting the circle at two points produces the same product of distances $PA \cdot PB$. This constant product is the power of $P$ — it equals $S_1$, the value obtained by substituting $P$ into the circle's equation.

If P is inside the circle, the power is negative, and the absolute value equals PA \cdot PB where A and B are the two points where any chord through P meets the circle. If P is on the circle, the power is zero. The power-of-a-point concept leads to the radical axis (the locus of points having equal power with respect to two circles), which is a straight line — an idea you will meet in more advanced coordinate geometry.

Where this leads next

The constructions in this article — finding circles through given points, using the diameter form, parametric equations, and point position — are the tools you need for the next level of circle geometry.