A circle equation calculator writes the equation of a circle in standard form and in general form, and finds its center and radius. You can start from the center and the radius, from a general equation, from three points on the circle, or from the two end points of a diameter. It uses the standard relations of coordinate geometry and the page on the circumscribed circle, and it works in your browser. It covers the circle center, the circle formula, the general to standard form conversion and the equation from the endpoints of a diameter.
How to use the circle equation calculator
- Choose what you know: the center and radius, the general form, three points, or the ends of a diameter.
- Fill in the boxes that appear.
- Press Find the equation.
- Read the standard form, the general form, the center, the radius, the diameter, the circumference and the area.
Standard form
The standard form of the equation of a circle with center (h, k) and radius r is (x − h)² + (y − k)² = r². It says that every point (x, y) of the circle is at the distance r from the center. For a center at (2, −3) and a radius of 4, the equation is (x − 2)² + (y + 3)² = 16. A circle with its center at the origin has the simple form x² + y² = r².
General form
If you multiply out the standard form, you get the general form x² + y² + Dx + Ey + F = 0, where D is −2h, E is −2k and F is h² + k² − r². For the example above, D is −4, E is 6 and F is −3, so the general equation is x² + y² − 4x + 6y − 3 = 0. The Wikipedia page on the circle does not write the general form with these letters, so the relations in this paragraph are standard algebra, not a quote.
From general form to standard form
To go back, you complete the square, which gives the center as (−D/2, −E/2) and the radius squared as D²/4 plus E²/4 minus F. If this number is not above zero, the equation does not describe a circle: it is a single point or has no real points, and the calculator says so. For the equation x² + y² − 4x + 6y − 3 = 0, the center is (2, −3) and the radius squared is 4 + 9 + 3, which is 16, so the radius is 4.
The circle through three points
If three points do not lie on a line, there is exactly one circle that passes through them. It is the circumscribed circle of the triangle that they form, which Wikipedia says always exists for a triangle. The center is the point that is at the same distance from the three points, and the calculator finds it by solving the equations for equal distances. For the points (0, 0), (4, 0) and (0, 4), the center is (2, 2) and the radius squared is 8, so the equation is (x − 2)² + (y − 2)² = 8. If the three points are on a line, no circle exists, and you get a message.
The circle from the ends of a diameter
If you know the two end points of a diameter, the center is the midpoint of the two points, and the radius is half the distance between them. For the points (−1, 2) and (5, 2), the center is (2, 2) and the radius is 3, so the general equation is x² + y² − 4x − 4y − 1 = 0. This is useful for problems in which a circle is defined by a segment as its diameter.
Using the result
With the equation you can check whether a point is on the circle by putting its coordinates in the equation. A point is inside the circle if the left side of the standard form is smaller than r squared, and outside if it is larger. The calculator also gives the diameter, the circumference and the area, which are found with the circle calculator on this site.
Worked examples
Take a circle with center (3, 1) and radius 2. The standard form is (x − 3)² + (y − 1)² = 4, and the general form is x² + y² − 6x − 2y + 6 = 0, since D is −6, E is −2 and F is 9 plus 1 minus 4, which is 6. Now start from x² + y² + 6x − 8y = 0. Here D is 6, E is −8 and F is 0, so the center is (−3, 4) and the radius squared is 9 plus 16, which is 25, so the radius is 5. This is the circle that passes through the origin, since F is 0.
Tangent lines and other questions
With the center and the radius, many questions become simple. The tangent line at a point of the circle is perpendicular to the radius to that point, and the distance from a point to the center tells you whether it is inside the circle. For these questions, use the slope calculator on this site together with the result of this calculator.
Common mistakes
- Getting the signs of the center wrong. (x + 3) means that h is −3.
- Forgetting to square the radius. The right side is r², not r.
- Using three points on a line. No circle fits them.
- Leaving the x² and y² coefficients different from 1. Divide by them first.
What next
Use this often? Add Circle Equat to your Home screen.
Frequently asked questions
What is a circle equation calculator?
A tool that writes the equation of a circle in standard and general form and finds its center and radius, from the data that you have.
What is the standard form of a circle?
(x − h)² + (y − k)² = r², where (h, k) is the center and r is the radius.
How do you convert the general form to the standard form?
Complete the square: the center is (−D/2, −E/2) and r² = D²/4 + E²/4 − F.
How do you find a circle through three points?
The center is the point at equal distance from all three, and the radius is that distance. The points must not be on one line.
How do you find the circle from the ends of a diameter?
The center is the midpoint of the two points, and the radius is half the distance between them.
Was this tool helpful?
What went wrong?
We only receive the reason you pick, never what you typed into the tool.
Thanks for your feedback.