What would you like to understand?

Popular destinationsCalculatorsCoursesPracticeFormulas

Unlock Premium Help

Explore every tutor and study workspace for seven days, with no daily AI cap during the trial.

Choose a billing period
Ask a parent to pay

Nothing is charged during the first seven days. Unless you cancel, the plan you selected begins when the trial ends and renews on its stated schedule. Manage cancellation from your plan page. Stripe handles the payment details.

Perpendicular Line Calculator

Find the line through a point perpendicular to a given nonvertical line.

Set up the relationship

Perpendicular Line inputs

Enter only the values that define this relationship. The result is checked against the original setup.

Perpendicular-line equationEnter the known values

The method, result, and an independent check will appear here.

Method for this result

  1. Complete the inputs and calculate.

Slope-product check

  1. The check will use a different relationship or reverse operation where possible.

The relationship behind Perpendicular Line Calculator

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

Symbols and inputs for Perpendicular Line Calculator

Symbols and inputs for Perpendicular Line Calculator
SymbolQuantityMeaning
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.
distanceShortest gap to the lineMeasured along the perpendicular, in the same unit as the coordinates.

Worked example for Perpendicular Line Calculator

  1. The line and the point: y = (3/4)x − 2, through the point (6, 1)
  2. Flip the slope and change its sign: m₂ = −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 out: y − 1 = −(4/3)x + 8
  6. Slope-intercept form: y = −(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 case for Perpendicular Line Calculator

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

Flip and negate: perpendicular slope pairs

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

Mistakes to catch with Perpendicular Line Calculator

The line perpendicular to slope 3/4 has slope −3/4

Only the sign was changed. The product comes out −9/16, which is not −1.

Repair: Flip it as well: −4/3, and (3/4)(−4/3) = −1.

The line perpendicular to slope 3/4 has slope 4/3

Only the fraction was flipped. The product is +1, which describes a reflection, not a right angle.

Repair: Add the minus: −4/3.

The line perpendicular to y = 5 through (2, 7) is x = 7

The wrong coordinate was used. A vertical line is named by its x value, and the point's x is 2.

Repair: Write x = 2, which really does pass through (2, 7).

Questions about 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).

Understand the result from Perpendicular Line Calculator

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

Calculators related to Perpendicular Line Calculator

See all calculators →

Algebra calculator

Explore this resource with editable values, visible working, and a result you can check.

Open free tool

Quadratic formula calculator

Explore this resource with editable values, visible working, and a result you can check.

Open free tool

Graphing calculator

Explore this resource with editable values, visible working, and a result you can check.

Open free tool

Understand algebra behind this calculator

A calculator can check the arithmetic; use the algebra subject guide to rebuild the method, algebra practice questions to test selection, and the math formula library to confirm conditions and notation.