Angle Between Two Lines Calculator
Enter the equations of two lines (in any form) to find the angle between them, see the step-by-step solution, and view the graph on the coordinate plane.
Quick Examples
How to Use the Calculator
This online angle between two lines solver is an analytical tool designed to find the angular measure formed by the intersection of two lines on the Cartesian plane. In addition to providing the value, the system generates the step-by-step mathematical solution and a graph of the situation.
How to enter your data:
- Line equations: you have two separate text fields, one for each line. You can write the equations in any valid mathematical form: slope-intercept form (y = mx + b), standard form (Ax + By = C), point-slope form, or even unordered expressions. The algebraic engine will automatically simplify, group, and solve for variables.
- Numerical formats: the tool supports integer coefficients, decimal numbers, exact fractions, and irrationals. Values such as square roots or fractions are preserved symbolically during the analytical calculation to ensure no rounding errors occur.
Once you enter the two equations, the algorithm will process the information and provide the direct angle answer. By geometric convention, the tool always returns the measure of the acute angle, which is a value between 0° and 90°.
Below the main result, the step-by-step solution to your problem will be displayed. There you can see how the slopes are analyzed and how the trigonometric tangent formula is applied: tan(θ) = |(m2 - m1) / (1 + m1 · m2)|.
The mathematical engine is equipped to handle various analytical situations. During the process, the system automatically evaluates whether the given lines are perpendicular. Additionally, the calculator works perfectly with vertical lines (for example, x = 4); although these have an undefined slope and the traditional formula wouldn't work, the algorithm applies the necessary geometric properties to solve the intersection and give you the angle without throwing errors.
Finally, below the solution you will find an interactive graph that plots both lines on the Cartesian plane, highlighting the intersection and the angle so you can visually verify the calculated value.
Solved Exercises
Calculate the acute angle between the lines \(2x-y+1=0\) and \(x+3y-6=0.\)
Result
The angle between the given lines is:
Step-by-step solution
1. Identify the equations and obtain their slopes.
The equations to work with are:
We make sure both equations are expressed in slope-intercept form (y = mx + b) and extract their slopes (m):
2. Evaluate the product of the slopes.
We multiply both slopes to check if the lines are perpendicular:
Since the product is not -1, we continue with the general calculation.
3. Calculate the tangent of the angle between the lines.
We use the general formula for the tangent of the angle between two lines, substituting the extracted slope values:
4. Find the angle.
We apply the arctangent function to get the final angle in degrees:
Determine the angle formed by the straight lines \(x - 4 = 0\) and \(2x - y + 3 = 0.\)
Result
The angle between the given lines is:
Step-by-step solution
1. Identify the type of lines and obtain slopes.
The equations to work with are:
We note that one of the lines is vertical (it has no y-variable), so its angle of inclination is 90°. We make sure the other equation is expressed in slope-intercept form (y = mx + b) and extract its slope:
2. Calculate the angle of inclination of the oblique line.
We apply the arctangent function to the slope to find the angle of inclination of the oblique line with respect to the horizontal:
3. Find the angle between the lines.
The angle between a vertical line and an oblique line is the absolute difference between their respective angles of inclination:
Find the acute angle between the lines in standard form \(3x - 2y + 5 = 0\) and \(2x + 3y - 1 = 0.\)
Result
The angle between the given lines is:
Step-by-step solution
1. Identify the equations and obtain their slopes.
The equations to work with are:
We make sure both equations are expressed in slope-intercept form (y = mx + b) and extract their slopes (m):
2. Evaluate the product of the slopes.
We multiply both slopes to check if the lines are perpendicular:
Since the product is exactly -1, it is confirmed that the lines are perpendicular to each other.
3. Find the angle.
Since they are perpendicular, there is no need to apply the general formula. The angle between them is direct:
Find the angle between the straight lines \(\sqrt{3}x - y = 0\) and \(y = x.\)
Result
The angle between the given lines is:
Step-by-step solution
1. Identify the equations and obtain their slopes.
The equations to work with are:
We make sure both equations are expressed in slope-intercept form (y = mx + b) and extract their slopes (m):
2. Evaluate the product of the slopes.
We multiply both slopes to check if the lines are perpendicular:
Since the product is not -1, we continue with the general calculation.
3. Calculate the tangent of the angle between the lines.
We use the general formula for the tangent of the angle between two lines, substituting the extracted slope values:
4. Find the angle.
We apply the arctangent function to get the final angle in degrees:




