Skip to main content

Perpendicular Line Calculator

Solve perpendicular line problems step-by-step with our free calculator. See formulas, worked examples, and clear explanations.

Skip to calculator
Mathematics

Perpendicular Line Calculator

Calculate the equation of a perpendicular line through a point, find perpendicular distance, intersection point, and verify perpendicularity with negative reciprocal slopes.

Last updated: December 2025Reviewed by NovaCalculator Mathematics Team

Calculator

Adjust values & calculate
Original Line: y = 3x + 2
Perpendicular Line Equation
y = -0.3333x + 5.3333
through (1, 5)
Perp Distance
0.0000
Perp Slope
-0.333333
Slope Product
-1.0000
Intersection Point
(1.0000, 5.0000)
Original Angle / Perp Angle
71.57deg / 161.57deg
Your Result
Perpendicular: y = -0.3333x + 5.3333 | Distance to line: 0.0000
Share Your Result
Understand the Math

Formula

Perpendicular slope: m_perp = -1/m | Distance: |ax0 + by0 + c| / sqrt(a^2 + b^2)

The perpendicular slope is the negative reciprocal of the original slope. The perpendicular distance from a point (x0, y0) to line ax + by + c = 0 is the shortest distance measured along the perpendicular direction.

Last reviewed: December 2025

Worked Examples

Example 1: Perpendicular Through a Point

Find the perpendicular to y = 3x + 2 passing through (1, 5).
Solution:
Original slope: m = 3 Perpendicular slope: m_perp = -1/3 Using point-slope: y - 5 = (-1/3)(x - 1) y = (-1/3)x + 1/3 + 5 y = (-1/3)x + 16/3 Intersection: 3x + 2 = (-1/3)x + 16/3 (10/3)x = 10/3, x = 1, y = 5 Distance from (1,5) to line: |3(1) - 5 + 2| / sqrt(10) = 0
Result: Perpendicular: y = -0.3333x + 5.3333 | Point is on the line

Example 2: Perpendicular Distance Calculation

Find the perpendicular distance from point (4, 7) to the line y = 2x - 1.
Solution:
Line: 2x - y - 1 = 0 (general form) Point: (4, 7) Distance = |2(4) - 7 - 1| / sqrt(4 + 1) = |8 - 7 - 1| / sqrt(5) = 0 / sqrt(5) = 0 The point (4, 7) lies on the line y = 2x - 1 Perpendicular slope = -1/2
Result: Distance: 0 (point lies on the line) | Perp slope: -0.5
Expert Insights

Background & Theory

The Perpendicular Line Calculator applies the following established principles and formulas. Mathematics rests on a hierarchy of number systems, each extending the previous. The natural numbers (1, 2, 3, ...) support counting and ordering. The integers add negative values and zero, enabling subtraction without restriction. The rational numbers, expressible as p/q where p and q are integers and q is nonzero, close the system under division. The real numbers fill the gaps left by irrationals such as the square root of 2 or pi, forming a complete ordered field. The complex numbers, written as a + bi where i is the square root of negative one, complete the algebraic closure of the reals and allow every polynomial to have a root. Prime factorization states that every integer greater than one is uniquely expressible as a product of primes, a result known as the Fundamental Theorem of Arithmetic. Computing the greatest common divisor (GCD) of two integers relies most efficiently on the Euclidean algorithm: repeatedly replace the larger number with the remainder when it is divided by the smaller, until the remainder is zero. The last nonzero remainder is the GCD. The least common multiple (LCM) follows from the identity LCM(a, b) = |a * b| / GCD(a, b). Modular arithmetic defines equivalence classes of integers that share the same remainder under division by a modulus n. Fermat's Little Theorem and Euler's Theorem arise from this structure and underpin modern cryptography. Logarithms are the inverses of exponential functions. If b raised to the power x equals y, then the logarithm base b of y equals x. The natural logarithm uses base e, approximately 2.71828. Combinatorics counts arrangements and selections. The number of ordered arrangements (permutations) of r objects from n distinct objects is nPr = n! / (n - r)!. The number of unordered selections (combinations) is nCr = n! / (r! * (n - r)!). Pascal's triangle arranges these binomial coefficients so that each entry equals the sum of the two entries directly above it. The Fibonacci sequence, defined by F(1) = 1, F(2) = 1, and F(n) = F(n-1) + F(n-2), appears throughout nature and connects deeply to the golden ratio via Binet's formula.

