Perpendicular Lines: Definition Slope Examples

#Perpendicular Lines
TL;DR
Perpendicular lines are two lines that meet at a right angle, exactly 90°, written AB ⊥ CD. One right angle at the crossing makes all four angles right angles. On a coordinate grid, two slanted lines are perpendicular exactly when their slopes multiply to −1.
Vaishali Tomar·reviewed byShikha SharmaLast updated on December 2, 202616 min read

Key Points

  • Perpendicular means meeting at 90°90°. The symbol is ⊥, so "AB ⊥ CD" reads "AB is perpendicular to CD".
  • If one angle at the crossing is 90°90°, all four are.
  • The perpendicular from a point to a line is the shortest path from the point to that line.
  • For slanted lines, m1×m2=−1m_1 \times m_2 = -1; a horizontal and a vertical line are perpendicular too, with no product to check.

Why a Right Angle Is Worth Checking Twice

Lay out the corner of a garden shed by eye and it will look square, even when it is not. Measure the diagonals later and they disagree, because 2°2° off is invisible to the eye but very visible in finished walls.

  • Builders do not trust their eyes. They turn "is this exactly 90°90°?" into something a tape can measure.
  • That rule, and every other check of a right angle, comes down to perpendicular lines.
  • The word comes from the Latin perpendiculum, a plumb line: the weighted string that hangs straight down and meets a level floor at a right angle.

What Are Perpendicular Lines?

Perpendicular lines are two straight lines that intersect at a right angle, exactly 90°90°.

  • The symbol is ⊥: if line AB is perpendicular to line CD, write AB⊥CDAB \perp CD.
  • In a diagram, a small square in the corner marks the right angle.
  • Euclid (about 300 BCE) explains why 90°90° is special: when one line stands on another and makes the two angles beside it equal, each is a right angle. Two equal angles sharing a straight line's 180°180° are 90°90° each.
perpendicular lines AB and CD meeting at four right angles
Two lines AB and CD crossing at a slant, with four right-angle squares at the crossing and the total 4 × 90° = 360°.

Why one right angle gives you four

You only ever need to find one right angle at a crossing.

  1. Say the angle between rays OB and OC is 90°90°.
  2. The angle beside it on the straight line AB is 180°−90°=90°180° - 90° = 90°.
  3. The other two are vertically opposite angles to these, and opposite angles are equal. So all four are 90°90°, adding to 360°360°.

What Perpendicular Lines Look Like: How to Spot Them

A right angle is a quarter of a full turn (360°÷4=90°360° \div 4 = 90°). Two lines that cross at that quarter turn are perpendicular, and you can see them everywhere.

  • The corner where a wall meets the floor: the wall is perpendicular to the floor.
  • The x-axis and the y-axis on a coordinate plane, perpendicular by design.
  • The letter T: the upright stroke is perpendicular to the bar.
  • A four-way road junction where streets cross at 90°90°.
Pair of lines Do they meet? Angle between them Slopes (slanted lines)
Perpendicular Yes, once Exactly 90°90° m1×m2=−1m_1 \times m_2 = -1
Intersecting, not perpendicular Yes, once Not 90°90° Product not −1-1
Parallel Never 0°0° m1=m2m_1 = m_2
  • Perpendicular lines are a special case of intersecting lines.
  • "Vertical" is a different idea: it describes one line against the ground. Two slanted lines can be perpendicular with neither vertical.
  • To test a drawing, place a protractor at the crossing. If it reads 90°90°, the lines are perpendicular.

How to Construct a Perpendicular Line

A compass and a straightedge draw an exact perpendicular, with no protractor.

Through a point P on the line:

  1. With the compass on P, draw two small arcs cutting the line on either side. Call the crossings A and B, so PA = PB.
  2. Open the compass wider. Draw equal arcs from A and from B above the line; they cross at C.
  3. Join C to P. Then PC⊥ABPC \perp AB.
compass construction of a perpendicular line through a point P
A line with point P, two purple arcs marking A and B at equal distances, two green arcs of radius 3.6 from A and B meeting at C, and the orange line PC meeting the base line at 90 degrees.

Why it works:

  • CA = CB, PA = PB and CP is shared, so triangles CPA and CPB are congruent (SSS).
  • So ∠CPA=∠CPB\angle CPA = \angle CPB, two equal angles on a straight line, each 90°90°.

