Slope & Line Equation

Mathematics

This slope calculator finds the steepness, slope-intercept equation, geometric distance, and exact midpoint connecting two Cartesian coordinate points. It gives students, land surveyors, and structural designers the algebraic parameters required to model linear trajectories and analyze planar relationships across two-dimensional space.

Calculated Result
m = 2

y = 2x + 0

Distance
8.944272
Midpoint
(3, 6)
Ξ”x
4
Ξ”y
8
Formula: m = (yβ‚‚ βˆ’ y₁) / (xβ‚‚ βˆ’ x₁)

About this calculator

Coordinate geometry problems and civil engineering projects frequently require defining the exact linear path between two known coordinate points on a Cartesian grid. Whether determining the grade of a drainage pipe, plotting the trajectory of a moving physical object, or graphing an algebraic function, knowing the precise mathematical relationship between paired coordinates is essential. Supplying the horizontal and vertical positions of two distinct points produces the line's gradient, y-intercept, midpoint coordinates, and straight-line Euclidean span.

The computed slope reveals the constant rate of vertical rise over horizontal run, while the slope-intercept equation provides the standard algebraic formula for predicting any other coordinate along the infinite line. The accompanying midpoint and distance values supply spatial dimensions directly applicable to architectural layouts and computer graphics programming. Note that vertical lines sharing identical x-coordinates yield a zero denominator, resulting in an undefined slope where traditional slope-intercept equations cannot be evaluated.

How It Works & Formula

Formulam = (yβ‚‚ βˆ’ y₁) / (xβ‚‚ βˆ’ x₁) | y = mx + b

The slope m is determined by dividing the change in vertical position by the change in horizontal position through m = (yβ‚‚ βˆ’ y₁) / (xβ‚‚ βˆ’ x₁). Once the slope is established, the y-intercept b is calculated by solving b = y₁ βˆ’ m(x₁), producing the line equation y = mx + b. The distance utilizes the Pythagorean theorem √[(xβ‚‚ βˆ’ x₁)Β² + (yβ‚‚ βˆ’ y₁)Β²], while the midpoint averages each coordinate pair.