Roboculator
Online CalculatorsCategoriesDate & EventsNews
Get Started
Online CalculatorsCategoriesDate & EventsNewsGet Started
Roboculator

Smart calculators for every challenge. Free, fast, and private.

Categories

  • Finance
  • Health
  • Math
  • Construction
  • Conversion
  • Everyday Life

Popular Tools

  • Date & Events
  • Loan Calculator
  • BMI Calculator
  • Percentage Calc
  • Latest News
  • Search All

Resources

  • Glossary
  • Topic Tags
  • News & Insights

Company

  • About
  • Contact

Legal

  • Privacy Policy
  • Terms of Service
  • Editorial Policy
  • Disclaimer
© 2026 Roboculator. All rights reserved.
Roboculator

roboculator.com

  1. Home
  2. /Math
  3. /Coordinate Geometry Calculators
  4. /Perpendicular Line Calculator

Perpendicular Line Calculator

Last updated: March 28, 2026

Calculator

Results

Original Slope

2

Perpendicular Slope

-0.5

Perpendicular y-intercept

2

Angle Between Lines

90

°

Results

Original Slope

2

Perpendicular Slope

-0.5

Perpendicular y-intercept

2

Angle Between Lines

90

°

The Perpendicular Line Calculator determines the equation of a line perpendicular to a given line that passes through a specified point. Perpendicularity is one of the most important geometric relationships, forming the basis of right angles, orthogonal coordinate systems, and normal vectors in higher-dimensional geometry.

Two lines are perpendicular if and only if the product of their slopes equals $$-1$$:

$$m_1 \cdot m_2 = -1$$

Given a line with slope $$m$$, the perpendicular line has slope:

$$m_{\perp} = -\frac{1}{m}$$

This relationship is known as the negative reciprocal. If the original line has slope $$2$$, the perpendicular line has slope $$-1/2$$. If the original is horizontal ($$m = 0$$), the perpendicular is vertical (undefined slope), and vice versa.

Given the perpendicular slope and a point $$(x_0, y_0)$$, the equation is:

$$y - y_0 = m_{\perp}(x - x_0) \quad \Rightarrow \quad y = m_{\perp} x + (y_0 - m_{\perp} \cdot x_0)$$

If the original line is given in general form $$ax + by + c = 0$$, the perpendicular line through $$(x_0, y_0)$$ is:

$$b(x - x_0) - a(y - y_0) = 0$$

This follows because the direction vector of $$ax + by + c = 0$$ is $$(b, -a)$$, and the normal vector $$(a, b)$$ becomes the direction of the perpendicular line.

The angle between two perpendicular lines is always 90°. This can be verified using the tangent formula for the angle between two lines:

$$\tan\theta = \left|\frac{m_1 - m_2}{1 + m_1 m_2}\right|$$

When $$m_1 m_2 = -1$$, the denominator is zero, making $$\tan\theta$$ undefined, which corresponds to $$\theta = 90°$$.

Perpendicular lines are ubiquitous in mathematics and science. The Cartesian coordinate system itself is built on two perpendicular axes. In calculus, the normal line to a curve at a point is perpendicular to the tangent line. In physics, work done by a force perpendicular to displacement is zero. In construction, ensuring walls are perpendicular to floors is critical for structural integrity. In computer graphics, normal vectors (perpendicular to surfaces) determine lighting and shading. In statistics, orthogonal regression minimizes perpendicular distances from data points to the fitted line rather than vertical distances.

The perpendicular bisector of a line segment is a special case: it is perpendicular to the segment and passes through its midpoint. Perpendicular bisectors play a key role in finding circumcenters of triangles and in Voronoi diagram construction.

Visual Analysis

How It Works

Choose slope mode or general form mode. Enter the slope or line coefficients, then enter the point the perpendicular line must pass through. The calculator computes the negative reciprocal slope, the y-intercept, and confirms the 90° angle between the lines.

Understanding Your Results

The perpendicular slope is always the negative reciprocal of the original slope. The resulting line intersects the original at a right angle. If the original slope is positive, the perpendicular slope is negative (and vice versa), ensuring the lines cross at exactly 90°.

Worked Examples

Perpendicular to Slope m = 2

Inputs

modeslope
m2
a3
b coeff-1
c5
px2
py1

Results

original slope2
perp slope-0.5
perp intercept2
angle between90

The perpendicular to y = 2x through (2, 1) is y = -0.5x + 2. The product of slopes is 2 × (-0.5) = -1, confirming perpendicularity.

Perpendicular to General Form 3x - y + 5 = 0

Inputs

modegeneral
m2
a3
b coeff-1
c5
px0
py0

Results

original slope3
perp slope-0.333333
perp intercept0
angle between90

The line 3x - y + 5 = 0 has slope 3. The perpendicular through the origin is y = -x/3, with slope -1/3.

Frequently Asked Questions

Two directions are perpendicular when their dot product is zero. Direction vectors $$(1, m_1)$$ and $$(1, m_2)$$ satisfy $$1 \cdot 1 + m_1 \cdot m_2 = 0$$, giving $$m_1 m_2 = -1$$, hence $$m_2 = -1/m_1$$.

A horizontal line has slope $$m = 0$$. The perpendicular is vertical (slope undefined), described by $$x = x_0$$. This calculator reports the perpendicular slope as Infinity in that case.

A vertical line has an undefined slope. The perpendicular is horizontal with slope $$m = 0$$, giving $$y = y_0$$.

Set the two line equations equal and solve for $$x$$. Substitute back to find $$y$$. This gives the foot of the perpendicular from the point to the original line.

The shortest distance is along the perpendicular. For point $$(x_0, y_0)$$ and line $$ax + by + c = 0$$, it equals $$|ax_0 + by_0 + c| / \sqrt{a^2 + b^2}$$.

Yes, by definition. Two lines are perpendicular if and only if they intersect at a right angle (90°). This is equivalent to the condition $$m_1 \cdot m_2 = -1$$.

Sources & Methodology

Stewart, J. Calculus: Early Transcendentals. Cengage Learning. Strang, G. Linear Algebra and Its Applications. Academic Press. Anton, H. Elementary Linear Algebra. Wiley.
R

Roboculator Team

The Roboculator Team explains calculations, planning tools, and practical formulas in clear language for real-life situations.

How helpful was this calculator?

Be the first to rate!

Related Calculators

Distance Calculator (2D)

Coordinate Geometry Calculators

Distance Calculator (3D)

Coordinate Geometry Calculators

Midpoint Calculator

Coordinate Geometry Calculators

Endpoint Calculator

Coordinate Geometry Calculators

Slope Calculator

Coordinate Geometry Calculators

Slope Intercept Form Calculator

Coordinate Geometry Calculators