History

The history behind the Perpendicular Line Calculator traces back through the following developments. Mathematics as a systematic discipline traces to ancient Mesopotamia. Babylonian clay tablets dating to around 1800 BCE demonstrate knowledge of quadratic equations, Pythagorean triples, and base-60 arithmetic, suggesting a practical mathematical tradition far preceding Greek formalism. Euclid of Alexandria compiled the Elements around 300 BCE, establishing the axiomatic method that would define rigorous mathematics for over two thousand years. His work organized plane geometry, number theory, and proportion into logically chained propositions derived from a small set of postulates. The algorithm bearing his name for computing GCDs appears in Book VII and remains in use today. In the 9th century, the Persian scholar Muhammad ibn Musa Al-Khwarizmi wrote Al-Kitab al-mukhtasar fi hisab al-jabr wal-muqabala, the treatise whose title gave algebra its name. He systematized the solution of linear and quadratic equations and described procedures that operated on unknowns as objects, a conceptual leap away from purely numerical calculation. Rene Descartes introduced coordinate geometry in 1637 by uniting algebra and Euclidean geometry, allowing curves to be studied through equations. This synthesis set the stage for calculus. Isaac Newton and Gottfried Wilhelm Leibniz independently developed calculus during the 1660s and 1670s, triggering a priority dispute that lasted decades and divided British and Continental mathematicians. Carl Friedrich Gauss proved the Fundamental Theorem of Algebra in 1799, showing that every nonconstant polynomial has at least one complex root. His Disquisitiones Arithmeticae of 1801 established modern number theory. David Hilbert's formalist program at the turn of the 20th century sought to place all of mathematics on an explicit axiomatic foundation, a project that Kurt Godel's incompleteness theorems of 1931 showed to be fundamentally limited. Alan Turing's work in the 1930s on computability introduced the theoretical model of the stored-program computer and linked mathematical logic directly to the limits of algorithmic calculation. His proof that no algorithm can decide in general whether an arbitrary program will halt or run forever placed fundamental boundaries on what mathematics can mechanically determine, and it opened the discipline now known as theoretical computer science.

Share this calculator

Explore More

Frequently Asked Questions

