Audited 05 Aug 2026·Last updated 28 Oct 2026·3 citations·Tier 2·0 uses

Equation Circle Diameter Endpoints Calculator

Find a circle's centre and radius from the two endpoints of a diameter, ready to write its equation as (x − h)² + (y − k)² = r² on a coordinate plane.

Equation Circle Diameter Endpoints Calculator

Circle radius
2
The circle's radius, half the distance between the two diameter endpoints, in the same units as the coordinates.
Center x
0
Center y
0

Background.

Everything you need to pin down a circle is hidden in the two ends of one of its diameters. The centre sits exactly halfway between them, and the radius is half the distance from one to the other. Once you have those two facts, the circle's equation in standard form, (x − h)² + (y − k)² = r², follows immediately.

This is one of the standard exercises in coordinate geometry because it ties together two tools taught just before it: the midpoint formula and the distance formula. Given endpoints (1, 3) and (7, −5), the midpoint is (4, −1), the endpoints are 10 units apart, and the circle is (x − 4)² + (y + 1)² = 25. The same reasoning appears outside the classroom whenever someone measures two opposite points on a round feature, such as the rim of a pipe or a bolt circle on a drawing, and needs its centre.

The condition that matters is that the two points really are opposite ends of a diameter. Any two points on a circle can be joined by a chord, and infinitely many circles of different sizes pass through the same pair of points. Only when the chord goes through the centre do the two points determine the circle on their own. If all you have is three points somewhere on the circumference, that is a different problem, solved by fitting a circle through all three.

The page returns the centre's coordinates and the radius; squaring the radius gives the right-hand side of the equation.

What is equation circle diameter endpoints calculator?

A diameter is a chord through the centre of a circle, so its endpoints lie on the circle directly opposite one another. On a coordinate plane, the centre is the midpoint of those endpoints, ((x₁ + x₂) ÷ 2, (y₁ + y₂) ÷ 2), and the radius is half the straight-line distance between them. With centre (h, k) and radius r, every point (x, y) on the circle satisfies (x − h)² + (y − k)² = r².

How to use this calculator.

  1. Enter the first endpoint's coordinates as x₁ and y₁ and the second's as x₂ and y₂. The order of the two points does not change the answer.
  2. Check that the points are the ends of a diameter, not just any two points on the circle; the page assumes the segment between them passes through the centre.
  3. Read the centre (h, k) and the radius r from the results.
  4. Write the equation as (x − h)² + (y − k)² = r². A negative coordinate turns a minus into a plus, so a centre at (4, −1) gives (y + 1)². For an exact r², use ((x₂ − x₁)² + (y₂ − y₁)²) ÷ 4 rather than squaring a rounded radius.

The formula.

Center is the endpoint midpoint; radius is half their distance

The centre is the average of the endpoints: h = (x₁ + x₂) ÷ 2 and k = (y₁ + y₂) ÷ 2. The radius is half the diameter's length, found with Pythagoras' theorem on the horizontal and vertical gaps: r = √((x₂ − x₁)² + (y₂ − y₁)²) ÷ 2. Because the gaps are squared, it makes no difference which point you call first or whether a gap is negative. If the two points coincide, the diameter has no length and no circle exists, so the page refuses identical endpoints. The radius is shown as a decimal; when the squared distance is not a perfect square, as with endpoints (0, 0) and (5, 3), r is irrational even though r² is an exact 8.5.

A worked example.

Example

Take the endpoints (−2, 0) and (2, 0), which lie on the x-axis either side of the origin. The centre is the midpoint: ((−2 + 2) ÷ 2, (0 + 0) ÷ 2) = (0, 0). The endpoints are 2 − (−2) = 4 units apart horizontally and 0 apart vertically, so the diameter is √(4² + 0²) = 4 and the radius is 4 ÷ 2 = 2. The page returns centre (0, 0) and radius 2, and the circle is x² + y² = 4. With less tidy endpoints, (1, 3) and (7, −5), the centre is (8 ÷ 2, −2 ÷ 2) = (4, −1). The gaps are 6 and −8, so the diameter is √(36 + 64) = 10 and the radius 5, giving (x − 4)² + (y + 1)² = 25.

y10
x1-2
y20
x22

Frequently asked questions.

How do I turn the result into the general form of the equation?
Expand the standard form and collect terms. For centre (4, −1) and radius 5, (x − 4)² + (y + 1)² = 25 expands to x² − 8x + 16 + y² + 2y + 1 = 25, which rearranges to x² + y² − 8x + 2y − 8 = 0.
Is there a way to write the equation directly from the endpoints?
Yes. Because any point on a circle sees a diameter at a right angle, the circle is (x − x₁)(x − x₂) + (y − y₁)(y − y₂) = 0. For (1, 3) and (7, −5) that is (x − 1)(x − 7) + (y − 3)(y + 5) = 0, which expands to the same x² + y² − 8x + 2y − 8 = 0.
Why does the radius come out as a long decimal?
The radius involves a square root, and most square roots are irrational. Endpoints (0, 0) and (5, 3) give a radius of √34 ÷ 2, about 2.9154759474. The equation only needs r², which is 34 ÷ 4 = 8.5 exactly, so compute r² from the squared gaps instead of squaring the rounded radius.
Can I use two points that are on the circle but not opposite each other?
Not with this method. Two points that are not ends of a diameter lie on infinitely many circles, so their midpoint is not the centre and half their distance is shorter than the radius. You need either a third point on the circle or some other fact, such as the centre lying on a known line.
How can I check that my equation is right?
Substitute either endpoint into it; both should satisfy the equation exactly. For (x − 4)² + (y + 1)² = 25 and the point (7, −5), the left side is 3² + (−4)² = 9 + 16 = 25. If one endpoint works and the other does not, a sign in the centre is usually wrong.

How this page was produced

Published by
Quanta Calculator
Primary sources
3 cited below
Method
Center is the endpoint midpoint; radius is half their distance
Published
Last verified

Built with AI assistance and verified by automated tests against the cited sources — every worked example on this page is computed by the same code that runs the calculator. How we build and check calculators.

In this category

Embed

Quanta Pro

Paid features are coming later.

  • All 1560 calculators remain free
  • No billing is enabled
Coming soon