Skip to content
FiftyCalc Free calculators for all 50 states

Perpendicular Line Calculator

Test cases replayed : 2 of 2 match · Methodology · No outside source listed

Enter the slope and y-intercept of the line, and the point the perpendicular line must pass through.

Result

Sample figures

y-intercept of the perpendicular line—

Slope of the perpendicular line, −1 ÷ m —

  • Where the lines cross: x—
  • Where the lines cross: y—
  • Distance from the point to the given line—

Estimate for planning only, not tax, legal, financial or medical advice. This calculator uses the method explained on this page.

Perpendicular Line Calculator

Slope m of the given line y = mx + b (not 0): enter a number. Prefilled example: 2.

y-intercept b of the given line: enter a number. Prefilled example: 1.

Point: x₀: enter a number. Prefilled example: 3.

Point: y₀: enter a number. Prefilled example: 4.

How to use this calculator

Fill in the fields in this order; each step takes you to its field.

  1. Slope m of the given line y = mx + b (not 0): enter a number.
  2. y-intercept b of the given line: enter a number.
  3. Point: x₀: enter a number.
  4. Point: y₀: enter a number.
  5. Read the result: y-intercept of the perpendicular line; the panel also shows Slope of the perpendicular line, −1 ÷ m, Where the lines cross: x, Where the lines cross: y and Distance from the point to the given line.

How this calculator works

Two lines with slopes m and m′ are perpendicular when m × m′ = −1, so m′ = −1 ÷ m. The perpendicular through (x₀, y₀) is y = m′x + (y₀ − m′x₀).

The lines cross where mx + b = m′x + b′, at x = (b′ − b) ÷ (m − m′). The distance from (x₀, y₀) to y = mx + b is |mx₀ − y₀ + b| ÷ √(m² + 1).

If the given line is horizontal (m = 0), the perpendicular is the vertical line x = x₀, which has no slope; the slope and intercept then show a dash.

The formula

  1. Mp=−1m+0
  2. Bp=y0−Mp×x0+0
Symbols used in the formula
SymbolMeaning
mSlope m of the given line y = mx + b (not 0)
x0Point: x₀
y0Point: y₀
MpSlope of the perpendicular line, −1 ÷ m
Bpy-intercept of the perpendicular line

Worked example

Slope m of the given line y = mx + b (not 0)2
y-intercept b of the given line1
Point: x₀3
Point: y₀4
Slope of the perpendicular line, −1 ÷ m-0.5
Where the lines cross: x1.8
Where the lines cross: y4.6
Distance from the point to the given line1.3416
  1. Mp=−12+0=−0.5
  2. Bp=4−−0.5×3+0=5.5

y-intercept of the perpendicular line 5.5

Each step uses the unrounded value of the step before it; figures on this page are rounded for display.

Frequently asked questions

What line through (3, 4) is perpendicular to y = 2x + 1?

y = −0.5x + 5.5. It meets the first line at (1.8, 4.6), and the point is about 1.3416 units from that line.

What is the perpendicular slope of −3/4?

4/3 ≈ 1.3333, the negative reciprocal.

Related calculators