A perpendicular line intersects another line at exactly 90 degrees, forming a right angle at the point of intersection. The slope of a perpendicular line is the negative reciprocal of the original line slope. If the original slope is m, the perpendicular slope is -1/m. For example, if a line has slope 3, the perpendicular line has slope -1/3, and if a line has slope -2/5, the perpendicular has slope 5/2. The product of perpendicular slopes always equals -1 (m1 * m2 = -1). Special cases include horizontal lines (slope 0) being perpendicular to vertical lines (undefined slope), where the negative reciprocal relationship does not directly apply.
To find a perpendicular line through a given point, first calculate the negative reciprocal of the original slope to get the perpendicular slope. Then use the point-slope form y - y1 = m_perp(x - x1) with the perpendicular slope and the given point. For example, given the line y = 3x + 2 and the point (1, 5): the perpendicular slope is -1/3, so the equation is y - 5 = (-1/3)(x - 1), which simplifies to y = (-1/3)x + 16/3. This method works reliably for any non-vertical line. For vertical lines, the perpendicular is horizontal with equation y = y1, and for horizontal lines, the perpendicular is vertical with equation x = x1.
The perpendicular distance from a point (x0, y0) to a line ax + by + c = 0 is given by the formula d = |ax0 + by0 + c| / sqrt(a^2 + b^2). For a line in slope-intercept form y = mx + b, this becomes d = |mx0 - y0 + b| / sqrt(m^2 + 1). This is the shortest possible distance from the point to any point on the line, and it is measured along the perpendicular direction. This formula is widely used in computational geometry, computer graphics, and physics for determining closest approach distances. It is also essential in least-squares regression analysis where residuals are measured perpendicularly.
Perpendicular lines are fundamental to right triangles because they define the right angle that characterizes these triangles. When two perpendicular lines intersect, they create four 90-degree angles, and any triangle formed using these two lines as sides will be a right triangle. The Pythagorean theorem (a^2 + b^2 = c^2) applies exclusively to right triangles and relies on the perpendicularity of two sides. In coordinate geometry, you can verify that a triangle has a right angle by checking if any two sides have slopes that are negative reciprocals. This connection between perpendicularity and right triangles underpins trigonometry and many engineering calculations.
A perpendicular bisector is a line that passes through the midpoint of a line segment and is perpendicular to it. To construct one, first find the midpoint M = ((x1+x2)/2, (y1+y2)/2) of the segment. Then calculate the slope of the segment and take its negative reciprocal to get the perpendicular slope. Finally, use the point-slope form with the midpoint and perpendicular slope. Every point on the perpendicular bisector is equidistant from the two endpoints of the original segment. Perpendicular bisectors are crucial in triangle geometry because the three perpendicular bisectors of a triangle always meet at a single point called the circumcenter, which is the center of the circumscribed circle.
There are several methods to prove perpendicularity. The most common algebraic method is to show that the product of the two slopes equals -1 (m1 * m2 = -1). You can also use vectors: two lines are perpendicular if the dot product of their direction vectors equals zero (a1*a2 + b1*b2 = 0). In coordinate geometry, another approach is to show that the angle between the lines is 90 degrees using the tangent formula. For segments defined by points, you can use the converse of the Pythagorean theorem: if the sum of squares of two sides equals the square of the third side, the triangle contains a right angle. Each method has its advantages depending on the given information.
Educational Note: This calculator is provided for educational and informational purposes. Results are based on the formulas and inputs provided. Always verify important calculations independently. NovaCalculator processes calculator inputs client-side; optional analytics follow visitor consent settings.Reviewed by: NovaCalculator Mathematics Team โ€” Verified against standard mathematical and scientific references. Last reviewed: December 2025. ยฉ 2024โ€“2026 NovaCalculator.

Share this calculator

Formula

Perpendicular slope: m_perp = -1/m | Distance: |ax0 + by0 + c| / sqrt(a^2 + b^2)

The perpendicular slope is the negative reciprocal of the original slope. The perpendicular distance from a point (x0, y0) to line ax + by + c = 0 is the shortest distance measured along the perpendicular direction.

Worked Examples

Example 1: Perpendicular Through a Point

Problem: Find the perpendicular to y = 3x + 2 passing through (1, 5).

Solution: Original slope: m = 3\nPerpendicular slope: m_perp = -1/3\nUsing point-slope: y - 5 = (-1/3)(x - 1)\ny = (-1/3)x + 1/3 + 5\ny = (-1/3)x + 16/3\nIntersection: 3x + 2 = (-1/3)x + 16/3\n(10/3)x = 10/3, x = 1, y = 5\nDistance from (1,5) to line: |3(1) - 5 + 2| / sqrt(10) = 0

Result: Perpendicular: y = -0.3333x + 5.3333 | Point is on the line

Example 2: Perpendicular Distance Calculation

Problem: Find the perpendicular distance from point (4, 7) to the line y = 2x - 1.

Solution: Line: 2x - y - 1 = 0 (general form)\nPoint: (4, 7)\nDistance = |2(4) - 7 - 1| / sqrt(4 + 1)\n= |8 - 7 - 1| / sqrt(5)\n= 0 / sqrt(5) = 0\nThe point (4, 7) lies on the line y = 2x - 1\nPerpendicular slope = -1/2

