Circle Equation & Tangent Line Calculator (xy-Plane)

Circle Equation & Tangent Line Calculator (xy-Plane) (x − a)² + (y − b)² = R²

Find the center I and radius R from an equation, write the equation of a circle (C) from its center and a point or from a diameter AB, and write the tangent line at a point M_0. Step-by-step KaTeX solutions with a graph on the Oxy plane.

Convention: the equation has the form x^2 + y^2 + Dx + Ey + F = 0 (the coefficients of x^2 and y^2 both equal 1). Enter D, E, F with their signs, e.g. x^2 + y^2 - 4x + 6y - 3 = 0 gives D = -4, E = 6, F = -3. Compared with x^2 + y^2 - 2ax - 2by + c = 0: D = -2a, E = -2b, F = c.

Examples (click to solve and draw instantly):

🎯 Circle Equations in xy-Plane Quiz (5 Questions - 10-Point Scale)

1️⃣ Center & radius from the standard equation Question 1: The circle (C): (x + 2)^2 + (y - 3)^2 = 16 has center I and radius R:

2️⃣ Center & radius from the expanded equation Question 2: Given the circle (C): x^2 + y^2 - 6x + 4y - 12 = 0. The radius R of (C) equals:

3️⃣ Condition for a circle to exist Question 3: The equation x^2 + y^2 - 2mx + 4y + 8 = 0 represents a circle if and only if:

4️⃣ Circle with diameter AB Question 4: The equation of the circle with diameter AB, where A(1, 1) and B(5, 3), is:

5️⃣ Tangent line to a circle Question 5: The tangent line to the circle (C): (x - 1)^2 + (y + 2)^2 = 25 at the point M(4, 2) is:

Your score: 0.0 / 10 points (each correct answer earns 2.0 points)

The calculator above solves three kinds of circle problems in the Oxy plane: finding the center I and radius R from an equation, writing the equation of a circle (C) from its center and a point or from a diameter AB, and writing the tangent line at a point M0. Every problem is solved step by step in KaTeX with a drawing on the coordinate plane. Press one of the 4 Examples buttons to see the result instantly.

📐 Key formulas

TopicFormula
Standard equation(x − a)² + (y − b)² = R², center I(a, b), radius R
Expanded equationx² + y² − 2ax − 2by + c = 0
Existence conditionR = √(a² + b² − c)
Diameter ABI is the midpoint of AB, R = AB/2
Tangent at M0(x0, y0) ∈ (C)(x0 − a)(x − x0) + (y0 − b)(y − y0) = 0

💡 Worked examples

Example 1. x² + y² − 4x + 6y − 3 = 0

I(1, −2), through M(4, 2)
R = 5

Example 3. Diameter A(−1, 2), B(3, 4)

I(1, 3), R² = 5

Example 4. Tangent to x² + y² = 25 at M0(3, 4)

3x + 4y − 25 = 0

⚠️ Common mistakes

  1. Reading the signs of the center backwards: (x + 2)² means a = −2, not a = 2.
  2. Forgetting the sign of the constant in R = √(a² + b² − c).
  3. Skipping the condition 0 we only get a point, if it is negative there are no points.
  4. Confusing the radius with the diameter for diameter AB: R = AB/2.
  5. Using the wrong normal vector for the tangent: it must be IM0, not the coordinates of M0.

❓ Frequently asked questions (FAQ)

What is the equation of a circle with center I(a, b) and radius R?

The standard equation is (x − a)² + (y − b)² = R². Expanding gives x² + y² − 2ax − 2by + c = 0 with c = a² + b² − R².

When is x² + y² − 2ax − 2by + c = 0 the equation of a circle?

When a² + b² − c > 0. Then the center is I(a, b) and the radius is R = √(a² + b² − c). If a² + b² − c = 0 it is a single point, and if it is negative no point satisfies the equation.

How do I write the equation of the circle with diameter AB?

The center I is the midpoint of AB and the radius is R = AB/2 (so R² = AB²/4). Then write (x − xI)² + (y − yI)² = R².

How do I write the tangent line to a circle at a point M0?

First check that M0 lies on the circle. The tangent passes through M0 with normal vector IM0: (x0 − a)(x − x0) + (y0 − b)(y − y0) = 0, then simplify to the form Ax + By + C = 0.

Does the calculator accept fractions and decimals?

Yes. Coefficients and coordinates may be integers, decimals (0.5 or 0,5) or fractions such as 1/2. Irrational radii are written with radicals.