On this concept: Formula

Not sure which lesson to do first? Find your level and get a plan →

Math · Geometry Fundamentals · Grade 6-8

Perpendicular Lines

Perpendicularity is when two lines, segments, or planes meet at exactly a 90∘ right angle.

m1×m2=−1 for perpendicular lines (neither vertical)

Quick Answer

Perpendicularity is when two lines, segments, or planes meet at exactly a 90∘ right angle. Use it when you must test for a right angle between lines or build one, such as the shortest path from a point to a line or the height of a triangle. On a graph, two lines that are not vertical are perpendicular when their slopes multiply to −1: slope 2 goes with slope −12. A vertical line and a horizontal line are always perpendicular.

Why This Matters

Right angles hold up much of geometry: a triangle's height is measured perpendicular to its base, the shortest distance from a point to a line runs along a perpendicular, and the Pythagorean theorem needs a right angle. On a coordinate grid, the slope test lets you check a corner is square without a protractor. Using the plain reciprocal, without the sign change, gives a line at the wrong angle.

Intuitive Explanation

Look at the corner of a sheet of paper or a floor tile. The two edges meet at a square corner, 90∘, and that is what perpendicular means, written ℓ1⊥ℓ2. A perpendicular crossing makes four equal angles, all 90∘; any other crossing makes two sharp angles and two wide ones.

Why do the slopes multiply to −1? Take the line through the origin with slope 2: from (0,0) it goes 1 right and 2 up, to (1,2). Turn that step a quarter turn counterclockwise and it becomes 2 left and 1 up, to (−2,1), which has slope 1−2=−12. Turning swaps the rise and the run and flips one sign, so the new slope is the negative reciprocal, and 2×(−12)=−1.

Equal slopes are the parallel test, not the perpendicular one, and the plain reciprocal is not enough either: slopes 2 and 12 multiply to 1, and those lines cross at about 37∘, not 90∘. The slope rule also breaks for vertical lines, which have no slope: x=3 and y=−1 are perpendicular even though there is no product to compute. Check for that special case before using the formula.

Think of it like this. Perpendicular lines are like the plus sign on a calculator key: four identical square corners where the bars cross. Tilt one bar and two corners get sharper while the other two get wider, which is why only one crossing angle, 90∘, counts as perpendicular.

Core idea. Two lines are perpendicular when they cross at exactly 90∘ — slopes that multiply to −1.


When to Use

Test for perpendicular lines when a problem mentions a right angle, a square corner, the symbol ⊥, a height or altitude, or the shortest distance from a point to a line. For lines in y=mx+b form, check that m1×m2=−1; to build one, flip the slope and change its sign. If the slopes are equal, the lines are parallel. If either line is vertical, check whether the other is horizontal instead of multiplying.

Tip. Ask: Do the two lines meet at exactly 90∘, with slopes multiplying to −1?

How to Recognize It

Before calling two lines perpendicular, make sure they actually cross, then find the angle between them, either from a marking on the drawing or from their slopes.

  1. Is one line vertical and the other horizontal?

    If yes, they are perpendicular, and the slope product cannot be used because a vertical line has no slope. If only one of them is vertical, the other must be exactly horizontal; any tilt means they cross at some other angle.

  2. Does the diagram mark the crossing with a small square, or do the lines only look square?

    A small square at the crossing means exactly 90∘, so the lines are perpendicular. Looking square proves nothing, since 88∘ looks the same; check slopes or measure. If the angle is clearly not 90∘, the lines are just intersecting.

  3. Does the problem ask for the shortest distance from a point to a line?

    If yes, the shortest path is the perpendicular segment, so build the line through the point with the negative reciprocal slope and find where it meets the first line. If it asks for the distance between two points, use the distance formula.

  4. Is the question about the size of one angle rather than about how two lines relate?

    If yes, it is about a right angle as a measure, such as ∠ABC=90∘ in a triangle. Perpendicular describes the two lines or sides that form that angle, so the two legs of a right triangle are perpendicular to each other.

Perpendicular Lines compared with Perpendicularity, Parallel lines, General intersecting lines, and Right angle (the angle)

