Angle Between Two Lines Calculator
Find the acute and obtuse angles between two lines in general form, their intersection point, and whether they are parallel or perpendicular.
Results are rounded for display. Check important answers, especially in assessed or technical work.
What is the angle between two lines?
The angle between two intersecting lines is the smaller of the two angles formed where they cross. It depends only on the lines' directions, so it can be found from their slopes or from the coefficients of their equations, using the tangent of the difference between their angles of inclination.
How to use this calculator
Write each line as ax + by + c = 0 and enter its coefficients. To convert y = mx + k, use a = m, b = −1 and c = k. The calculator gives the angle between the lines, where they cross and how they are related.
Formula
Acute angle θ = arctan |(a₁b₂ − a₂b₁) ÷ (a₁a₂ + b₁b₂)|; for slopes, tan θ = |(m₁ − m₂) ÷ (1 + m₁m₂)|. The lines are parallel when a₁b₂ = a₂b₁ and perpendicular when a₁a₂ + b₁b₂ = 0. Intersection: x = (b₁c₂ − b₂c₁) ÷ (a₁b₂ − a₂b₁), y = (c₁a₂ − c₂a₁) ÷ (a₁b₂ − a₂b₁).
Terms in the formula
- a, b, c
- Coefficients of each line ax + by + c = 0.
- m
- Slope of a line, −a ÷ b.
- θ
- Angle between the lines.
Understanding your result
The acute angle is between 0° and 90°, and the obtuse angle completes 180°. An angle of 90° means the lines are perpendicular; 0° means they are parallel or identical. The intersection point shows where the lines cross, which together with the angle fully describes how they meet.
Calculator credits
Calculator developmentJulia Edwards
Editorial supervisionSamad Aslam Khan
Expert reviewIfrahMSc Mathematics
Published byThe Calculatorz
Last updated
Read how we research, test, review and correct our calculators in our editorial policy.
Frequently asked questions
How do I find the angle between two lines from their slopes?
Use tan θ = |(m₁ − m₂) ÷ (1 + m₁m₂)| and take the inverse tangent. This gives the acute angle.
When are two lines perpendicular?
When the product of their slopes is −1, or in general form when a₁a₂ + b₁b₂ = 0. The angle is then 90°.
When are two lines parallel?
When they have the same slope, so a₁b₂ = a₂b₁. Parallel lines never meet, and the angle between them is 0°.
Why are there two angles?
Two crossing lines form two pairs of equal angles that add up to 180°. The acute angle is usually quoted.
Can one line be vertical?
Yes. In general form a vertical line has b = 0, such as x − 3 = 0, so the calculator handles it without an undefined slope.
How do I find where two lines meet?
Solve the two equations together. The calculator does this and shows the intersection point, unless the lines are parallel.
References & methodology sources
These sources support the calculator’s formula, definitions, thresholds, units or result interpretation.
- Weisstein, E. W. (n.d.). Line-line angle. MathWorld—A Wolfram Web Resource. View source
- Abramson, J. (2021). The rectangular coordinate systems and graphs. In College algebra 2e (Section 2.1). OpenStax. View source
- Abramson, J. (2021). Precalculus 2e. OpenStax. View source
- Abramson, J. (2021). College algebra 2e. OpenStax. View source