From a point C off the line, draw an arc from C cutting the line at A and B. Equal arcs from A and B on the far side cross at D, and CD is perpendicular to AB.

Properties of Perpendicular Lines

Four properties come up again and again, and each follows from the 90°90° itself.

The perpendicular is the shortest distance

Drop a perpendicular from a point P to a line, meeting it at F (the "foot"). Take any other point Q on the line.

  • Triangle PFQ has a right angle at F, so PQ2=PF2+FQ2PQ^2 = PF^2 + FQ^2 by Pythagoras.
  • FQ2FQ^2 is positive, so PQ is longer than PF. Every slanted path is longer.
  • That is why "the distance from a point to a line" always means the perpendicular distance, and why a triangle's height is a perpendicular.
the perpendicular from a point to a line is shorter than any slanted path
A point P above a line with the perpendicular PF of length 3.60 and two dashed slanted paths of lengths 5.53 and 4.50.

Exactly one perpendicular through a given point

Through any point, on the line or off it, there is exactly one perpendicular to a given line. Two such lines would share the point and the 90°90°, so they would be the same line.

Two perpendiculars to the same line are parallel

If lines p and q are both perpendicular to line r, then p and q are parallel in a flat plane.

  • The two right angles sit on the same side of r, and 90°+90°=180°90° + 90° = 180°, the condition for parallel lines.
  • City grids work this way: every street perpendicular to one main road runs parallel to the others.
two streets perpendicular to the same road are parallel
A street map: Main Road runs across, 1st Street and 2nd Street cross it at right angles, with the two right angles marked between the streets and the note 90° + 90° = 180°.

The perpendicular bisector

A line perpendicular to a segment and through its midpoint is the perpendicular bisector of that segment. Every point on it is equally far from both ends; the construction above builds one.

The Slope of Perpendicular Lines: Why It Works

On a coordinate grid you can check perpendicularity without measuring any angle. Two non-vertical lines are perpendicular exactly when their slopes multiply to −1:

m1×m2=−1som2=−1m1m_1 \times m_2 = -1 \qquad \text{so} \qquad m_2 = -\frac{1}{m_1}
  • The perpendicular slope is the negative reciprocal: flip the fraction and change the sign.
  • The partner of 34\tfrac{3}{4} is −43-\tfrac{4}{3}; the partner of −2-2 is 12\tfrac{1}{2}.

Why the slopes multiply to −1

Memorising the rule without its reason is fragile, so here is the picture.

  1. A line with slope 34\tfrac{3}{4} runs 4 to the right and rises 3.
  2. Turn that slope triangle a quarter-turn clockwise. The run of 4 becomes a drop of 4, and the rise of 3 becomes a run of 3.
  3. The turned line has slope −43\tfrac{-4}{3}. A quarter-turn always swaps rise and run and flips one sign, so ab\tfrac{a}{b} becomes −ba-\tfrac{b}{a}, and the product is −1-1.
turning a slope triangle a quarter-turn changes slope 3/4 into −4/3
A grid with the blue line of slope 3/4 and its slope triangle (run 4, rise 3), and the orange line of slope −4/3 with the same triangle turned a quarter-turn (rise −4, run 3), meeting at a right angle at the origin.
  • The two slopes always have opposite signs, so a rising line's perpendicular always falls.
  • A gentle line (slope between −1-1 and 11) has a steep partner. The balanced pair is 11 and −1-1, the diagonals of a square grid.

The one pair the test cannot check

A horizontal line has slope 00, and a vertical line has no slope (its run is zero).

  • They are always perpendicular, as the x-axis and y-axis show.
  • But 0×(undefined)0 \times (\text{undefined}) is not a number, so treat this pair as its own case.

In the tool, press Perpendicular to load slopes ½ and −2 and see m1×m2=−1m_1 \times m_2 = -1 with a right-angle mark. Drag one handle a step and the angle moves off 90°90°.

Try It Yourself

Use the coordinate lab to see Perpendicular Lines at work: drag, change the numbers and watch what happens.

Worked Examples: Finding Perpendicular Slopes and Equations

Example 1

