Circle Equation From Diameter Endpoints Calculator
Test cases replayed : 2 of 2 match · Methodology · No outside source listed
Enter the two endpoints of a diameter of the circle.
Result
Center x: h = (x₁ + x₂) ÷ 2
Center y: k = (y₁ + y₂) ÷ 2
- r² in (x − h)² + (y − k)² = r²
- Radius r = half the distance between the endpoints
- General form: D = −2h
- General form: E = −2k
- General form: F = h² + k² − r²
Estimate for planning only, not tax, legal, financial or medical advice. This calculator uses the method explained on this page.
This browser did not allow copying. The sentence is in the box below, already selected: copy it with your keyboard or the menu.
How to use this calculator
Fill in the fields in this order; each step takes you to its field.
- Endpoint 1: x₁: enter a number.
- Endpoint 1: y₁: enter a number.
- Endpoint 2: x₂: enter a number.
- Endpoint 2: y₂: enter a number.
- Read the result: Center x: h = (x₁ + x₂) ÷ 2; the panel also shows Center y: k = (y₁ + y₂) ÷ 2, Radius r = half the distance between the endpoints, r² in (x − h)² + (y − k)² = r², General form: D = −2h, General form: E = −2k and General form: F = h² + k² − r².
How this calculator works
The center of a circle is the midpoint of any diameter: h = (x₁ + x₂) ÷ 2, k = (y₁ + y₂) ÷ 2. The radius is half the length of the diameter, r = √((x₂ − x₁)² + (y₂ − y₁)²) ÷ 2. Standard form: (x − h)² + (y − k)² = r².
Expanding gives the general form x² + y² + Dx + Ey + F = 0 with D = −2h, E = −2k and F = h² + k² − r² (which also equals x₁x₂ + y₁y₂).
The formula
| Symbol | Meaning |
|---|---|
| Endpoint 1: x₁ | |
| Endpoint 2: x₂ | |
| Center x: h = (x₁ + x₂) ÷ 2 |
Worked example
| Endpoint 1: x₁ | -1 |
|---|---|
| Endpoint 1: y₁ | 2 |
| Endpoint 2: x₂ | 5 |
| Endpoint 2: y₂ | 10 |
| Center y: k = (y₁ + y₂) ÷ 2 | 6 |
|---|---|
| Radius r = half the distance between the endpoints | 5 |
| r² in (x − h)² + (y − k)² = r² | 25 |
| General form: D = −2h | -4 |
| General form: E = −2k | -12 |
| General form: F = h² + k² − r² | 15 |
Center x: h = (x₁ + x₂) ÷ 2 2
Each step uses the unrounded value of the step before it; figures on this page are rounded for display.
Frequently asked questions
What is the circle with diameter endpoints (−1, 2) and (5, 10)?
Center (2, 6) and radius 5: (x − 2)² + (y − 6)² = 25, or x² + y² − 4x − 12y + 15 = 0.
And with endpoints (0, 0) and (4, 0)?
Center (2, 0), radius 2: (x − 2)² + y² = 4, or x² + y² − 4x = 0.