← Circle Calculators /

Equation of a Circle Calculator

Write the equation of a circle from its center and radius, three points or a diameter, or convert general form to standard form to find the center and radius.

Reviewed by Geometry Calculator, Geometry Calculator Developer & Online Math Educator Last updated November 23, 2026

Equation of a Circle Calculator

ℹ Choose what you know. General form means x² + y² + Dx + Ey + F = 0 — for x² + y² − 4x + 6y − 3 = 0 enter D = −4, E = 6, F = −3.

Formulas Used in Equation of a Circle Calculator

(x − h)² + (y − k)² = r²
Standard form → General form: x² + y² + Dx + Ey + F = 0

In-Depth Tutorial: Equation of a Circle Calculator

The Circle Analytic Geometry Calculator works with the algebraic equation of a circle on the Cartesian plane — not just its area and circumference, but where it sits, what its center and radius are, and how to express it in different equivalent forms. This tutorial covers the standard form (center–radius form), the general form, how to convert between them by completing the square, and how to recover the equation from given points.

The standard form of a circle

A circle with center (h, k) and radius r has the equation:

(x − h)² + (y − k)² = r²

This is called the standard form or center–radius form. The intuition: a point (x, y) is on the circle if and only if its distance from the center (h, k) equals r. By the distance formula, that distance is √((x − h)² + (y − k)²). Setting that distance equal to r and squaring both sides gives the standard form above.

Reading the equation:

  • The signs flip: (x − h) means the center has x-coordinate +h, not −h. So (x − 3)² + (y − 5)² = 16 has center (3, 5), not (−3, −5).
  • The right side is r², not r. The radius of (x − 3)² + (y − 5)² = 16 is √16 = 4.

Example — Build a standard-form equation

Given: center (2, −3), radius 5. Equation: (x − 2)² + (y − (−3))² = 5², which simplifies to (x − 2)² + (y + 3)² = 25.

The general form of a circle

If you expand the standard form (x − h)² + (y − k)² = r² and rearrange:

x² − 2hx + h² + y² − 2ky + k² = r²

x² + y² + (−2h)x + (−2k)y + (h² + k² − r²) = 0

Letting D = −2h, E = −2k, F = h² + k² − r², the equation becomes:

x² + y² + Dx + Ey + F = 0

This is the general form. Given D, E, F, you can recover the center and radius:

  • h = −D/2
  • k = −E/2
  • r = √((D/2)² + (E/2)² − F) = √(D² + E² − 4F)/2

The radius formula requires the value under the square root to be positive: D² + E² > 4F. If it is exactly zero, the "circle" is a single point (degenerate). If it is negative, the equation has no real solution (an "imaginary circle").

Converting standard ↔ general

Standard → General: expand the squares and collect like terms.

Example: (x − 1)² + (y + 2)² = 9 → x² − 2x + 1 + y² + 4y + 4 = 9 → x² + y² − 2x + 4y − 4 = 0. So D = −2, E = 4, F = −4.

General → Standard: complete the square on x and y separately.

Example: x² + y² + 6x − 8y + 9 = 0.

  • Group x and y terms: (x² + 6x) + (y² − 8y) = −9
  • Complete the square: take half the coefficient, square it, add to both sides. Half of 6 is 3, 3² = 9. Half of −8 is −4, (−4)² = 16.
  • (x² + 6x + 9) + (y² − 8y + 16) = −9 + 9 + 16
  • (x + 3)² + (y − 4)² = 16

So this circle has center (−3, 4) and radius √16 = 4.

Finding the equation from given points

Case 1 — Center + a point on the circle. Given center (h, k) and any one point (x₀, y₀) on the circle, the radius is the distance from the center to that point: r = √((x₀ − h)² + (y₀ − k)²). Plug into standard form.

Case 2 — Three points on the circle. Any three non-collinear points determine a unique circle. Plug each point into the general form to get three equations in D, E, F:

x₁² + y₁² + Dx₁ + Ey₁ + F = 0
x₂² + y₂² + Dx₂ + Ey₂ + F = 0
x₃² + y₃² + Dx₃ + Ey₃ + F = 0

Three linear equations in three unknowns. Solve by elimination, substitution, or Cramer's rule. The AI Solve button on this calculator can walk through this for you — describe the three points and the AI sets up the system and solves it step-by-step.