A line has slope 25\tfrac{2}{5}. What is the slope of a line perpendicular to it?

  1. The tempting move is to flip the fraction and stop: 52\tfrac{5}{2}.
  2. Check it: 25×52=1\tfrac{2}{5} \times \tfrac{5}{2} = 1, not −1-1. Both slopes are positive, and two rising lines can never meet at 90°90°.
  3. Flip and change the sign: −52-\tfrac{5}{2}. Check: 25×(−52)=−1\tfrac{2}{5} \times \left(-\tfrac{5}{2}\right) = -1.

Final answer: −52-\tfrac{5}{2}. The sign is what makes the turn exactly 90°90°.

Example 2

Are the lines y=3x+2y = 3x + 2 and x+3y=9x + 3y = 9 perpendicular?

  1. The first slope is 33.
  2. Solve the second for yy: 3y=−x+93y = -x + 9, so y=−13x+3y = -\tfrac{1}{3}x + 3, slope −13-\tfrac{1}{3}.
  3. Product: 3×(−13)=−13 \times \left(-\tfrac{1}{3}\right) = -1.

Final answer: yes, they are perpendicular.

Example 3

Find the equation of the line through (6,1)(6, 1) perpendicular to y=3x−4y = 3x - 4.

  1. The given slope is 33, so the perpendicular slope is −13-\tfrac{1}{3}.
  2. Point-slope form with (6,1)(6, 1): y−1=−13(x−6)y - 1 = -\tfrac{1}{3}(x - 6).
  3. Expand: y−1=−13x+2y - 1 = -\tfrac{1}{3}x + 2, so y=−13x+3y = -\tfrac{1}{3}x + 3.
  4. Check the point: −13(6)+3=1-\tfrac{1}{3}(6) + 3 = 1.

Final answer: y=−13x+3y = -\tfrac{1}{3}x + 3.

Example 4

Does the triangle with corners A(1, 2), B(4, 6) and C(8, 3) have a right angle? If so, where?

  1. Slope of AB: 6−24−1=43\dfrac{6 - 2}{4 - 1} = \dfrac{4}{3}.
  2. Slope of BC: 3−68−4=−34\dfrac{3 - 6}{8 - 4} = -\dfrac{3}{4}. Slope of AC: 3−28−1=17\dfrac{3 - 2}{8 - 1} = \dfrac{1}{7}.
  3. AB and BC: 43×(−34)=−1\tfrac{4}{3} \times \left(-\tfrac{3}{4}\right) = -1, so AB⊥BCAB \perp BC.
  4. Pythagoras agrees: AB=5AB = 5, BC=5BC = 5, and AC2=72+12=50=52+52AC^2 = 7^2 + 1^2 = 50 = 5^2 + 5^2.

Final answer: yes, the right angle is at B.

slopes 4/3 and −3/4 show the right angle of the triangle is at B
The triangle A(1, 2), B(4, 6), C(8, 3) on a grid, sides labelled with slopes 4/3, −3/4 and 1/7, and the right angle at B marked 90 degrees.

Move C to (7,2)(7, 2) and the answer changes: the slopes become 43\tfrac{4}{3}, −43-\tfrac{4}{3} and 00, no pair multiplies to −1-1, and the angle at B is about 73.7°73.7°.

Example 5

Find the distance from the point P(5, 0) to the line y=2xy = 2x.

  1. The shortest distance runs along the perpendicular, slope −12-\tfrac{1}{2}: y=−12(x−5)y = -\tfrac{1}{2}(x - 5).
  2. It meets y=2xy = 2x where 2x=−12x+2.52x = -\tfrac{1}{2}x + 2.5, so x=1x = 1, y=2y = 2. The foot is F(1, 2).
  3. PF=(5−1)2+(0−2)2=20=25PF = \sqrt{(5 - 1)^2 + (0 - 2)^2} = \sqrt{20} = 2\sqrt{5}.

Final answer: 25≈4.472\sqrt{5} \approx 4.47 units.

the distance from P(5, 0) to y = 2x is the perpendicular PF
The line y = 2x on a grid, the point P(5, 0), and the orange perpendicular from P meeting the line at F(1, 2) with a right-angle mark and length 4.47.

Example 6

Find the line through (−2,1)(-2, 1) perpendicular to y=4y = 4.

  1. y=4y = 4 is horizontal, so −1m-\tfrac{1}{m} would mean dividing by zero. Don't.
  2. A line perpendicular to a horizontal line is vertical.
  3. The vertical line through (−2,1)(-2, 1) is x=−2x = -2.

