Anzeige


One Line | Two Lines | Line through Two Points

Calculate and Draw the Intersection of two Straight Lines

Calculator for the intersection point of two straight lines and the angle between them from the linear equations. The two linear equations are y1 = mx1 + b and y2 = nx2 + c. The variables m and n are the gradients, b and c are the up or down shifts. If both lines have the same gradient, so if m=n, then they are parallel and no intersection and angle exist.

1. line y1 = x1 +

2. line y2 = x2 +

Angle between α = °

Intersection point: x = , y =

Round to    decimal places.



Please enter for both linear equations m and b as well as n and c. The angle and the intersection point will be calculated and both lines will be drawn.

Formulas:
α = | atan(m) − atan(n) |
x = (c−b) / (m−n)
y = m*x + b

Example: the lines x+2 and 3x+4 intersect in the point (-1;1) in an angle of 26.565°. For x+2, put a 1 in the first line before x1.


If two straight lines lie in a plane and are not parallel to each other, then they intersect at exactly one point. This point of intersection and the angle between these two straight lines are calculated here. In fact, when two straight lines intersect, exactly four angles are created. The two opposite angles are the same size. Two angles lying next to each other add up to 180 degrees; if you name the other angle β, then β=180°-α applies. If both straight lines are perpendicular to each other, then all four angles are the same size, namely 90 degrees.
To calculate the angle, you need the arctangent atan, i.e. the inverse function of the tangent. Since straight lines have no direction, this angle cannot be negative, so the absolute value |...| is taken. The angle is independent of the shift up or down, which is only relevant for calculating the point of intersection.
This calculation only refers to the plane. If two straight lines lie in space, then they can also be skewed to each other, i.e. are neither parallel to each other nor do intersect.


Last updated on 03/11/2026.

© Jumk.de Webprojects | Online Calculators | Imprint & Privacy

German: Eine Gerade | Zwei Geraden | Gerade durch zwei Punkte




Anzeige




Cite this page: Rechneronline (2026) - Calculate and Draw the Intersection of two Straight Lines.
Retrieved on 2026-07-19 from https://rechneronline.de/line/intersection.php


Related articles and calculators:

Draw and Calculate a Straight Line

Calculate Line through Two Points

Calculate Cut Angle

Slope Calculator

Calculate Circular Angles