How Can You Tell If Lines Are Perpendicular? 4 Easy Tests

By culbreath Editorial · 2026-10-10 · 7 min read

You can tell if two lines are perpendicular by checking whether they meet at a 90° angle. The most reliable tests are: multiply their slopes — the product equals −1 for perpendicular lines (unless one is vertical and the other horizontal); look for a right-angle mark or verify with a protractor; or use the dot product of direction vectors, which equals 0. Whether you’re eyeballing a corner or working through algebra, the question comes down to one core idea: a perfect right angle.

Test 1: Check the Slopes (the Negative Reciprocal Rule)

This is the fastest algebraic test. If two non-vertical lines are perpendicular, their slopes multiply to −1. Equivalently, each slope is the negative reciprocal of the other.

Say one line has a slope of 2. Its negative reciprocal is −1/2, because you flip the fraction and change the sign. If the second line has a slope of −1/2, the lines are perpendicular. Check it: 2 × (−1/2) = −1. ✓

A quick table shows the pattern:

Slope of line 1 Perpendicular slope Product
3 −1/3 −1
−4 1/4 −1
1/2 −2 −1
−2/3 3/2 −1

Notice that a shallow line always pairs with a steep one, and the signs always oppose. The reasoning comes from the geometry of right triangles: when you rotate a line 90°, its rise and run swap roles, which is exactly what the negative reciprocal does. Khan Academy walks through this derivation if you want the full proof.

The Vertical and Horizontal Exception

There’s one case the slope formula can’t handle: vertical lines have an undefined slope, so you can’t multiply anything by −1. The rule here is simpler. Any vertical line is perpendicular to any horizontal line, because they form a perfect right angle at their intersection.

So if you’re staring at x = 5 and y = −3, don’t reach for the calculator — the answer is yes, they’re perpendicular. This special case trips up a lot of students, so it’s worth memorizing separately.

Test 2: Use the Dot Product of Direction Vectors

When you’re working in vectors or coordinate geometry, the dot product is the cleanest test. Two vectors are perpendicular exactly when their dot product equals zero.

Give each line a direction vector — the arrow pointing along the line. Multiply the matching components and add the results. If the sum is 0, the lines are perpendicular.

Worked example: Line A has direction vector ⟨3, 4⟩. Line B has direction vector ⟨4, −3⟩. Compute the dot product:

(3)(4) + (4)(−3) = 12 − 12 = 0

The result is zero, so the lines are perpendicular. This method is especially handy in three dimensions, where slope doesn’t exist but vectors still do. Math Open Reference has a clear diagram of how direction vectors relate to line orientation.

Why does this work? The dot product measures how much two vectors point in the same direction. When the result is zero, they share no common direction at all — they’re at right angles.

Test 3: Measure the Angle Directly

Sometimes you don’t need algebra. If you have a physical drawing or a diagram, just measure the angle at the intersection.

  • Protractor method: Place the protractor’s center on the intersection point. If the angle reads 90°, the lines are perpendicular.
  • Right-angle mark: In textbooks and blueprints, a small square drawn in the corner indicates a right angle.
  • Corner test: A sheet of paper, a book corner, or a carpenter’s square has true 90° corners. Line it up with the intersection to check by eye.

Be careful with the “looks perpendicular” shortcut. Our eyes are unreliable — an angle just off 90° can look perfectly square at a glance. The right-angle symbol or an actual measurement removes the guesswork.

Perpendicular vs. Parallel — Don’t Mix Them Up

It’s easy to confuse the two tests, so here’s the distinction in one line: parallel lines have equal slopes; perpendicular lines have negative reciprocal slopes.

Relationship Slope rule Angle
Parallel m₁ = m₂ 0°
Perpendicular m₁ × m₂ = −1 90°

Two lines with slopes of 5 and 5 are parallel. Two lines with slopes of 5 and −1/5 are perpendicular. Same starting number, very different outcome — this is the single most common mix-up on tests. Purplemath covers the parallel case in detail if you need a refresher.

Test 4: Verify with the Pythagorean Theorem

This test works when the perpendicular lines form a triangle with a third line. If a triangle has a right angle, its sides satisfy the Pythagorean theorem: a² + b² = c², where c is the longest side (the hypotenuse).