Final answer: x=−2x = -2.

The Mathematicians Who Shaped Perpendicularity

People built right angles long before anyone proved why they work, and three mathematicians turned the craft into theory.

  • Euclid of Alexandria (about 300 BCE) did not invent perpendicular lines; he proved how to draw them. Elements, Book I, Propositions 11 and 12 give the two constructions above, unchanged for over 2,000 years.
  • Thales of Miletus (about 624 to 546 BCE) is credited with some of the earliest Greek results about angles, including the right angle in a semicircle.
  • René Descartes (1596 to 1650) set two perpendicular axes at the heart of coordinate geometry, which is where the m1×m2=−1m_1 \times m_2 = -1 rule lives.

Rope came first. The Baudhayana Sulbasutra, an Indian manual for laying out fire altars from about 800 BCE, uses stretched cords and states the rope version of Pythagoras' theorem. A popular story credits Egyptian "rope-stretchers" with the 3-4-5 method too; it is plausible, but no surviving Egyptian text describes it.

Where Perpendicular Lines Do Real Work

Perpendicular lines hold up buildings, organise screens and give the shortest routes.

  • The 3-4-5 rope. A loop with 12 equal gaps pulls into a 3-4-5 triangle. Since 32+42=25=523^2 + 4^2 = 25 = 5^2, the converse of Pythagoras' theorem guarantees a right angle. Builders mark 3 m and 4 m along two walls; the corner is square when the diagonal is exactly 5 m.
  • Walls, frames and screens. A wall stands perpendicular to the floor so its weight presses straight down. Door frames and screens are grids of perpendicular rows and columns.
  • Shortest routes. A pipe from a house to a straight main, or a path from a bus stop to a road, follows a perpendicular.
a 3-4-5 knotted rope triangle makes a right angle
A knotted rope pulled into a 3-4-5 triangle, with 12 knots at equal gaps, sides labelled 3, 4 and 5 and the corner between 3 and 4 marked 90 degrees.

Common Mistakes With Perpendicular Lines

Mistake 1: Flipping the slope but keeping the sign

Where it slips in: Finding the slope perpendicular to a positive slope such as 34\tfrac{3}{4}.

Don't do this: Write 43\tfrac{4}{3}. Then 34×43=+1\tfrac{3}{4} \times \tfrac{4}{3} = +1, and the lines cross at about 16°16°, nowhere near 90°90°.

The correct way: Flip and change the sign, −43-\tfrac{4}{3}, then multiply to check for −1-1. A student who memorised "negative reciprocal" as a phrase can recite it and still write the positive version; the product check catches it.

Mistake 2: Trusting what looks like 90°

Where it slips in: A sketch shows two lines crossing like a plus sign, with no right-angle mark.

Don't do this: Assume the angle is 90°90° because it looks square.

The correct way: Use only what is given or provable: a right-angle square, a statement like AB⊥CDAB \perp CD, slopes with product −1-1, or sides that satisfy Pythagoras. A line at 88°88° looks identical to one at 90°90°.

Mistake 3: Using −1/m on a horizontal line

Where it slips in: Finding the line perpendicular to something like y=4y = 4, whose slope is 00.

Don't do this: Write −10-\tfrac{1}{0} and try to simplify it.

The correct way: Perpendicular to horizontal is vertical (x=cx = c); perpendicular to vertical is horizontal (y=cy = c). The product rule is only for two slanted lines.

Perpendicular Lines in Coordinate Geometry: Quick Reference

Relationship Rule Example
Perpendicular slopes m1×m2=−1m_1 \times m_2 = -1 slopes 22 and −12-\tfrac{1}{2}
Finding the perpendicular slope m2=−1m1m_2 = -\tfrac{1}{m_1} m1=35m_1 = \tfrac{3}{5} gives m2=−53m_2 = -\tfrac{5}{3}
Perpendicular to a horizontal line Vertical, no slope y=4y = 4 gives x=cx = c
Perpendicular to a vertical line Horizontal, slope 00 x=3x = 3 gives y=cy = c
Perpendicular through a point y−y1=m2(x−x1)y - y_1 = m_2(x - x_1) See Example 3