Result: Distance: 0 (point lies on the line) | Perp slope: -0.5

Frequently Asked Questions

What is a perpendicular line and how do you find its slope?

A perpendicular line intersects another line at exactly 90 degrees, forming a right angle at the point of intersection. The slope of a perpendicular line is the negative reciprocal of the original line slope. If the original slope is m, the perpendicular slope is -1/m. For example, if a line has slope 3, the perpendicular line has slope -1/3, and if a line has slope -2/5, the perpendicular has slope 5/2. The product of perpendicular slopes always equals -1 (m1 * m2 = -1). Special cases include horizontal lines (slope 0) being perpendicular to vertical lines (undefined slope), where the negative reciprocal relationship does not directly apply.

How do you find the equation of a perpendicular line through a point?

To find a perpendicular line through a given point, first calculate the negative reciprocal of the original slope to get the perpendicular slope. Then use the point-slope form y - y1 = m_perp(x - x1) with the perpendicular slope and the given point. For example, given the line y = 3x + 2 and the point (1, 5): the perpendicular slope is -1/3, so the equation is y - 5 = (-1/3)(x - 1), which simplifies to y = (-1/3)x + 16/3. This method works reliably for any non-vertical line. For vertical lines, the perpendicular is horizontal with equation y = y1, and for horizontal lines, the perpendicular is vertical with equation x = x1.

What is the perpendicular distance from a point to a line?

The perpendicular distance from a point (x0, y0) to a line ax + by + c = 0 is given by the formula d = |ax0 + by0 + c| / sqrt(a^2 + b^2). For a line in slope-intercept form y = mx + b, this becomes d = |mx0 - y0 + b| / sqrt(m^2 + 1). This is the shortest possible distance from the point to any point on the line, and it is measured along the perpendicular direction. This formula is widely used in computational geometry, computer graphics, and physics for determining closest approach distances. It is also essential in least-squares regression analysis where residuals are measured perpendicularly.

How do perpendicular lines relate to right triangles?

Perpendicular lines are fundamental to right triangles because they define the right angle that characterizes these triangles. When two perpendicular lines intersect, they create four 90-degree angles, and any triangle formed using these two lines as sides will be a right triangle. The Pythagorean theorem (a^2 + b^2 = c^2) applies exclusively to right triangles and relies on the perpendicularity of two sides. In coordinate geometry, you can verify that a triangle has a right angle by checking if any two sides have slopes that are negative reciprocals. This connection between perpendicularity and right triangles underpins trigonometry and many engineering calculations.

What is the perpendicular bisector and how is it constructed?

A perpendicular bisector is a line that passes through the midpoint of a line segment and is perpendicular to it. To construct one, first find the midpoint M = ((x1+x2)/2, (y1+y2)/2) of the segment. Then calculate the slope of the segment and take its negative reciprocal to get the perpendicular slope. Finally, use the point-slope form with the midpoint and perpendicular slope. Every point on the perpendicular bisector is equidistant from the two endpoints of the original segment. Perpendicular bisectors are crucial in triangle geometry because the three perpendicular bisectors of a triangle always meet at a single point called the circumcenter, which is the center of the circumscribed circle.

How do you prove two lines are perpendicular?

There are several methods to prove perpendicularity. The most common algebraic method is to show that the product of the two slopes equals -1 (m1 * m2 = -1). You can also use vectors: two lines are perpendicular if the dot product of their direction vectors equals zero (a1*a2 + b1*b2 = 0). In coordinate geometry, another approach is to show that the angle between the lines is 90 degrees using the tangent formula. For segments defined by points, you can use the converse of the Pythagorean theorem: if the sum of squares of two sides equals the square of the third side, the triangle contains a right angle. Each method has its advantages depending on the given information.

References

Reviewed by Manoj Kumar, Mathematics Educator ยท Editorial policy