Equation of a Circle with Diameter Endpoints Calculator
Enter the coordinates of both endpoints of a diameter and this calculator instantly gives you the equation of the circle in standard form, general form, and parametric form. You also get the center coordinates, radius, diameter, area, and circumference, with a full step-by-step breakdown so you can follow every calculation.
Formula
Worked example
For diameter endpoints (1, 1) and (5, 5): center h = (1+5)/2 = 3, k = (1+5)/2 = 3. Diameter = sqrt((5-1)^2 + (5-1)^2) = sqrt(32) ~ 5.6569, so r ~ 2.8284 and r^2 = 8. Standard form: (x - 3)^2 + (y - 3)^2 = 8. General form: x^2 + y^2 - 6x - 6y + 10 = 0.
The three-step method: midpoint, distance, equation
Every "diameter endpoints to circle equation" problem uses the same three steps. First, find the center by taking the midpoint of the two endpoints: h = (x1 + x2) / 2, k = (y1 + y2) / 2. Second, find the radius by taking half the distance between the endpoints: r = (1/2) sqrt((x2 - x1)^2 + (y2 - y1)^2). Third, substitute h, k, and r^2 into the standard form of a circle equation: (x - h)^2 + (y - k)^2 = r^2. These three steps are exact and always work, even when the center falls on non-integer coordinates.
Standard form, general form, and parametric form
The standard form (x - h)^2 + (y - k)^2 = r^2 is the most readable: the center (h, k) and the radius r are visible at a glance. When h and k are zero the equation collapses to x^2 + y^2 = r^2, the simplest circle centered at the origin.
The general form x^2 + y^2 + Dx + Ey + F = 0 is obtained by expanding the standard form and collecting terms. The coefficients are D = -2h, E = -2k, and F = h^2 + k^2 - r^2. This form is useful in algebra and analytic geometry when you need to combine or compare circle equations.
The parametric form x = h + r cos(t), y = k + r sin(t) traces every point on the circle as t runs from 0 to 2pi. It is the natural form for computer graphics, animation paths, and any application where you need the coordinates of a specific point on the circumference.
How to check your answer
Substitute either of the original diameter endpoints into your standard-form equation. The left-hand side must equal r^2. For example, with center (3, 3) and r^2 = 8, plugging in endpoint (1, 1) gives (1 - 3)^2 + (1 - 3)^2 = 4 + 4 = 8. Correct. You can also verify the general form by substituting both endpoints and confirming both give zero. If you are working by hand, carry enough decimal places in the radius to avoid rounding errors that make the check fail by a small amount.
Common mistakes and how to avoid them
- Writing r instead of r^2 on the right-hand side. The standard form is (x - h)^2 + (y - k)^2 = r^2, not = r. Always square the radius before writing the equation.
- Sign errors in the center coordinates. If the center is (3, -2), the equation is (x - 3)^2 + (y + 2)^2 = r^2, not (x + 3)^2. The sign inside the parentheses is the opposite of the center coordinate.
- Using the full diameter instead of the radius. The distance formula gives you the diameter. Halve it before squaring.
- Rounding the radius before squaring. Round only the final answer. If you round r to two decimal places and then square, your r^2 may be noticeably off. Square the exact value first.
Circle equations at a glance
| Form | Equation | Best use |
|---|---|---|
| Standard form | (x - h)² + (y - k)² = r² | Reading center and radius directly |
| General form | x² + y² + Dx + Ey + F = 0 | Algebraic manipulation and completing the square |
| Parametric form | x = h + r cos(t), y = k + r sin(t) | Plotting points and computer graphics |
| Origin-centered | x² + y² = r² | Special case when center is (0, 0) |
The three standard forms of a circle equation and when each one is most useful.
Frequently asked questions
How do you find the equation of a circle given two endpoints of a diameter?
Find the midpoint of the two endpoints to get the center (h, k). Then use the distance formula to find the full diameter length and halve it to get the radius r. Finally substitute into the standard form: (x - h)^2 + (y - k)^2 = r^2. This calculator does all three steps automatically and shows the work.
What is the difference between standard form and general form of a circle?
Standard form (x - h)^2 + (y - k)^2 = r^2 shows the center and radius explicitly, making it easy to read. General form x^2 + y^2 + Dx + Ey + F = 0 is the expanded version with all terms on one side. To convert general form back to standard form, complete the square on the x-terms and the y-terms separately.
Can the diameter endpoints be the same point?
No. If both endpoints are identical, the "diameter" has zero length and the "circle" collapses to a single point, which has no equation in the usual sense. The calculator returns no result in that case. A valid circle requires two distinct endpoint coordinates.
Why does the right-hand side of the standard form use r^2 and not r?
The equation comes from the distance formula: every point (x, y) on the circle is exactly r units from the center (h, k). Squaring both sides of that distance condition gives (x - h)^2 + (y - k)^2 = r^2. The squaring removes the square root and produces the clean polynomial form.
How do I convert the general form back to standard form?
Complete the square twice. Group the x-terms and y-terms: (x^2 + Dx) + (y^2 + Ey) = -F. For x^2 + Dx, add (D/2)^2 to both sides. For y^2 + Ey, add (E/2)^2 to both sides. The left side then factors as (x + D/2)^2 + (y + E/2)^2, giving you the center (-D/2, -E/2) and radius sqrt(-D^2/4 - E^2/4 - F).
What is the parametric form of a circle and when is it used?
The parametric form x = h + r cos(t), y = k + r sin(t) gives the (x, y) coordinates of every point on the circle as the parameter t sweeps from 0 to 2pi radians (360 degrees). It is most useful in computer graphics, animations, and calculus problems where you need to parameterize a path along the circle rather than just test whether a point satisfies an equation.