Circle through three points: centre, radius and equation

Centre, radius and equation of the circle through three points, in standard form (x − h)² + (y − k)² = r² and general form, plus area.

Drafted with AI writing toolsUpdated Checked examples: 4

Try
Radius
Radius: 5
Maximum decimal places: 8; Nearest, ties away from zero
Centre x
1
Centre y
1
Standard form
(x − 1)² + (y − 1)² = 25
General form
x² + y² − 2x − 2y − 23 = 0
Diameter
10
Circumference
31.4159
Area
78.5398

The only circle through (−3, 4), (4, 5) and (1, −4) is centred at (1, 1) with radius 5: (x − 1)² + (y − 1)² = 25.

Circle through the three points; C is the centre

r = 5CP1(−3, 4)P2(4, 5)P3(1, −4)
How it's calculated S
  1. Determinant (zero means the points are collinear)

    D=2[x1(y2−y3)+x2(y3−y1)+x3(y1−y2)]=−120D = 2[x_1(y_2 - y_3) + x_2(y_3 - y_1) + x_3(y_1 - y_2)] = -120
  2. Centre

    h=(x12+y12)(y2−y3)+(x22+y22)(y3−y1)+(x32+y32)(y1−y2)D=1k=(x12+y12)(x3−x2)+(x22+y22)(x1−x3)+(x32+y32)(x2−x1)D=1\begin{gathered} h = \frac{(x_1^2 + y_1^2)(y_2 - y_3) + (x_2^2 + y_2^2)(y_3 - y_1) + (x_3^2 + y_3^2)(y_1 - y_2)}{D} = 1 \\[6pt] k = \frac{(x_1^2 + y_1^2)(x_3 - x_2) + (x_2^2 + y_2^2)(x_1 - x_3) + (x_3^2 + y_3^2)(x_2 - x_1)}{D} = 1 \end{gathered}

    The centre is where the perpendicular bisectors of P₁P₂ and P₂P₃ meet, so it is equally far from all three points.

  3. Radius

    r=(x1−h)2+(y1−k)2=25=5r = \sqrt{(x_1 - h)^2 + (y_1 - k)^2} = \sqrt{25} = 5
  4. Equation

    Standard: (x − 1)² + (y − 1)² = 25 · General: x² + y² − 2x − 2y − 23 = 0

About circle through three points

Three points that do not lie on one line fix exactly one circle, the circumcircle of the triangle they form. Its centre (h, k) is where the perpendicular bisectors of two chords meet, which a determinant formula gives directly, and the radius is the distance from the centre to any of the points. Coordinates stay exact fractions, so a centre at (1, 4/3) is shown as 4/3, not 1.3333.

The default points (−3, 4), (4, 5) and (1, −4) give centre (1, 1) and radius 5: (x − 1)² + (y − 1)² = 25, or x² + y² − 2x − 2y − 23 = 0. The same construction finds the centre of a round table, pipe or arch from three marks on its edge, and the radius of a road curve from three survey points.

If the determinant is zero the points are collinear and no circle exists. Coordinates carry no unit; the radius and area are in the coordinates' unit and its square.

How to find the circle through three points

Three points not on one line lie on exactly one circle, the circumcircle of their triangle. Its center is where the perpendicular bisectors of two sides cross, and the radius reaches each point: (0, 0), (2, 0) and (1, 3) give center (1, 4/3) and radius 5/3.

Find the center by hand

Each perpendicular bisector is the set of points equally far from both ends of a side, so the point where two of them cross is equally far from all three corners. For (0, 0), (2, 0) and (1, 3):

  1. The side from (0, 0) to (2, 0) has midpoint (1, 0), so its bisector is the vertical line x = 1.
  2. The side from (0, 0) to (1, 3) has midpoint (0.5, 1.5) and slope 3, so its bisector has slope −1/3: y = 1.5 − (x − 0.5)/3.
  3. At x = 1, y = 1.5 − 1/6 = 4/3, so the center is (1, 4/3).
  4. The radius is the distance to (0, 0): r² = 1² + (4/3)² = 25/9, so r = 5/3.

