Search the complete library

What do you want to learn or calculate?

Quick linksAll calculatorsMath subjectsPractice questionsFormula library

Unlock Unlimited Help

Try unlimited chats, explanations, practice, flashcards, and more free for 7 days.

7 days free · cancel anytime

MathGPT Unlimited

  • Chats and explanations
  • Personalized practice exams
  • Custom study guides
  • Flashcard sets
  • Interactive graphs
  • Cancel anytime
Choose a billing period
Ask a parent to pay

No charge for 7 days. After the trial, your selected plan renews automatically until cancelled. Cancel anytime from your plan page; payments are processed securely by Stripe.

Find the equation of a perpendicular line

Use the free perpendicular line calculator to model the algebraic relationship, calculate the requested quantity, and verify it in the original expression. Choose a focused operation below to calculate, inspect the method, and connect the result to a visual model.

The visual updates with your calculation.

Result—Choose a mode, enter the known values, and calculate.
Show your work Step-by-step method
  1. The calculation method and verification will appear here.
Ask MathGPT for a full symbolic explanation →
Algebra

Perpendicular Line Calculator explained

The short version

  • Two lines meet at a right angle when their slopes multiply to −1.
  • That means you flip the slope upside down and change its sign: 3/4 becomes −4/3.
  • The rule breaks for flat and vertical lines, because 0 and undefined cannot multiply to −1. Those two are perpendicular by picture, not by arithmetic.

The formula this page uses

m₁ × m₂ = −1 m₂ = −1 / m₁ distance from (x₀, y₀) to Ax + By + C = 0 is |Ax₀ + By₀ + C| / √(A² + B²)

What each part means

SymbolWhat it means
m₁ — Slope of the given lineRead it off y = mx + b, or work it out from two points.
m₂ — Slope of the perpendicularThe negative reciprocal of m₁. Flip and change sign, in either order.
(x₀, y₀) — The point it must pass throughThe perpendicular line is pinned to this point.
distance — Shortest gap to the lineMeasured along the perpendicular, in the same unit as the coordinates.

Show your work: a full example

  1. The line and the pointy = (3/4)x − 2, through the point (6, 1)
  2. Flip the slope and change its signm₂ = −1 ÷ (3/4) = −4/3
  3. Check the product(3/4) × (−4/3) = −1 ✓
  4. Point-slope with (6, 1)y − 1 = −(4/3)(x − 6)
  5. Multiply outy − 1 = −(4/3)x + 8
  6. Slope-intercept formy = −(4/3)x + 9
  7. Find where the two lines cross(3/4)x − 2 = −(4/3)x + 9 gives 25x = 132, so x = 5.28 and y = 1.96
  8. Distance from (6, 1) down to the original line√((6 − 5.28)² + (1 − 1.96)²) = √(0.5184 + 0.9216) = √1.44 = 1.2

A second, different case

  1. A different case: the given line is flaty = 5, through the point (2, 7)
  2. Its slopem₁ = 0, because y never changes
  3. Try the rulem₂ = −1 ÷ 0, which has no answer
  4. Look at the picture insteadthe only direction at right angles to flat is straight up and down
  5. Write the perpendicularx = 2, the vertical line through the point
  6. The mirror casethe line perpendicular to x = −3 through (−3, 4) is the flat line y = 4
  7. Why the rule stayed silentone slope is 0 and the other is undefined, so their product is not a number at all
Copy-ready example

y = (3/4)x − 2, through the point (6, 1)

The line and the point

Flip and negate: perpendicular slope pairs

Slope m₁Perpendicular slope m₂m₁ × m₂Example lineIts perpendicular through the origin
3−1/3−1y = 3x + 1y = −x/3
3/4−4/3−1y = (3/4)x − 2y = −(4/3)x
2/5−5/2−1y = (2/5)xy = −(5/2)x
−61/6−1y = −6x + 4y = x/6
1−1−1y = xy = −x
0undefinednot a numbery = 5x = 0
undefined0not a numberx = −3y = 0

Three mistakes to check for

What students writeWhy it's wrongDo this instead
The line perpendicular to slope 3/4 has slope −3/4Only the sign was changed. The product comes out −9/16, which is not −1.Flip it as well: −4/3, and (3/4)(−4/3) = −1.
The line perpendicular to slope 3/4 has slope 4/3Only the fraction was flipped. The product is +1, which describes a reflection, not a right angle.Add the minus: −4/3.
The line perpendicular to y = 5 through (2, 7) is x = 7The wrong coordinate was used. A vertical line is named by its x value, and the point's x is 2.Write x = 2, which really does pass through (2, 7).

Questions about the Perpendicular Line Calculator

Why does the product have to be exactly −1?

Because turning a direction by 90 degrees swaps rise and run and reverses one of them. A slope of 3/4 means over 4, up 3; the perpendicular means over 3, down 4, which is −4/3. Multiply the two and the fractions cancel to −1.

What is perpendicular to a horizontal line?

A vertical one, and you have to say so by looking rather than calculating. y = 5 has slope 0, and −1 ÷ 0 has no answer, so the formula simply has nothing to report about this pair.

How do I find the shortest distance from a point to a line?

Drop a perpendicular. Build the perpendicular through the point, find where the two lines cross, then measure between the point and that crossing. Above, (6, 1) to (5.28, 1.96) works out to exactly 1.2.

Do two perpendicular lines have to cross at the given point?

Only if that point was already on the original line. Here (6, 1) is not on y = (3/4)x − 2, so the crossing happens somewhere else entirely, at (5.28, 1.96).

Where to go next

Calculate, interpret, verify.

This workspace keeps the formula and the meaning together. Decimal results are rounded for display; retain full precision when you continue a calculation.

01

Enter known values

Match each input to the quantities in the problem and keep units consistent.

02

Use the relationship

The result panel identifies the formula or algorithm and shows the main substitutions.

03

Read the visual

Use the diagram, plot, or data display to check scale, direction, and plausibility.

04

Practice unaided

Move to targeted questions once you can explain why the method applies.

Continue from this result

Turn one calculation into understanding.

Compare another tool, review the underlying idea, then solve a fresh problem without copying the example.

Recommended next tools

Calculators that work well with this one

See all calculators →

Algebra calculator

Evaluate algebraic relationships and inspect the working.

Open free tool

Quadratic formula calculator

Find roots and connect the discriminant to the graph.

Open free tool

Graphing calculator

Compare equations, roots, intercepts, and inequalities visually.

Open free tool
Learn the mathematics

Understand algebra behind this calculator

A calculator confirms an answer. Working the method yourself is what makes the next problem faster.