Calculate the angle between two lines using slopes or standard form equations with step-by-step solutions
The angle between two lines is always between 0° and 90° (acute) or between 90° and 180° (obtuse). Two lines are parallel if the angle between them is 0° and perpendicular if the angle is 90°.
Enter the slopes or equations of two lines to see the step-by-step calculation.
1. Select your input method: either using slopes or line equations.
2. Enter the values for the two lines.
3. The calculator will automatically compute the angles (or click Calculate if auto-calculation is off).
4. View the results in degrees and radians.
5. Explore the calculation steps and graphical representation in the respective tabs.
Acute Angle: The smaller angle between the two lines (0° ≤ θ ≤ 90°).
Obtuse Angle: The larger angle between the two lines (90° < θ ≤ 180°).
The sum of the acute and obtuse angles between two lines is always 180°.
From Slopes (m₁ and m₂):
θ = tan⁻¹(|(m₁ - m₂) / (1 + m₁m₂)|)
From Line Equations (A₁x + B₁y + C₁ = 0 and A₂x + B₂y + C₂ = 0):
θ = tan⁻¹(|(A₁B₂ - A₂B₁) / (A₁A₂ + B₁B₂)|)
Note: If the denominator is zero, the lines are perpendicular (θ = 90°).
This calculator determines the angle formed where two straight lines intersect on a plane. It computes both:
The tool automatically handles special cases like parallel lines (0°), perpendicular lines (90°), and vertical/horizontal combinations.
The angle between two lines is a fundamental geometric measurement that describes how sharply two lines turn away from each other at their intersection point.
The calculation is based on trigonometry and the relationship between line slopes. The tangent of the angle relates directly to the difference in steepness between the two lines.
The formula finds how much more steep one line is compared to another:
θ = tan⁻¹(|(m₁ - m₂) / (1 + m₁m₂)|)
Imagine two lines making angles α and β with the x-axis. Their slopes are m₁ = tan(α) and m₂ = tan(β). The angle between them is |α - β|. Using tangent subtraction formula: tan(α - β) = (tanα - tanβ) / (1 + tanα tanβ) = (m₁ - m₂) / (1 + m₁m₂).
θ = tan⁻¹(|(A₁B₂ - A₂B₁) / (A₁A₂ + B₁B₂)|)
This is mathematically equivalent to the slope formula since m₁ = -A₁/B₁ and m₂ = -A₂/B₂. The calculator converts equations to slopes internally.
| Angle Value | Geometric Meaning | Visual Description |
|---|---|---|
| 0° | Parallel lines | Lines run in exactly same direction, never meet |
| 0° < θ < 90° | Acute angle | Lines form a sharp corner, like letter "V" |
| 90° | Perpendicular lines | Lines form perfect "L" shape, right angle |
| 90° < θ < 180° | Obtuse angle | Lines form wide opening, like open scissors |
| 180° | Collinear opposite directions | Lines form straight line but point opposite ways |
Road Intersection Design: Civil engineers use angle calculations to design safe intersections. Angles closer to 90° allow better visibility, while acute angles create blind spots. The calculator helps determine if an intersection meets safety standards.
Forgetting that the formula gives the acute angle by default. When lines form an obtuse angle, students must remember to subtract from 180° to get the acute angle, or use the obtuse angle result provided by the calculator.
Radians = Degrees × (π/180) Degrees = Radians × (180/π)
Slope is a unitless ratio (rise/run). If both axes use the same units (meters, feet, etc.), slope has no units. If axes use different units, slope has units of (vertical units)/(horizontal units).
High Precision Needed:
Approximation Acceptable:
When slopes are very large (approaching vertical), the formula (m₁ - m₂)/(1 + m₁m₂) can become numerically unstable due to floating-point limitations. The calculator includes special handling for near-vertical lines to maintain accuracy.
Lines with slopes 2 and -0.5
What angle do you expect?
Line 1: 3x + 4y = 12
Line 2: 4x - 3y = 8
Are they perpendicular?
Vertical line and line with slope 0.577
What's the angle?
(Hint: 0.577 ≈ tan(30°))
"Slope Difference Over One Plus Product" - This phrase helps remember the formula: θ = arctan(|(m₁ - m₂)/(1 + m₁m₂)|)
| Visual Pattern | What It Means | Typical Angle |
|---|---|---|
| Lines overlap | Same line or coincident | 0° (but infinite intersections) |
| Lines run parallel | Same slope, different position | 0° (never intersect in plane) |
| Lines form "X" shape | Intersecting at center | Depends on steepness |
| Lines form "L" shape | Perpendicular intersection | Exactly 90° |
| Lines form "V" shape | Acute angle intersection | Between 0° and 90° |
Before calculating, try to visually estimate the angle. Compare to known references: 45° is halfway between horizontal and vertical, 30° is about one-third of a right angle, 60° is about two-thirds. This builds geometric intuition.
If the visual graph is not accessible, rely on the detailed numerical results and step-by-step calculation descriptions. The mathematical information is fully available without visual interpretation.
Last Updated: January 2026
This calculator implements standard geometric formulas with careful attention to:
All calculations have been verified against standard geometry textbooks and validated with multiple test cases including edge conditions. The educational content has been reviewed for mathematical accuracy and pedagogical effectiveness.
The angle between two lines is a fundamental concept in geometry that measures the smallest angle formed at their point of intersection. This measurement is crucial in various fields including mathematics, physics, engineering, and computer graphics.