Circumcenter formula

Solving the bisector equations once in general gives the center (h, k) directly. Let d = 2[x₁(y₂ − y₃) + x₂(y₃ − y₁) + x₃(y₁ − y₂)]. Then:

  • h = [(x₁² + y₁²)(y₂ − y₃) + (x₂² + y₂²)(y₃ − y₁) + (x₃² + y₃²)(y₁ − y₂)] / d
  • k = [(x₁² + y₁²)(x₃ − x₂) + (x₂² + y₂²)(x₁ − x₃) + (x₃² + y₃²)(x₂ − x₁)] / d

The bracket in d is twice the triangle's signed area, so d is zero exactly when the points are collinear. For the example, d = 12, h = 12/12 = 1 and k = 16/12 = 4/3.

Circumradius formula from the sides

With side lengths a, b and c and triangle area K, the circumradius is R = abc/(4K), as given in MathWorld's circumcircle entry. The example triangle has sides 2, √10 and √10 and area 3, so R = 20/12 = 5/3.

Standard and general equations of the circle

The standard form is (x − h)² + (y − k)² = r², and its right side is the radius squared. The example circle is (x − 1)² + (y − 4/3)² = 25/9.

Expanding gives the general form x² + y² + Dx + Ey + F = 0, with D = −2h, E = −2k and F = h² + k² − r². Here F = 0 because the circle passes through the origin: x² + y² − 2x − (8/3)y = 0.

Worked circle examples

Three pointsCenterRadiusStandard equation
(−3, 4), (4, 5), (1, −4)(1, 1)5(x − 1)² + (y − 1)² = 25
(0, 0), (4, 0), (0, 3)(2, 1.5)2.5(x − 2)² + (y − 1.5)² = 6.25
(1, 0), (0, 1), (−1, 0)(0, 0)1x² + y² = 1
(0, 0), (2, 0), (1, 3)(1, 4/3)5/3(x − 1)² + (y − 4/3)² = 25/9

To check the first row, (−3, 4) sits 4 left of and 3 above (1, 1), and 4² + 3² = 25; the other two points also give 25. In general form that circle is x² + y² − 2x − 2y − 23 = 0.

The second row has a right angle at (0, 0), so the hypotenuse from (4, 0) to (0, 3) is a diameter and the center is its midpoint.

Where the center lands

The center lies inside an acute triangle, at the midpoint of the hypotenuse of a right triangle, and outside an obtuse one.

The points (0, 0), (6, 0) and (1, 1) have an obtuse angle at (1, 1), and their center, (3, −2), lies below all three, with radius √13 ≈ 3.605551.

Common mistakes

  • Collinear points. (0, 0), (1, 1) and (2, 2) lie on the line y = x, and no circle passes through three points of a line.
  • Reading r² as r. An equation ending in = 25 describes a radius of 5.
  • Averaging the three points. The mean of (0, 0), (2, 0) and (1, 3) is (1, 1), the triangle's centroid; the circle's center is (1, 4/3).
  • Trusting nearly collinear marks. (0, 0), (10, 0) and (5, 0.1) give a radius of 125.05, and moving the middle point to (5, 0.2) halves it to 62.6, so small measuring errors swing the result.

Use one flat coordinate system and one length unit for all six numbers; the radius comes out in that unit and the circle's area in its square. Latitude and longitude need projecting onto a flat grid first.

For a circle known by its radius, diameter or circumference, use the circle calculator. For distances and midpoints between two points, use the coordinate geometry calculator.

Worked examples

(−3, 4), (4, 5), (1, −4)

Point 1: x
-3
Point 1: y
4
Point 2: x
4
Point 2: y
5
Point 3: x
1
Point 3: y
-4
Centre x
1
Centre y
1
Radius
5
Standard form
(x − 1)² + (y − 1)² = 25
General form
x² + y² − 2x − 2y − 23 = 0

