# Linear Equations: How to Find Slope, *y*-Intercept, Distance, Midpoint

In algebra, linear equations means you’re dealing with straight lines. When you’re working with the *xy*-coordinate system, you can use the following formulas to find the slope, *y*-intercept, distance, and midpoint between two points.

Consider the two points (*x*_{1}, *y*_{1}) and (*x*_{2}, *y*_{2}):

Slope of the line through the points:

Slope-intercept form of the line withy-interceptb:

Point-slope form of the line with slopem:

Distance formula:

Midpoint formula: