From two points
The line through (1, 2) and (5, 10) has a slope of 2, an angle of about 63.4°, and the equation y = 2x.
Result
Fill in the fields to see your result.
Slope is rise over run: how much y changes (Δy) for a given change in x (Δx). The angle of inclination is just the same ratio read as an angle, via the arctangent — a slope of 1 is a 45° line, since rise and run are equal.
Once the slope is known, the y-intercept follows by plugging either point back into y = mx + b and solving for b, which is exactly what pins the line to those specific points rather than just any line with that slope.
m = (y₂ − y₁) ÷ (x₂ − x₁)
y = mx + b
d = √((x₂ − x₁)² + (y₂ − y₁)²)
The line through (1, 2) and (5, 10) has a slope of 2, an angle of about 63.4°, and the equation y = 2x.
A line through (2, 3) with slope 2 has the equation y = 2x − 1.
The line falls as x increases, rather than rising — visually, it runs from upper-left to lower-right instead of lower-left to upper-right.
A perfectly horizontal line — y stays the same no matter how x changes.
Slope is rise over run, and a vertical line has zero run (Δx = 0) — dividing by zero is undefined, so a vertical line simply has no slope value, described instead as x = a constant.
Exactly 45° — rise and run are equal, so the line climbs at the same rate horizontally as it does vertically.
Updated