Checked against: With the determinant formula; each point is 5 from (1, 1): 4² + 3², 3² + 4², 0² + 5²

Right-angled corner (0, 0), (4, 0), (0, 3)

Point 1: x
0
Point 1: y
0
Point 2: x
4
Point 2: y
0
Point 3: x
0
Point 3: y
3
Centre x
2
Centre y
1.5
Radius
2.5
Area
19.634954

Checked against: Thales: the hypotenuse (length 5) is a diameter, centre at its midpoint

Centre at the origin (edge case: no shift terms)

Point 1: x
1
Point 1: y
0
Point 2: x
0
Point 2: y
1
Point 3: x
-1
Point 3: y
0
Centre x
0
Centre y
0
Radius
1
Standard form
x² + y² = 1
General form
x² + y² − 1 = 0

Checked against: All three points are 1 from the origin

Fractional centre (0, 0), (2, 0), (1, 3)

Point 1: x
0
Point 1: y
0
Point 2: x
2
Point 2: y
0
Point 3: x
1
Point 3: y
3
Centre x
1
Centre y
1.33333333
Radius
1.66666667
Standard form
(x − 1)² + (y − 4/3)² = 25/9

Checked against: h = 1 by symmetry, 9 − 6k = 1 gives k = 4/3, r² = 1 + 16/9 = 25/9

Questions

How do you find the equation of a circle through three points?

Substitute each point into the general form x² + y² + Dx + Ey + F = 0 and solve the three linear equations for D, E and F. For (−3, 4), (4, 5) and (1, −4) this gives D = −2, E = −2 and F = −23. Completing the square turns that into (x − 1)² + (y − 1)² = 25: centre (1, 1), radius 5.

How do you find the centre of a circle from three points on it?

Construct the perpendicular bisectors of two chords, such as P₁P₂ and P₂P₃; they cross at the centre, because every point on a perpendicular bisector is equally far from both ends of its chord. For a right triangle the centre is the midpoint of the hypotenuse: (0, 0), (4, 0) and (0, 3) give centre (2, 1.5) and radius 2.5.

What is the general form of the equation of a circle?

x² + y² + Dx + Ey + F = 0. The centre is (−D/2, −E/2) and the radius is √(D²/4 + E²/4 − F). For x² + y² − 2x − 2y − 23 = 0 the centre is (1, 1) and the radius √(1 + 1 + 23) = 5. If D²/4 + E²/4 − F is zero the equation describes a single point, and if it is negative, no real circle.

Why is there no circle through three points on a straight line?

A circle meets a straight line at most twice, so it cannot pass through three collinear points. In the formula, x₁(y₂ − y₃) + x₂(y₃ − y₁) + x₃(y₁ − y₂), which is twice the triangle's signed area, becomes zero and the centre would need a division by zero. Points that are nearly collinear give a very large radius.

About this calculator

h=∑(xi2+yi2)(yj−yk)2∑xi(yj−yk),k=∑(xi2+yi2)(xk−xj)2∑xi(yj−yk)(x−h)2+(y−k)2=r2\begin{gathered} h = \frac{\sum (x_i^2 + y_i^2)(y_j - y_k)}{2\sum x_i(y_j - y_k)},\quad k = \frac{\sum (x_i^2 + y_i^2)(x_k - x_j)}{2\sum x_i(y_j - y_k)} \\[6pt] (x - h)^2 + (y - k)^2 = r^2 \end{gathered}

Sources

  1. Weisstein, E. W. “Circumcircle” — MathWorld (circle through three points, determinant form)
  2. Weisstein, E. W. “Circle” — MathWorld (standard and general equations)

Checked against references

This calculator includes 4 worked examples with independently sourced answers. They run in the test suite, and you can run them here too.

Put this calculator on your site

Paste this where you want the calculator to appear. It is free to use, it stays in step with corrections made here, and the credit line below it links back so your readers can find the full version.

Height
Preview the embed

Keep the credit line. It is the only condition, and it is what keeps these calculators free.