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

Circle Equation Calculator

Turn a circle's centre (h, k) and radius r into its equation: r² for the standard form and the constant F of the expanded general form.

Circle Equation Calculator

Right side r squared
25
The radius squared, r², which is the right-hand side of the standard form (x − h)² + (y − k)² = r².
Equivalent general-form F
-12

Background.

Every point on a circle sits the same distance from the centre, and the equation of a circle is nothing more than that sentence written with the distance formula. If the centre is (h, k) and the radius is r, a point (x, y) lies on the circle exactly when (x − h)² + (y − k)² = r². Pythagoras supplies the rest: the horizontal and vertical gaps from the centre are the legs of a right triangle whose hypotenuse is the radius.

That centre-radius version, usually called the standard form, is the one you can read at a glance. Algebra courses and graphing software also use the general form, x² + y² + Dx + Ey + F = 0, which is what you get by multiplying out the brackets. It hides the centre and radius but is easier to combine with other equations, for instance when solving for where a line crosses the circle.

Going from standard to general form is mechanical. D is −2h and E is −2k, so they come straight from the centre; F, the constant term, takes a little more work because it collects h², k² and −r² into one number. Students most often slip on signs here: a centre at k = −3 becomes (y + 3)² in the standard form and +6y in the general form.

The constant F has a useful meaning of its own. It is the value the left-hand side takes at the origin, so a negative F means the origin lies inside the circle, zero means the circle passes through it, and a positive F means the origin is outside.

What is circle equation calculator?

The equation of a circle is the condition a point (x, y) must satisfy to lie on it. In standard form, (x − h)² + (y − k)² = r², the centre (h, k) and radius r appear directly, and the right-hand side is the radius squared. Expanding gives the general form x² + y² − 2hx − 2ky + (h² + k² − r²) = 0, whose constant term F = h² + k² − r² is the second number reported here. Only real circles with a positive radius are handled.

How to use this calculator.

  1. Enter the x-coordinate of the centre as h and the y-coordinate as k, keeping their signs. A centre at (2, −3) means h = 2 and k = −3.
  2. Enter the radius r as a positive length. If you only know the diameter, halve it; if you know a point on the circle, the radius is its distance from the centre.
  3. Read r², the right-hand side of the standard form, and write (x − h)² + (y − k)² = r² with your own numbers, flipping each minus to a plus where h or k is negative.
  4. For the general form, write D = −2h and E = −2k yourself, then take F from the result: x² + y² + Dx + Ey + F = 0.

The formula.

(x-h)^2+(y-k)^2=r^2; expanded form x^2+y^2-2hx-2ky+h^2+k^2-r^2=0

The standard form (x − h)² + (y − k)² = r² is the distance formula with the distance fixed at r: the squared horizontal gap plus the squared vertical gap equals the squared radius. Expanding each bracket gives x² − 2hx + h² and y² − 2ky + k². Moving r² to the left and collecting the constants yields x² + y² − 2hx − 2ky + h² + k² − r² = 0. The two outputs are r² and F = h² + k² − r². Because h² + k² is the squared distance from the origin to the centre, F is positive whenever the centre lies further from the origin than the radius, and a circle centred at the origin always has F = −r². The coefficients of x² and y² are both 1; any equation where they differ describes an ellipse or another conic, not a circle.

A worked example.

Example

Take a circle centred at (2, −3) with radius 5. The standard form needs only r² = 5 × 5 = 25, giving (x − 2)² + (y + 3)² = 25. For the general form, the x-coefficient is −2 × 2 = −4 and the y-coefficient is −2 × (−3) = +6. The constant is F = 2² + (−3)² − 5² = 4 + 9 − 25 = −12, so the expanded equation is x² + y² − 4x + 6y − 12 = 0. A quick check: the top of the circle is (2, 2), and 4 + 4 − 8 + 12 − 12 = 0, as it should be. Because F = −12 is negative, the origin lies inside the circle, which matches its distance from the centre of about 3.606, less than the radius of 5.

center Y-3
center X2
radius5

Frequently asked questions.

How do I find the centre and radius from the general form?
Reverse the expansion. From x² + y² + Dx + Ey + F = 0, the centre is (−D/2, −E/2) and the radius squared is h² + k² − F. For x² + y² − 4x + 6y − 12 = 0 that gives the centre (2, −3) and r² = 4 + 9 + 12 = 25.
Why does a negative centre coordinate turn into a plus sign?
The standard form subtracts the centre: (y − k)². When k = −3, that becomes (y − (−3))², which is (y + 3)². The same double negative explains why the general-form coefficient −2k comes out as +6.
What happens if h² + k² − F is zero or negative?
Then the equation is not a real circle. Zero describes a single point, the centre, with radius zero; a negative value has no real points at all. This page requires a positive radius, so it never produces either case.
How do I check whether a point lies on the circle?
Substitute it into either form. In standard form the left side should equal r² exactly. In general form the left side should be zero; a negative value means the point is inside the circle and a positive value means it is outside.
Can I write the equation of a circle through three given points?
Yes, but not with this page, which starts from a known centre and radius. Substituting three points into x² + y² + Dx + Ey + F = 0 gives three linear equations in D, E and F; solving them recovers the circle.

How this page was produced

Published by
Quanta Calculator
Primary sources
3 cited below
Method
(x-h)^2+(y-k)^2=r^2; expanded form x^2+y^2-2hx-2ky+h^2+k^2-r^2=0
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