Case 3 — Two endpoints of a diameter. The center is the midpoint of the two endpoints (use the midpoint formula), and the radius is half the distance between them.

What can go wrong

  • Three collinear points do not define a circle — they define a line. The system of equations will be inconsistent or singular.
  • Three identical points are not three points — they define infinitely many circles passing through that point.
  • D² + E² < 4F in general form: no real circle exists. The equation has the algebraic form of a circle but no real (x, y) satisfies it.

Geometric meaning of the equation

The standard form makes immediate geometric sense: every circle is the set of points at a fixed distance from a fixed center. The general form is the same set of points written differently — algebraically convenient for some calculations (especially when you have a system that mixes circles and lines), geometrically opaque.

Two facts to internalize:

  • The coefficient of x² and y² must be equal (and nonzero) for the equation to describe a circle. If they differ, you may have an ellipse, hyperbola, or parabola instead.
  • There is no xy cross term in a circle equation. An xy term tilts the conic — you may have a rotated ellipse.

Common mistakes

  • Sign flip on center. (x − 3)² means h = +3, not −3. Reading the standard form requires negating what is next to x and y.
  • Forgetting to square-root the right side. If the equation says = 49, the radius is 7, not 49.
  • Completing the square only halfway. You must (a) take half the coefficient, (b) square it, (c) add to both sides. Skipping step (c) breaks the equation.
  • Treating the general form like a standard form. x² + y² + 4x − 6y = 12 is NOT (x + 4)² + (y − 6)² = 12. You have to complete the square first to extract the center.

Frequently Asked Questions – Equation of a Circle Calculator

(x − h)² + (y − k)² = r², where (h, k) is the center and r is the radius. The calculator converts between standard and general form (x² + y² + Dx + Ey + F = 0) automatically.

x² + y² + Dx + Ey + F = 0. From this form, the center is (−D/2, −E/2) and the radius is √(D²/4 + E²/4 − F).

Use the AI Solve feature — describe the three coordinate points and the AI sets up and solves the resulting system of equations.

Complete the square. For x² + y² + Dx + Ey + F = 0 the center is (−D/2, −E/2) and r² = (D/2)² + (E/2)² − F. Example: x² + y² − 4x + 6y − 3 = 0 gives center (2, −3) and r² = 4 + 9 + 3 = 16, so r = 4.

The center is the midpoint of the diameter and the radius is half its length. For endpoints (−1, 2) and (5, 10): center (2, 6), radius 5, so (x − 2)² + (y − 6)² = 25.

Then the equation is not a real circle: r² = 0 describes a single point (the center), and r² < 0 has no points at all. The calculator flags both cases.

Yes — free and unlimited. AI Solve uses 3 credits.

The parametric form is a third way to write the same circle

The standard form (x − h)² + (y − k)² = r² and the general form x² + y² + Dx + Ey + F = 0 are both implicit equations — they describe the circle as the set of points that satisfy a relationship. The third common representation is the parametric form:

x = h + r · cos(θ)
y = k + r · sin(θ)

As θ ranges from 0 to 2π (or equivalently 0° to 360°), the point (x, y) traces the entire circle. Each θ corresponds to one point; the circle's identity as a closed curve emerges from the periodicity of sine and cosine. At θ = 0 you're at the rightmost point of the circle; at θ = π/2 the topmost; at θ = π the leftmost; at θ = 3π/2 the bottom.

Parametric form is the natural representation for animation, integration, and tangent computation. To animate a point moving around a circle, increment θ smoothly with time — no need to solve any equation. To integrate around the boundary of a circle (arc length, circulation, flux), the parametrization directly gives you the substitution ds = r · dθ. To find the tangent line at a point, differentiate: dx/dθ = −r · sin(θ), dy/dθ = r · cos(θ), so the tangent direction at parameter θ is (−sin(θ), cos(θ)) — rotated 90° from the radial direction, as geometric intuition suggests.

Computer graphics engines use parametric form for rendering circles as sequences of vertices: pick N equally spaced θ values, compute N corresponding (x, y) points, connect them with lines to draw a polygonal approximation of the circle. For N = 60, the polygon looks smooth to the eye at typical display resolutions. This is how vector graphics libraries (SVG, PostScript) and 3D game engines actually render circles on-screen — the implicit form isn't drawable directly, so it gets converted to parametric for rendering.

The circle equation as a signed distance function

