Key Points
- A line's slope is the tangent of its angle of inclination: .
- The angle between two lines is the difference of their inclinations, which gives .
- The absolute value picks the acute angle of the two at a crossing, and .
- Equal slopes give ; gives .
- A vertical line has no slope, so use minus the other line's inclination.
Two Roads Cross at a Junction, but at What Angle?
Two slope numbers are enough to find the exact angle between two roads at a junction.
- A main road runs with slope , and a side road joins it with slope .
- You could draw both and use a protractor, or use the slopes: the angle between two lines here is .
- This is a big idea from coordinate geometry: a slope carries an angle inside it.
- The crossing point is not needed, because sliding a line sideways keeps its slope.
What Is the Angle Between Two Lines?
Two crossing lines make two equal acute angles and two equal obtuse angles that add to .
- By convention, the angle between two lines is the acute one, .
- Perpendicular lines give ; parallel lines give .
- Each line has an angle of inclination , measured anticlockwise from the positive x-axis, from up to .
- The slope is its tangent: . Slope 1 means ; slope 3 means about .
- A negative slope means is between and .
Why the Formula Works: Inclinations and the Tan Subtraction Formula
Since each slope is the tangent of an inclination, the angle between the lines is the difference of their inclinations.
- Take and , crossing at , with inclinations and .
- In the triangle with the x-axis, is an outside angle, so it equals the two far interior angles, .
- So .

The tangent subtraction formula, with and , gives
- Here , and : the picture and the formula agree.
Why the absolute value?
- The working formula wraps that fraction in bars: .
- For and the fraction is , the tangent of the obtuse .
- Since , the bars keep the acute .

How Do You Find the Angle Between Two Lines?
With the formula explained, pick the method that matches what you are given.
From two slopes:
From two equations and :
From direction vectors, in 3D, where lines need not meet:
- Get both slopes: from , from two points, or from .
- Check the special cases: equal slopes give , product gives , a vertical line needs .
- Substitute and take the inverse tangent. For the obtuse angle, subtract from .
What Are the Conditions for Parallel and Perpendicular Lines?
Two special cases fall straight out of the formula.
- Parallel lines share an inclination, so , and .
- Perpendicular lines have , so the bottom is zero.
- The tangent grows without limit near , so that zero signals : the rule for the slope of perpendicular lines.
And a vertical line?
- A vertical line has no slope but has inclination .
- It meets a line of inclination at (or if is obtuse).
- A line of slope has , so it meets a vertical line at .

Try It Yourself
Use the coordinate lab to see Angle Between Two Lines at work: drag, change the numbers and watch what happens.
When the Lines Come in General Form
Substituting into the slope formula gives the general-form version.
- A second route also handles vertical lines: is a normal (a perpendicular arrow) to .
- The angle between the normals equals the angle between the lines, using the angle between two vectors:
- For and : normals and give , so .
- The slopes and give , the same angle.

Three Lines Make a Triangle: A Built-In Check
Add to the two lines from the derivation, and the three enclose a triangle.
| Pair of lines | Slopes | ||
|---|---|---|---|
| first and second | and | ||
| second and third | and | ||
| first and third | and |
- The angles add to , as a triangle's must.
- If three acute answers do not add to , one corner is obtuse: use its supplement.
- In the tool above, "Add a third line" lets you try this.
Examples of Angle Between Two Lines
Example 1
Find the acute angle between two lines with slopes and .
- .
- .
Final answer: .
Example 2
Find the angle between and .
- The formula written upside down gives and , but a sketch shows a near right angle.
- Use slopes and : .
- The flipped version gave the complement: .
Final answer: .

Example 3
Two lines have slopes and . Find the angle between them.
- The product is , so .
Final answer: ; the lines are perpendicular.
Example 4
One line passes through and ; another through and . Find the acute angle between them.
- and .
- . The lines meet at the origin.
Final answer: .

Example 5
Find the acute angle between the vertical line and the line .
- The second line has .
- . Normals and agree. ✓
Final answer: .
Example 6
A line through the origin makes a angle with a line of slope . Find every possible slope .
- , so .
- The plus sign gives ; the minus sign gives .
- Dropping the absolute value loses the second answer.
Final answer: or .
What Are the Most Common Mistakes With the Angle Between Two Lines?
Most slips involve the absolute value or the special cases.
Mistake 1: Dropping the absolute value
- Where it slips in: Slopes with opposite signs, such as 2 and .
- Don't do this: Report as .
- The correct way: A negative fraction is the obtuse angle's tangent; keep the bars. Over means use .
Mistake 2: Pushing the perpendicular case into a calculator
- Where it slips in: Slopes such as and .
- Don't do this: Divide by zero and write "error".
- The correct way: Check first. If it is , the answer is .
Mistake 3: Using the slope formula with a vertical line
- Where it slips in: Lines such as .
- Don't do this: Give the vertical line a slope of 0.
- The correct way: A vertical line has no slope (slope 0 is horizontal). Use or normals.
Mistake 4: Mixing up the angle with its complement
- Where it slips in: The general-form formula, written from memory.
- Don't do this: Swap its top and bottom.
- The correct way: A flipped formula gives (Example 2). Rebuild it from slopes and sketch; see parallel and perpendicular lines.
Why Does the Angle Between Two Lines Matter?
Anything that compares two directions uses it.
- Road junctions. Slopes and give , so . Near , drivers see both ways.
- Camera field of view. Edges of slopes and give about .
- Ramps. US accessibility standards cap a ramp at 1 in 12, only about above level ground.

Conclusion
- The angle between two lines is , because each slope is the tangent of the line's inclination.
- Slopes, line coefficients (or their normals) and 3D direction vectors all give the same angle.
- Parallel lines give , perpendicular lines , and a vertical line needs .
- To work through more of these with a teacher, explore Bhanzu's geometry tutor or a high school math tutor, or join structured math classes online.
Practice These to Solidify Your Understanding
Check the slope refresher if any step feels shaky.
- Find the acute angle between lines with slopes and .
- Find the angle between and .
- Find the angle between the 3D lines with direction vectors and .
Answer to Question 1: , so .
Answer to Question 2: the slopes and multiply to , so .
Answer to Question 3: , so .
If Question 1 came out as or , go back to the absolute-value section.
Want a live Bhanzu trainer to walk through more angle-between-lines problems with your child? Book a free demo class, online globally, or in person at our McKinney, TX center.
Read More
- Finding Slope From Two Points
- Slope Intercept Form of a Line
- Point Slope Form
- Perpendicular Lines
- Intersection of Two Lines
- Distance Between Two Lines
- Analytical Geometry
Research Behind This Article
- OpenStax, Precalculus 2e, Section 7.2: Sum and Difference Identities. openstax.org
- OpenStax, Calculus Volume 3, Section 2.3: The Dot Product. openstax.org
- U.S. Access Board, ADA Accessibility Standards, Section 405.2 (maximum ramp running slope of 1:12). access-board.gov
- OpenStax, Precalculus 2e, Section 2.2: Graphs of Linear Functions (slopes of parallel and perpendicular lines). openstax.org
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
Can the angle between two lines be negative?
What is the angle between two parallel lines?
Why is the angle between perpendicular lines not given by the formula directly?
What if one line is vertical?
How do you find the angle between two lines in 3D?
What is the angle between a line and the x-axis?
