Last updated: August 5, 2026
Perpendicular Line Calculator
Creators
Dharmendra SinghReviewers

Creators
Dharmendra SinghReviewers
Quick Answer
A line perpendicular to slope m has slope −1/m whenever the original line is neither vertical nor horizontal. This calculator applies that rule, uses the given point to build the new equation, and handles the special case where a horizontal line leads to a vertical perpendicular line. It returns the perpendicular slope, intercept information, and equation formats for quick graphing or proof work.
To get a perpendicular line, take the negative reciprocal of the original slope and pass the new line through the given point.
Key Takeaways
- Perpendicular slopes are negative reciprocals when both lines have finite slope.
- Point-slope form is the safest starting equation form.
- Horizontal and vertical lines need special-case handling.
- A slope product of −1 confirms perpendicularity for finite slopes.
- Equation form matters because vertical lines cannot use y = mx + b.
Creators
Dharmendra SinghReviewers

Creators
Dharmendra SinghReviewers
Formula
For nonzero slope m, the perpendicular slope is −1/m and the line through (x0, y0) is y − y0 = (−1/m)(x − x0)
Where:
- m=original line slope
- m⊥=perpendicular slope
- (x0,y0)=point on perpendicular line
- b=y-intercept
Worked Examples
Nonzero original slope
Original slope is 2 and the line must pass through (3, -1).
- 1Perpendicular slope = -1/2 = -0.5.
- 2Use point-slope form: y + 1 = -0.5(x − 3).
- 3Simplify to y = -0.5x + 0.5.
Horizontal original line
Original slope is 0 and the perpendicular passes through (4, 7).
- 1A horizontal line has slope 0.
- 2Its perpendicular is vertical.
- 3The resulting equation is x = 4.
Negative original slope
Original slope is -3 through point (1, 5).
- 1Perpendicular slope = 1/3.
- 2Use y − 5 = (1/3)(x − 1).
- 3Simplify to y = (1/3)x + 14/3.
Introduction
Perpendicular lines meet at right angles, so their slopes are linked by a simple but powerful rule: for a nonzero slope m, the perpendicular slope is −1/m. This calculator uses that negative-reciprocal relationship, builds the new line through a specified point, and returns the equation in readable forms. It is helpful in analytic geometry, graphing problems, engineering layouts, and any setting where a right-angle constraint must be translated into an equation.
Why the negative reciprocal matters
On the coordinate plane, perpendicularity is encoded in the slope relationship m1 · m2 = −1 for non-vertical, non-horizontal lines. That means once you know one slope, the other is determined. This rule is one of the cleanest examples of how geometry and algebra reinforce each other: a 90-degree angle becomes an equation about rates of change.
Using point-slope form first
After finding the perpendicular slope, the safest next step is point-slope form: y − y0 = m(x − x0). This avoids sign mistakes because the given point is used directly. Only after the structure is correct should you expand or simplify into slope-intercept or standard form. The calculator follows this same logical order, even if the final result is displayed in a different form.
Horizontal and vertical special cases
If the original slope is 0, the starting line is horizontal and every perpendicular line is vertical. Vertical lines do not have a finite slope or y-intercept, so the result must be written as x = constant. This is why the negative reciprocal rule is usually stated for nonzero finite slopes only; special cases need geometric interpretation rather than blind inversion.
Worked example
Given original slope 2 and point (3, −1), the perpendicular slope is −1/2. Plugging into point-slope form gives y + 1 = −1/2(x − 3). Expanding yields y = −0.5x + 0.5. This line rises one unit for every two units moved left, which is the exact opposite reciprocal direction needed for a right angle against slope 2.
How to check the answer
Multiply the original slope by the perpendicular slope whenever both are finite. The product should be −1, confirming the lines are perpendicular. If one line is horizontal and the other is vertical, think in geometric terms instead: one is parallel to the x-axis and the other is parallel to the y-axis, so they still meet at a right angle even though one slope is undefined.
Common errors
A frequent mistake is taking only the reciprocal or only the negative instead of the full negative reciprocal. Another is plugging the point into y = mx + b incorrectly and getting the wrong intercept. When the original slope is zero, many students still try to compute −1/0 numerically instead of switching to the vertical-line interpretation.
Applications
Perpendicular line equations are used in road design, robotics path planning, graphics, construction layout, and proof writing. In geometry courses, they are central to altitudes, perpendicular bisectors, and shortest-distance arguments. In design tools, a right-angle constraint is often implemented exactly through the same slope rule used here.
Connections to other geometry topics
Perpendicular lines connect directly to triangle altitudes, rectangle edges, tangent-radius relationships, and distance-minimization problems. Once you can produce the equation of a perpendicular line quickly, many larger coordinate-geometry problems become easier because a critical construction step has already been solved.
Quick Reference Card
Perpendicular line cheat sheet
Quick reference • Perpendicular Line Calculator
Perpendicular slope = −1 / original slopeValid range: Finite original slope and any finite point; slope 0 leads to a vertical line
Common Values
⚠ Watch Out
- •Do not forget both parts of the negative reciprocal.
- •Vertical lines do not have finite slope or y-intercept.
- •Plug the point into point-slope form before simplifying.
- •Check signs carefully when solving for the intercept.
Pro Tips
- →Write the result in point-slope form first to reduce algebra mistakes.
- →Multiply the two slopes to confirm a product of −1.
- →If the original slope is 0, jump straight to x = constant.
- →Use standard form when comparing with other line equations.
FAQs
What is the slope of a perpendicular line?
For a nonzero line slope m, the perpendicular slope is −1/m.
Why is the new slope negative?
The sign flips because perpendicular lines tilt in opposite directional senses on the coordinate plane.
What happens when the original slope is 0?
The perpendicular line is vertical, so its equation is x = constant and its slope is undefined.
Can a vertical line have a y-intercept?
No. A vertical line is written with x = constant and does not cross the y-axis in a slope-intercept form unless x = 0.
Why does the calculator return standard form too?
Standard form is useful in algebra classes, analytic geometry, and when comparing multiple lines in a system.
How can I verify two lines are perpendicular?
If both slopes are finite, multiply them. A product of −1 confirms perpendicularity.
Does the point have to lie on the original line?
No. The point only needs to lie on the new perpendicular line, not on the original one.