Positive slope
(1, 2) to (5, 10)m = 2
Use this free slope calculator to enter two coordinate points and find rise, run, slope, y-intercept, and a line equation with steps.
Find slope from two coordinate points.
Check rise over run for graphing and algebra homework.
Identify vertical lines with undefined slope.
Write a simple line equation from calculated slope and intercept.
m = 2
m = -1
Undefined slope
Need a slower walkthrough, a related calculator, or the full library? These links keep you close to the task you started.
Quick answers about formulas, units, valid measurements, examples, copying, and private in-browser history.
It uses slope = (y2 - y1) / (x2 - x1), often described as rise over run.
A vertical line has a run of zero because both points have the same x-value. Division by zero is undefined, so the slope is undefined.
The main inputs are the numbers, operation, mode, or known values the calculator needs. Keep units consistent, enter percentages the way the page label shows, and use the examples as a quick check before trusting the answer.
Read the headline answer, then check the supporting lines and examples to understand how the calculator got there. If one input changes, rerun the tool and compare the new answer instead of guessing.
Check units, signs, rounding, and the selected mode before copying the answer. If the number feels weird, rerun one of the examples first, then put your own values back in slowly.
No. The two points must be different, or there is no single line direction to calculate.
Yes. For non-vertical lines it shows y = mx + b. For vertical lines it shows x = constant.
Use Slope Calculator for line steepness and equations. Use Distance Calculator for the straight-line length between two points.
Yes. Recent slope answers stay only in the current browser tab while you use the page. They are not sent to a server.