Key Takeaways

  • Perpendicular lines meet at exactly 90°90°, and one right angle at a crossing makes all four right angles.
  • A compass construction draws them exactly, and SSS congruence proves it works.
  • The perpendicular is the shortest route from a point to a line, and two perpendiculars to one line are parallel.
  • On a grid, slanted lines are perpendicular when their slopes multiply to −1-1, because a quarter-turn swaps rise and run and flips a sign.
  • The 3-4-5 triangle turns a right angle into three lengths a tape can check.

Next Steps

Work through these, then check your answers.

  1. Find the equation of the line perpendicular to y=−23x+5y = -\tfrac{2}{3}x + 5 through (0,0)(0, 0).
  2. Is the line through (0,0)(0, 0) and (3,2)(3, 2) perpendicular to the line through (0,0)(0, 0) and (−2,3)(-2, 3)?

Answer to Question 1: the perpendicular slope is 32\tfrac{3}{2}, so y=32xy = \tfrac{3}{2}x.

Answer to Question 2: yes. The slopes are 23\tfrac{2}{3} and −32-\tfrac{3}{2}, and their product is −1-1. Draw both on squared paper and measure the angle: it should be 90°90°.

If the slope step trips you up, go back to Example 1; if point-slope form is the problem, go back to Example 3. Then tie 12 equally spaced knots in a string and pull it into a 3-4-5 triangle to make your own right angle.

To practise geometry like this with a teacher, explore Bhanzu's math classes online.

Want a live Bhanzu trainer to walk your child through lines, angles and coordinate geometry? Book a free demo class, online globally, or in person at our McKinney, TX center.

Read More

Research Behind This Article

  1. Euclid, Elements, Book I, Definition 10 and Propositions 11 and 12, with commentary by D. E. Joyce, Clark University. mathcs.clarku.edu
  2. Euclid, Elements, Book I, Proposition 48 (the converse of Pythagoras' theorem), D. E. Joyce, Clark University. mathcs.clarku.edu
  3. OpenStax, College Algebra 2e, Section 4.1: Linear Functions (slopes of parallel and perpendicular lines). openstax.org
  4. J. J. O'Connor and E. F. Robertson, The Indian Sulbasutras, MacTutor History of Mathematics, University of St Andrews. mathshistory.st-andrews.ac.uk
  5. Euclid, Elements, Book III, Proposition 31 (the angle in a semicircle is a right angle), with commentary by D. E. Joyce, Clark University. mathcs.clarku.edu

Quick Quiz: Check Yourself

Three levels, questions with figures, instant feedback with the reason.

Was this article helpful?

Your feedback helps us write better content

Frequently Asked Questions

What is the difference between perpendicular lines and parallel lines?
Parallel lines never meet and have equal slopes. Perpendicular lines meet once, at 90°90°, and their slopes multiply to −1-1.
Is "perpendicular" the same as "vertical"?
No. Vertical describes one line pointing straight up and down. Perpendicular describes two lines meeting at a right angle, and both can be slanted.
Can three perpendicular lines exist together?
Not on a flat page: two lines perpendicular to a third are parallel to each other. In three dimensions, yes. The x, y and z axes, like the three edges at a room's corner, are each perpendicular to the other two.
If a slope is negative, is the perpendicular slope positive?
Yes. The partner of −4-4 is −1−4=14-\tfrac{1}{-4} = \tfrac{1}{4}, and (−4)×14=−1(-4) \times \tfrac{1}{4} = -1 confirms it.
Is a right angle always 90°?
Yes. A right angle is defined as exactly 90°90°.
Where do perpendicular lines appear later in mathematics?
In vectors. Two vectors are "orthogonal" when their dot product is zero, which is the 90°90° idea in any number of dimensions.
✍️ Written By
Vaishali Tomar
Vaishali Tomar
Subject Matter Expert
Vaishali Tomar is an educator and content specialist with over four years of experience teaching and developing learning resources for students from UKG to Grade 8. At Bhanzu, she creates lesson plans, assessments and educational content that simplify math through structured, student-friendly learning. She holds an M.Sc. in Computer Science and co-founded Qeemle, an online magazine, during her college years, which built her skills in content creation and editing.
LinkedIn
🔬 Reviewed By
Shikha Sharma
Subject Matter Expert
Related Articles
Book a FREE Demo ClassBook Now →