Slope Calculator
Calculate slope, y-intercept, line equation, midpoint, and distance between two points. Visualize the line on an interactive graph.
About Slope Calculator
This free slope calculator computes the slope (m), y-intercept (b), line equation, midpoint, and distance between two points on a coordinate plane. The slope formula m = (y₂ − y₁) / (x₂ − x₁) determines the steepness and direction of a line. The calculator handles all cases including positive, negative, zero, and undefined (vertical line) slopes. The interactive canvas graph plots both points and draws the connecting line, making it an excellent visual tool for students, teachers, and professionals.
Slope & Y-Intercept
Calculate the slope and y-intercept from two points using the standard formulas. See both as exact and decimal values.
Line Equation
Get the complete line equation in y = mx + b form with actual computed values displayed in monospace format.
Midpoint & Distance
Find the midpoint between two points and the Euclidean distance. Essential for geometry, navigation, and physics applications.
Interactive Graph
Visualize both points and the line connecting them on a coordinate plane. The graph auto-scales to center on your points.