Perpendicular Line Equation Calculator
Use this calculator to find the equation of a line that is perpendicular to a given line and passes through a specific point. Perpendicular lines intersect at a 90-degree angle, and their slopes are negative reciprocals of each other (unless one is horizontal and the other is vertical).
Understanding Perpendicular Lines
Two lines are considered perpendicular if they intersect at a right (90-degree) angle. This geometric relationship has a direct mathematical translation in terms of their slopes.
The Relationship Between Slopes
For any two non-vertical, non-horizontal perpendicular lines, the product of their slopes is -1. This means if the slope of one line is m₁, the slope of a line perpendicular to it, m₂, will be its negative reciprocal:
m₂ = -1 / m₁
There are special cases:
- If the given line is horizontal (slope
m₁ = 0), the perpendicular line will be vertical. A vertical line has an undefined slope and its equation is of the formx = constant. - If the given line is vertical (undefined slope), the perpendicular line will be horizontal. A horizontal line has a slope of
0and its equation is of the formy = constant.
Finding the Equation of a Perpendicular Line
To find the equation of a line, you typically need two pieces of information: its slope and a point it passes through. If you have the slope of a given line and a point that the perpendicular line passes through, you can follow these steps:
- Determine the slope of the perpendicular line (m₂):
- If the given line's slope (m₁) is 0, the perpendicular line is vertical, and its equation will be
x = x₁(where x₁ is the x-coordinate of the given point). - Otherwise, calculate
m₂ = -1 / m₁.
- If the given line's slope (m₁) is 0, the perpendicular line is vertical, and its equation will be
- Use the point-slope form: The point-slope form of a linear equation is
y - y₁ = m₂(x - x₁), where(x₁, y₁)is the point the perpendicular line passes through. - Convert to slope-intercept form (y = mx + b): Rearrange the point-slope equation to solve for
y, which will give you the equation in the familiary = m₂x + bformat, wherebis the y-intercept. The y-interceptbcan be found usingb = y₁ - m₂x₁.
Example Calculation:
Let's say the given line has a slope of 2, and the perpendicular line passes through the point (4, 3).
- Given slope (m₁):
2 - Point (x₁, y₁):
(4, 3) - Calculate perpendicular slope (m₂):
m₂ = -1 / 2 = -0.5 - Calculate y-intercept (b): Using
b = y₁ - m₂x₁b = 3 - (-0.5 * 4)b = 3 - (-2)b = 3 + 2b = 5 - Equation of the perpendicular line:
y = -0.5x + 5
If the given line had a slope of 0 and the perpendicular line passed through (5, -2):
- Given slope (m₁):
0 - Point (x₁, y₁):
(5, -2) - Since
m₁ = 0, the perpendicular line is vertical. - Equation of the perpendicular line:
x = 5
How to Use the Calculator:
Simply enter the slope of your initial line in the "Slope of the Given Line (m₁)" field. Then, input the X and Y coordinates of the point that your desired perpendicular line should pass through. Click "Calculate Perpendicular Line" to see its equation.