Parallel, intersecting and perpendicular all describe how two lines sit relative to each other, and the right angle is the measure that defines one of them. Ask first whether the lines meet at all, and then whether they meet at exactly 90∘.

Perpendicularity

Meaning
Use this when you must test for or build a right angle between two lines.
Key test
Do the two lines meet at exactly 90∘, with slopes multiplying to −1?
Formula
m1×m2=−1 for perpendicular lines (neither vertical)
Example
Line ℓ1 has slope m1=4. What slope must a line perpendicular to it have?

Parallel lines

Meaning
Run the same direction and never meet; slopes are equal, not negative reciprocals.
Key test
Use when lines stay a constant distance apart.
Formula
m1=m2
Example
y=2x and y=2x+3

General intersecting lines

Meaning
Cross at an angle other than 90∘.
Key test
Use when lines meet but not at a right angle.
Formula
solve the system
Example
y=2x and y=x meet but not squarely

Right angle (the angle)

Meaning
The 90∘ measure itself, not a relationship between two whole lines.
Key test
Use when measuring or naming a single angle.
Formula
90∘
Example
One angle of a square

Formula & Notation

m1×m2=−1 for perpendicular lines (neither vertical)
ℓ1⊥ℓ2  ⟺  d⃗1⋅d⃗2=0 where d⃗i are direction vectors; in coordinates (neither vertical): m1⋅m2=−1

How to read it: ⊥ means 'is perpendicular to'; ℓ1⊥ℓ2 means lines meet at 90°

Worked Examples

Example 1 — Find a perpendicular slope

Easy

Line ℓ1 has slope m1=4. What slope must a line perpendicular to it have?
Show the steps and the answer
  1. Set up the condition: m1×m2=−1, so 4×m2=−1.

    ℓ1 has a slope, so it is not vertical and the slope rule applies.

  2. Solve: m2=−14.

    Dividing −1 by 4 gives the negative reciprocal of 4.

  3. Check with steps: ℓ1 goes 1 right and 4 up; a quarter turn makes that 4 left and 1 up, slope 1−4=−14.

    Turning a step by 90∘ swaps rise and run and flips one sign, which matches the answer.

Answer: m2=−14

Takeaway: The perpendicular slope is the negative reciprocal: flip 4 to 14 and change the sign.

Example 2 — Same direction, not square

Standard

Line ℓ2 also has slope 4, like ℓ1. Are they perpendicular?
Show the steps and the answer
  1. Multiply the slopes: 4×4=16.

    Perpendicular lines need a product of −1, and 16 is not −1.

  2. Notice the slopes are equal.

    Lines with equal slopes rise at the same rate and point the same way.

  3. Conclude: parallel, or the same line if the intercepts also match.

    Equal slopes can never give a 90∘ crossing, because such lines never cross at all unless they are identical.

Answer: No — they are parallel

Takeaway: Equal slopes signal parallel lines; a right angle needs slopes whose product is −1, which always have opposite signs.

Example 3 — Find the mistake: a reciprocal slope without the sign change

Application

Find the line through (2,5) perpendicular to y=23x+1. Luis writes: "The perpendicular slope is the reciprocal, 32, so y−5=32(x−2)." Find the mistake and correct it.
Show the steps and the answer
  1. Test Luis's slope: 23×32=1, not −1.

    His line crosses the given one at about 22.6∘, not at a right angle.

  2. Use the negative reciprocal: m=−32.

    Check: 23×(−32)=−1.

  3. Write the line through (2,5): y−5=−32(x−2), so y=−32x+3+5=−32x+8.

    Point-slope form puts the line through the given point with the new slope.

  4. Check the point: −32(2)+8=−3+8=5.

    The line passes through (2,5), as required.

Answer: y=−32x+8

Takeaway: Flip the slope and change its sign; if the two slopes do not multiply to −1, the lines are not perpendicular.

