Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Simple question. I tried Google but I don't know what search keywords to use.

I have two points on a $2D$ plane. Point 1 $=(x_1, y_1)$ and Point 2 $=(x_2, y_2)$.


I'd like to draw a circle around Point 1, and the radius of the circle should be so that it intersects exactly with Point 2.


What is the equation to determine the required radius?

share|cite|improve this question
up vote 6 down vote accepted

Let's call the center of the circle: $P_1 = (x_1, y_1).\;$

Let $ P_2 = (x_2, y_2)$ be a point on circle. Then:

$r$: radius of the circle = distance between points $P_1$ and $P_2$, where

$$r = \sqrt{(x_2 - x_1)^2 + (y_2-y_1)^2}$$

Any point $(x_i, y_i)$ satisfying the equation $(x_i - x_1)^2 + (y_i - y_1)^2 = r^2$ also lies on this circle.

share|cite|improve this answer

The radius is simply the distance between the two points. So use the standard Euclidean distance which you should have learned.

share|cite|improve this answer

If $P_1(x_1,y_1)$ is the center, the radius will be $\sqrt{(x_2-x_1)^2+(y_2-y_1)^2}$

share|cite|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.