Enter the coordinates of two points to calculate the slope, y-intercept, line equation and angle of incline between them.
Google AdSense Banner
This area will contain advertisements after approval.
Google AdSense Banner
This area will contain advertisements after approval.
Slope is calculated as the change in y divided by the change in x (rise over run) between the two points. The y-intercept is found by solving the slope-intercept equation (y = mx + b) for b using one of your points. The angle of incline converts the slope into degrees using the arctangent function.
For point 1 at (0, 0) and point 2 at (4, 8): slope = (8−0) ÷ (4−0) = 8 ÷ 4 = 2. Solving for the y-intercept using point 1: 0 = 2(0) + b, so b = 0, giving the equation y = 2x + 0. The angle of incline is arctan(2) ≈ 63.43°.
Computing rise over run in the wrong order, slope must use (y2−y1) ÷ (x2−x1) with both differences taken in the same point order, mixing the order for one but not the other flips the sign of the result.
Assuming every pair of points has a defined slope, two points with the same x-coordinate form a vertical line, which has an undefined (not zero) slope, since division by zero isn't defined.
Confusing a slope of 0 (horizontal line) with an undefined slope (vertical line), these are opposite cases, a slope of 0 means y never changes, while undefined means x never changes.
A vertical line (where both points share the same x-coordinate) has an undefined slope, since the change in x is zero and division by zero isn't defined. The line's equation is simply x = (that x-coordinate).
A slope of 0 means the line is perfectly horizontal, y stays the same regardless of x.
Distance Calculator
Calculate the straight-line distance and midpoint between two coordinate points.
Triangle Calculator
Calculate a triangle's area, perimeter and angles from its three side lengths.
Google AdSense Banner
This area will contain advertisements after approval.