In computer graphics, computational geometry, and computer vision, the standard-form circle equation is often reinterpreted as a signed distance function — a function that returns not just "is this point on the circle" but "how far is this point from the circle, with a sign for inside/outside." For a circle at (h, k) with radius r, the signed distance function is:

SDF(x, y) = √((x − h)² + (y − k)²) − r

This function is negative for points inside the circle, zero for points exactly on the circle, and positive for points outside. The value's magnitude equals the actual distance to the nearest point on the circle. So SDF(0, 0) = −3 for a circle at origin with radius 5 means "the point (0,0) is 3 units inside the circle."

Signed distance functions are the backbone of modern real-time rendering. Ray-marching graphics engines (used in shader art, medical visualization, and some games) render implicit shapes by stepping a virtual ray forward through space in increments equal to the current SDF value — guaranteeing they never step through a surface. Constructive solid geometry (CSG) operations combine shapes: the union of two circles is min(SDF₁, SDF₂); their intersection is max(SDF₁, SDF₂); their difference is max(SDF₁, −SDF₂). Every one of these operations turns the standard circle equation into a computational primitive.

For 3D shapes, the same idea extends to sphere SDFs and combinations. A single formula SDF(x, y, z) = √((x−h)² + (y−k)² + (z−l)²) − r defines a sphere; combining sphere SDFs with cube SDFs and cylinder SDFs (each analogous formulas) gives an entire modeling language for complex 3D shapes — the technique behind the visually striking "raymarched" shaders on ShaderToy and inside real-time visualization tools.

Circle equation questions the tutorial doesn't address

What's the polar equation of a circle?

A circle centered at the origin with radius r has the trivial polar equation ρ = r — the radial distance ρ is constant regardless of angle. For a circle not centered at the origin, the polar equation is messier. A circle of radius r centered at the point with polar coordinates (d, φ) has equation ρ² − 2dρ·cos(θ − φ) + d² − r² = 0, which can be solved for ρ as a quadratic. The special case of a circle of radius r passing through the origin (centered at distance r from origin) reduces to the elegant ρ = 2r·cos(θ − φ). Polar forms are useful for circles in coordinate systems naturally aligned with a central point — orbital mechanics, radar sweeps, radially symmetric optics.

How do I find where a line intersects a circle?

Substitute the line equation into the circle equation. If the line is y = mx + b, plug it into (x − h)² + (y − k)² = r² to get (x − h)² + (mx + b − k)² = r². Expanding gives a quadratic in x alone: Ax² + Bx + C = 0 for specific coefficients. The discriminant B² − 4AC tells you the number of intersections: positive means two (the line is a chord), zero means one (the line is tangent), negative means none (the line misses the circle). Once you solve the quadratic, plug each x value back into the line equation to get the corresponding y. This is the standard method for computing ray-circle intersections in ray tracing, collision detection for circular objects, and geometry proofs involving tangent lines.

Why is a circle called a "conic section"?

Because it's the shape you get when you slice a cone with a plane in a specific way. Take a right circular cone (like an ice cream cone extended infinitely both directions). Cut it with a plane perpendicular to the cone's axis, and the cross-section is a circle. Tilt the plane slightly and you get an ellipse. Tilt it further so it's parallel to one side of the cone and you get a parabola. Tilt more and you get a hyperbola. The four shapes — circle, ellipse, parabola, hyperbola — are called conic sections because they're all cross-sections of the same cone at different plane angles. The circle is the special case of an ellipse where both "radii" are equal. Apollonius of Perga systematically studied all four in the 3rd century BCE, and his classification survives essentially unchanged in modern algebra and physics.

Can I have a "circle" with negative radius?

Not as a real geometric figure — a radius represents a distance, which is always non-negative. The standard form equation (x − h)² + (y − k)² = r² depends only on r², so negative r would give the same equation as its positive counterpart — the algebra doesn't distinguish. Some mathematical contexts do use "signed circles" with a chosen orientation (clockwise vs counterclockwise traversal) or signed radii in projective geometry, but these are conventions layered on top of the real-radius geometric object rather than fundamentally different figures. In the calculator, negative-radius input either returns an error or is silently converted to positive absolute value. For an equation like r² = −4, no real circle exists at all — the equation describes an "imaginary" circle in complex projective geometry, which has algebraic properties but no real (x, y) solutions.