Four formulas at once
Two points determine a line segment. From those same inputs, you can compute slope, distance, midpoint, and the y-intercept of the full line.
Calculate slope, distance, midpoint, and y-intercept from two coordinate points.
What it means
Two points determine a line segment. From those same inputs, you can compute slope, distance, midpoint, and the y-intercept of the full line.
If x1 equals x2, the slope is undefined. This generic numeric display returns 0 for that case, so treat vertical-line results accordingly.
FAQ
Slope is rise divided by run. It tells you how much y changes for each 1 unit change in x.
Distance = sqrt((x2 - x1)^2 + (y2 - y1)^2), which is the Pythagorean theorem applied to the coordinate grid.
Keep exploring
More tools in math that people usually check next.
Jump back to the math section to compare nearby tools and follow related search paths.
A modern graphing calculator. Type a function of x and see it plotted instantly — pan, zoom, and trace any curve.
Answers all the common percentage questions at once: X% of Y, X as a percent of Y, and the percent change from X to Y.
Add, subtract, multiply, or divide two fractions and see the simplified fraction, decimal, and percent result.
Calculate the sum, mean, median, minimum, and maximum for a simple set of five numbers.