Say you’re given a triangle with sides 3, 4, and 5. Check: 3² + 4² = 9 + 16 = 25, and 5² = 25. They match, so the triangle has a right angle — and the two shorter sides are perpendicular.

This is useful on coordinate grids. Find the lengths of all three sides with the distance formula, then plug them into a² + b² = c². If the equation balances, the two lines meeting at the right angle are perpendicular.

One caution: always identify the longest side as c. If you plug the numbers into the wrong spots, you’ll get a false negative.

Test 5: Compare the Equations of the Lines Directly

If both lines are given in standard form — Ax + By = C — there’s a shortcut that avoids converting to slope-intercept form. Two lines are perpendicular when their A and B coefficients swap and one sign flips.

Consider these two equations:

  • 2x + 3y = 6
  • 3x − 2y = 4

Look at the coefficients of x and y. In the first line they’re (2, 3); in the second they’re (3, −2). The numbers have traded places, and one sign has flipped into a negative. That’s the signature of perpendicular lines in standard form.

You can confirm it by converting to slope form. Solve the first equation for y:

3y = −2x + 6, so y = (−2/3)x + 2. The slope is −2/3.

Now the second:

−2y = −3x + 4, so y = (3/2)x − 2. The slope is 3/2.

Multiply them: (−2/3) × (3/2) = −6/6 = −1. ✓ The lines are perpendicular.

Using Perpendicularity to Find a Missing Value

Test your understanding with a problem that reverses the usual setup. Suppose a line passes through the points (1, 2) and (5, 10), and a second line passes through (3, 4) and (k, −2). What value of k makes the lines perpendicular?

Step one: find the slope of the first line.

Slope = (10 − 2) / (5 − 1) = 8/4 = 2.

Step two: the second line’s slope must be the negative reciprocal, which is −1/2.

Step three: use the two known points on the second line, (3, 4) and (k, −2), and set the slope formula equal to −1/2.

(−2 − 4) / (k − 3) = −1/2 −6 / (k − 3) = −1/2

Cross-multiply: −6 × 2 = −1 × (k − 3), so −12 = −k + 3. Solving gives k = 15.

Check: the slope from (3, 4) to (15, −2) is (−2 − 4)/(15 − 3) = −6/12 = −1/2, and 2 × (−1/2) = −1. ✓ This style of problem appears often because it tests both the slope rule and basic algebra at once.

Key Takeaways

  • The core definition: perpendicular lines intersect at exactly 90°. Every test here is just a different way of confirming that right angle.
  • Slope test (fastest): two lines are perpendicular if their slopes multiply to −1, meaning each is the negative reciprocal of the other.
  • Vertical/horizontal exception: a vertical line and a horizontal line are always perpendicular, even though vertical slope is undefined.
  • Dot product test: direction vectors are perpendicular when their dot product equals 0 — the go-to method in 3D.
  • Measurement test: use a protractor, a right-angle mark, or a square corner when you can see the lines.
  • Pythagorean test: if a triangle’s sides satisfy a² + b² = c², the two shorter sides are perpendicular.
  • Safe habit: don’t trust your eyes alone. Verify with math or a tool, because near-90° angles look deceptively square.

Frequently Asked Questions

How can you tell if two lines are perpendicular by their slopes?
Two lines are perpendicular if their slopes are negative reciprocals of each other. That means multiplying the slopes gives -1, like 2 and -1/2. One exception is a horizontal line (slope 0) and a vertical line (undefined slope), which are also perpendicular.
What does it mean if the product of two slopes is -1?
If the product of two slopes equals -1, the lines are perpendicular. For example, slopes 3 and -1/3 multiply to -1, so those lines cross at a right angle. This is the quickest algebraic test.
Do perpendicular lines always form four right angles?
Yes, when two lines are perpendicular they intersect at a 90-degree angle, which creates four right angles around the intersection point. Each of the four angles is exactly 90 degrees.
Can you tell if lines are perpendicular just by looking at a graph?
Visually, perpendicular lines look like they meet in a perfect corner or plus sign, forming a 90-degree angle. However, graphs can be misleading, so it's safer to check the slopes or use the product-of-slopes rule.
Are horizontal and vertical lines perpendicular?
Yes, a horizontal line and a vertical line are always perpendicular. The horizontal line has slope 0 and the vertical line has an undefined slope, and they meet at a right angle.
perpendicular linesslopesgeometrydot productright angles

References

← Back to home