Learn more with dummies

Enter your email to join our mailing list for FREE content right to your inbox. Easy!

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

By Mary Jane Sterling

Part of Algebra II Workbook For Dummies Cheat Sheet

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 (x1, y1) and (x2, y2):

Slope of the line through the points:


Slope-intercept form of the line with y-intercept b:


Point-slope form of the line with slope m:


Distance formula:


Midpoint formula: