Perpendicular Bisector Calculator: Find the Equation of a Dividing Line
ByMuhammad Ali•Founder of KruskalCode
16:31
7 min read

Understanding the perpendicular bisector is a key skill in geometry and coordinate geometry. It's a special line that not only cuts another line segment exactly in half but also crosses it at a perfect right angle. This concept is crucial for various mathematical problems, from finding the circumcenter of a triangle to understanding basic geometric constructions. Our Perpendicular Bisector Calculator simplifies the process, allowing you to quickly find the equation of this important line for any two given points.
Explanation
A perpendicular bisector is defined by two main properties: it passes through the midpoint of a line segment, and it is perpendicular to that segment. To find its equation, you typically follow a three-step process. First, you locate the midpoint of the segment, which is the average of the x-coordinates and the average of the y-coordinates of the two endpoints. Second, you determine the slope of the original segment. Finally, you calculate the negative reciprocal of that slope to get the slope of the perpendicular bisector. With the midpoint (a point on the bisector) and its slope, you can then use the point-slope form (y - y1 = m(x - x1)) to write the equation of the perpendicular bisector. This method ensures that the resulting line satisfies both conditions: bisection and perpendicularity.
Formula
1. **Midpoint (M):** M = ((x1 + x2) / 2, (y1 + y2) / 2) 2. **Slope of Segment (m_segment):** m_segment = (y2 - y1) / (x2 - x1) 3. **Perpendicular Slope (m_perp):** m_perp = -1 / m_segment (If m_segment is 0, m_perp is undefined; if m_segment is undefined, m_perp is 0.) 4. **Equation of Perpendicular Bisector (Point-Slope Form):** y - y_m = m_perp * (x - x_m) (where (x_m, y_m) is the midpoint)
Example
Let's work through an example to see how it all comes together. Suppose you have two points, P1(3, 1) and P2(7, 9). 1. **Find the Midpoint:** x_m = (3 + 7) / 2 = 10 / 2 = 5 y_m = (1 + 9) / 2 = 10 / 2 = 5 So, the midpoint M is (5, 5). 2. **Find the Slope of the Segment P1P2:** m_segment = (9 - 1) / (7 - 3) = 8 / 4 = 2 3. **Find the Perpendicular Slope:** m_perp = -1 / m_segment = -1 / 2 4. **Write the Equation of the Perpendicular Bisector:** Using the midpoint (5, 5) and the perpendicular slope (-1/2) in the point-slope form: y - 5 = (-1/2)(x - 5) y - 5 = -0.5x + 2.5 y = -0.5x + 7.5 Thus, the equation of the perpendicular bisector for the segment connecting (3, 1) and (7, 9) is y = -0.5x + 7.5.
How to use the related calculator
Using our Perpendicular Bisector Calculator is straightforward. Simply enter the x and y coordinates for your first point (x1, y1) and your second point (x2, y2) into the designated input fields. Once all four values are entered, the calculator will instantly display the equation of the perpendicular bisector. The result will be presented in a clear, easy-to-read format, typically as y = mx + c or x = constant / y = constant for special cases.
Try the related calculator
Open toolFAQ
What is a perpendicular bisector?
A perpendicular bisector is a line that intersects a given line segment at its midpoint and forms a 90-degree angle with it. Every point on the perpendicular bisector is equidistant from the two endpoints of the original segment.
How do I calculate a perpendicular bisector manually?
First, find the midpoint of the segment. Second, calculate the slope of the segment. Third, determine the negative reciprocal of that slope to get the perpendicular slope. Finally, use the point-slope form of a linear equation (y - y1 = m(x - x1)) with the midpoint and the perpendicular slope to find the equation of the bisector.
Can this calculator handle vertical or horizontal segments?
Yes, the calculator is designed to correctly identify and calculate the perpendicular bisector for vertical segments (resulting in a horizontal line, e.g., y = constant) and horizontal segments (resulting in a vertical line, e.g., x = constant).
Related articles

About the author
Muhammad Ali. Muhammad Ali is a full-stack developer and founder of KruskalCode. He builds SaaS platforms and automation systems with React and Laravel, and helps teams ship fast, scalable tools.
Need a custom calculator, dashboard, or automation workflow? Reach out to KruskalCode.