Where You'll See It

  • Builders checking a square corner

    To check that two walls meet at a right angle, builders mark 3 m along one wall and 4 m along the other. If the diagonal between the marks is exactly 5 m, the walls are perpendicular, because 32+42=52 holds only when the angle between them is 90∘.

  • The quickest way to the road

    A hiker at (0,6) on a km grid wants to reach a straight road along the x-axis. The shortest path is the perpendicular, straight down to (0,0): 6 km. Heading to (8,0) instead would take 82+62=10 km.

  • Grid-plan city streets

    In a grid city, streets running east-west cross avenues running north-south at right angles, so every block is a rectangle with four 90∘ corners. That is why a trip can be counted in blocks, such as 3 blocks east and 4 north.

Common Mistakes

  1. The slip: Using equal slopes as the test

    Instead: that is parallel; perpendicular needs the slope product −1.

  2. The slip: Forgetting the negative sign

    Instead: the perpendicular slope is the negative reciprocal, not just the reciprocal.

  3. The slip: Applying the slope rule to a vertical line

    Instead: a vertical and a horizontal line are perpendicular even though slope is undefined.


Mini Practice

Try these on your own. Tap Reveal when you want to check.

  1. A line has slope 23. What is the slope of a line perpendicular to it?

    Hint: Flip the fraction and change its sign.

  2. Are y=−4x+1 and y=14x−2 perpendicular?

    Hint: Multiply the slopes and compare with −1.

  3. Write the equation of the line perpendicular to y=2x+5 that passes through (4,1).

    Hint: Find the perpendicular slope first, then substitute the point to find b.

  4. Triangle A(0,0), B(4,2), C(3,−6). Is the angle at A a right angle?

    Hint: Find the slopes of AB and AC, then multiply them.

  5. One line has slope 3 and another has slope −3. Are they parallel, perpendicular, or neither?

    Hint: Check equal slopes for parallel and a product of −1 for perpendicular.

  6. A student finds the slope perpendicular to m=5 and writes 15. Correct the answer.

    Hint: Multiply 5 by the student's slope. Do you get −1?

Want the full set?

50 practice questions for this concept — free to try, every one with a complete worked solution showing the why, not just the answer.

Frequently Asked Questions

Why do perpendicular slopes multiply to −1?

Turn a line a quarter-turn and its rise and run swap places, with one of them changing sign. A line with slope 23\frac23 goes 3 across and 2 up; turned 90∘90^\circ counterclockwise, it goes 2 to the left and 3 up, so its new slope is 3−2=−32\frac{3}{-2}=-\frac32. Multiplying gives 23⋅(−32)=−1\frac23\cdot\left(-\frac32\right)=-1, and the same swap works for every slope except 0.

Can three lines all be perpendicular to each other?

Not on a flat page: if two lines are both perpendicular to a third, they are parallel to each other. In space, yes. At the corner of a room, the edge along the floor to the left, the edge along the floor to the right and the vertical edge up the corner each make 90∘90^\circ with the other two. That is why 3D coordinates use three axes, xx, yy and zz.

Is a line that touches a circle perpendicular to anything?

Yes, to the radius drawn to the touching point. A tangent line to a circle always meets that radius at 90∘90^\circ. This fact turns many circle problems into right-triangle problems, where the Pythagorean theorem applies: a tangent drawn from a point 10 cm from the center of a circle of radius 6 cm is 8 cm long. You will use it in the lesson on tangents to a circle.

How do builders check that a corner is square without a protractor?

They use the 3-4-5 rule. Mark 3 feet along one wall and 4 feet along the other, then measure between the two marks. If the gap is exactly 5 feet, the corner is 90∘90^\circ, because 32+42=523^2+4^2=5^2 and only a right triangle fits those lengths. Larger multiples, such as 6, 8 and 10, work the same way and give a more accurate check on a big floor.

Learning Path

← Before

LineSlopeAngles
Perpendicular Lines

You are here

You need Line, Slope and Angles first: perpendicular means a 90∘ crossing, and slopes give a way to test for it. This concept adds the negative-reciprocal rule and the vertical-horizontal case. Next, Perpendicular Lines puts it to work: writing the equation of a perpendicular line through a point, perpendicular bisectors, and distances from points to lines.

See Also