Perp Line Calculator - Negative Reciprocal Slope
Use this perpendicular line calculator to find the perpendicular line equation through a chosen point, with the intersection point included.
Perp Line Calculator
Results
What Is a Perpendicular Line Calculator?
A perpendicular line calculator is a small utility that finds the equation of a line that is perpendicular to a given line and passes through a chosen point, using the negative-reciprocal slope rule.
- • Coordinate geometry homework: Verify the perpendicular line equation and intersection point that textbook problems ask for, including the 2x - 2 / 3, 5 example from most algebra courses.
- • Architecture and drafting layouts: Compute perpendicular reference lines on floor plans, fence runs, or framing layouts so a wall, beam, or partition meets an existing line at a right angle.
- • Surveying and engineering checks: Reconcile a measured point with a right-angle offset from a baseline, the everyday use case for a perpendicular offset on a construction site.
Enter the slope m and y-intercept r of the given line y = mx + r, then the coordinates of the point (x0, y0) the new line should pass through, and the calculator returns the perpendicular slope, y-intercept, full equation, and the intersection point of the two lines in real time.
When the given line is described by a rise and run rather than a slope, Slope Percentage Calculator converts the pair of measurements into the same m value this calculator expects.
How the Perpendicular Line Calculator Works
The calculator applies the negative-reciprocal slope rule and solves the resulting linear system for the intersection point. The math is a direct application of two analytic-geometry facts.
- m: Slope of the given line y = mx + r. Use the same unit system as r, x0, and y0.
- r: Y-intercept of the given line. Together with m this fully defines the line.
- x0, y0: Coordinates of the point the perpendicular line must pass through. Substitute these into the perpendicular equation to solve for the new y-intercept.
- a: Perpendicular slope, equal to -1 / m. When m = 0 the given line is horizontal and a is 'vertical' (the perpendicular is x = x0).
- b: Perpendicular y-intercept from y0 = a x0 + b, so b = y0 + x0 / m.
The negative-reciprocal step gives the perpendicular slope a, and substituting the input point into y = a x + b locks the perpendicular y-intercept. The intersection point is found by setting the two line equations equal and solving for x, which has a unique answer when the slopes differ from each other.
Worked example: original y = 2x - 2, perpendicular through (3, 5)
Given: m = 2, r = -2, point (x0, y0) = (3, 5).
Perpendicular slope: a = -1 / 2 = -0.5. Perpendicular y-intercept: b = 5 + 3 / 2 = 6.5. Equation: y = -0.5 x + 6.5.
Perpendicular line: y = -0.5 x + 6.5, intersection point (3.4, 4.8).
The two lines y = 2x - 2 and y = -0.5 x + 6.5 cross at (3.4, 4.8), which matches the Omni perpendicular line calculator's result for the same example.
According to Wikipedia, the slope of a line is the ratio of vertical change to horizontal change, and a perpendicular line has a slope that is the negative reciprocal of the original slope.
According to Wolfram MathWorld, two non-vertical lines are perpendicular if and only if the product of their slopes is -1, so the slope of a perpendicular line is the negative reciprocal of the original slope.
Because the intersection point comes from solving a two-line system, System of Equations Calculator is a useful sanity check whenever the perpendicular line needs to be cross-validated against the original line.
Key Concepts Explained
Four small ideas show up every time you build a perpendicular line.
Negative reciprocal of a slope
The negative reciprocal of m is -1 / m. It is the product rule: a * m = -1. The sign flips and the magnitude inverts, which is what makes the two lines meet at a right angle.
Right angle (90 degrees)
Two lines in the plane are perpendicular when they meet at a right angle. In slope-intercept form, with both slopes defined, this is the same rule as a * m = -1. Vertical and horizontal lines are also perpendicular because the product rule does not apply to them.
Point-slope substitution
Once the perpendicular slope is known, the new y-intercept is found by substituting the chosen point (x0, y0) into y = a x + b. The point picks one specific line out of the family of all lines with slope a.
Horizontal edge case (m = 0)
When the given line is horizontal (m = 0), the product rule a * m = -1 does not apply, so the perpendicular is the vertical line x = x0. The results panel shows 'vertical' for the perpendicular slope and an em-dash for the y-intercept, so the edge case still maps to a usable form.
These four concepts are the entire reason a perpendicular line is uniquely determined, and the calculator mirrors them as labeled rows in the results panel.
To measure the distance from a point to the given line, Length of a Line Segment Calculator computes the segment between (x0, y0) and the intersection point that the perpendicular line calculator returns.
How to Use This Calculator
Using the calculator is a four-step flow: open the page, fill in the four inputs, and read the result on the right.
- 1 Enter the slope m of the given line: Type the slope from y = mx + r. The default of 2 models the classic y = 2x - 2 textbook example, so you can confirm the calculator against a hand calculation.
- 2 Enter the y-intercept r of the given line: Type the y-intercept of the given line. The default of -2 keeps the example at y = 2x - 2, so you can copy the answer into a worksheet the first time you use the tool.
- 3 Enter the point (x0, y0): Type the x- and y-coordinates of the point the perpendicular line should pass through. Defaults of (3, 5) match the Omni example for cross-checking.
- 4 Read the perpendicular line and intersection point: The right-side results panel shows the perpendicular slope a, the perpendicular y-intercept b, the perpendicular line equation, and the intersection point. Values update in real time as you type.
- 5 Reset to try a new example: Press Reset to restore the default 2x - 2 / (3, 5) example for fast comparison without retyping numbers.
A fence that meets a wall at a right angle: the wall runs from (0, 0) to (4, 2) so m = 0.5 and r = 0. The fence passes through (6, 1), so enter m = 0.5, r = 0, x0 = 6, y0 = 1 to read y = -2x + 13 intersecting the wall at (5.2, 2.6).
When the input point or the y-intercept needs to be in a different unit or reference frame, Coordinates Converter translates the numbers before the perpendicular line equation is computed.
Benefits of Using This Calculator
These benefits come from real drafting, study, and graphics work, not from treating the perpendicular line as a toy math problem.
- • Four inputs in, full geometry out: The calculator returns the perpendicular slope, y-intercept, equation, and intersection point at the same time, so a single form fill replaces four separate hand calculations.
- • Negative-reciprocal rule built in: The a = -1 / m rule is applied automatically, with the sign and magnitude handled for you, so you cannot get a perpendicular slope wrong by dropping the sign or inverting the wrong number.
- • Horizontal case is explicit: When the given line is horizontal, the results panel shows 'vertical' for the perpendicular slope and renders the perpendicular as 'x = x0', so the edge case still maps to a usable answer.
- • Intersection point is verified in one pass: The intersection is solved from the same system of equations, so you can paste the answer straight into a floor plan, a study worksheet, or a coordinate-geometry proof without a second tool.
- • Accepts negative coordinates and slopes: Negative m, negative r, and negative (x0, y0) all work the same way because the formula uses signed division, keeping textbook problems, CAD coordinates, and physics vectors on equal footing.
The biggest practical benefit is that a perpendicular line becomes a single reading instead of a multi-step hand calculation, and the value can be pasted directly into a worksheet or coordinate-geometry proof.
Once the intersection point is known, the chosen point (x0, y0) and the intersection point are the endpoints of a circle's diameter (Thales' theorem), so Circle Equation Calculator can write the circle tangent to both lines at those two points.
Factors That Affect Your Results
These factors decide whether the result matches what you would draw on a graph or paste into a worksheet.
Sign and magnitude of m
The perpendicular slope a = -1 / m inverts the magnitude and flips the sign of m. A small positive m gives a large negative a, and a small negative m gives a large positive a, which is the textbook behavior of the negative-reciprocal rule.
Position of the chosen point
The point (x0, y0) is the bridge that picks one specific line out of the family of all lines with slope a. Moving the point along a line parallel to the original gives a different y-intercept but the same slope.
Whether m is exactly 0
When m = 0 the given line is horizontal. The product rule does not apply, the perpendicular is vertical, and the calculator returns 'vertical' plus the line x = x0 plus the intersection (x0, r).
Numerical precision of the inputs
The calculator reports 4 decimal places for typical values and 2 for very large ones. Higher input precision generally yields higher output precision, but rounding the inputs first will round the result.
Unit consistency
The slope, y-intercept, and point coordinates must all live in the same coordinate unit system. Mixing units (meters for r, feet for x0) silently produces a meaningless result.
- • The calculator assumes a flat Euclidean plane. On a curved surface such as a sphere, a perpendicular line must be defined along a great circle and will not match the Euclidean value.
- • The m input is a number field clamped to -1000 to 1000, so only given lines with a defined slope are supported. A vertical given line (undefined m) is out of scope; for that case, the perpendicular distance from (x0, y0) to x = c is |x0 - c|.
Treat the perpendicular line equation as an exact analytic value whenever the inputs are coordinates in a flat plane. For geodetic, geographic, or three-dimensional problems, use a vector or 3D distance tool instead, because the Euclidean answer is no longer the right shape.
According to Wikipedia, two lines in a plane are perpendicular if they meet at a right angle, and in slope-intercept form this condition is equivalent to the product of their slopes being -1.
Frequently Asked Questions
Q: How do you find the equation of a perpendicular line?
A: Take the negative reciprocal of the given slope to get the perpendicular slope a = -1 / m. Substitute the point (x0, y0) into y = a x + b and solve for b = y0 - a x0, which simplifies to b = y0 + x0 / m. The final equation is y = a x + b.
Q: What is the slope of a perpendicular line?
A: The slope of a perpendicular line is the negative reciprocal of the original slope. Concretely, if the original slope is m, the perpendicular slope is a = -1 / m, which flips the sign and inverts the magnitude so the two slopes multiply to -1.
Q: How do you find a perpendicular line through a point?
A: Compute the negative reciprocal of the original slope to get a, then substitute the point (x0, y0) into y = a x + b. Solve b = y0 - a x0, which is the same as b = y0 + x0 / m. The result y = a x + b is the unique perpendicular through that point.
Q: What is the negative reciprocal?
A: The negative reciprocal of m is -1 / m. It flips the sign and replaces the numerator and denominator, so the negative reciprocal of 2 is -1 / 2, the negative reciprocal of -3 is 1 / 3, and the negative reciprocal of 0.25 is -4.
Q: How do you find the intersection of two perpendicular lines?
A: Set the two line equations equal to each other, m x + r = a x + b, and solve for x. With a = -1 / m this gives x = (m*y0 + x0 - m*r) / (m^2 + 1). Plug x back into the original line y = m x + r to get the intersection y.
Q: What is a perpendicular line that passes through the same point?
A: It is the unique line through a point (x0, y0) whose slope is the negative reciprocal of the given slope. Its slope is a = -1 / m, and its y-intercept is b = y0 + x0 / m, so the line can always be written as y = a x + b in slope-intercept form.