Slope Calculator
Find slope from two coordinate points, including rise, run, y-intercept, point-slope form, slope-intercept form, and vertical-line status.
Formula
(y2 - y1) / (x2 - x1)
Outputs
Slope + Line Forms
Special Case
Vertical Lines
Live calculator
Slope from two points
Slope
2
Rise
8
Run
4
Y-intercept
0
Line forms
Point-slope form
y - 2 = 2(x - 1)
Slope-intercept form
y = 2x
Turn two points into slope and line forms
Slope value
Calculate the rate of change between two coordinate points using rise over run.
Line equations
Convert the two-point result into point-slope and slope-intercept form when possible.
Vertical-line status
Detect undefined slope when x values match instead of forcing an invalid denominator.
Slope formulas used on this page
Slope measures vertical change divided by horizontal change. When the horizontal change is zero, the slope is undefined.
Working formulas
Slope from two points
m = (y2 - y1) / (x2 - x1)
Subtract y values for rise and x values for run, then divide rise by run.
Y-intercept
b = y1 - m x1
Use one point and the slope to solve for the intercept in y = mx + b.
Slope-intercept form
y = mx + b
This line form is available when the line is not vertical.
Symbols
- m - slope
- The rate of change from one point to the other.
- rise - vertical change
- The difference y2 - y1 between the two y coordinates.
- run - horizontal change
- The difference x2 - x1 between the two x coordinates.
- b - y-intercept
- The value where a non-vertical line crosses the y-axis.
Slope results that explain the line, not only the fraction
Geometry-ready outputs
- Rise and run are shown separately so users can see where the slope value comes from.
- The result panel includes y-intercept, point-slope form, and slope-intercept form for graphing workflows.
- Vertical and same-point cases are labeled clearly because their line behavior is different.
- Copy and print controls make the result usable in notes, worksheets, and tutoring sessions.
Learning context
- Formula notes connect slope to rate of change and coordinate geometry.
- Related links point users to linear equations, midpoint, distance, and the slope guide.
- FAQ answers explain undefined slope, y-intercept, point-slope form, and repeated points.
- The page supports graphing and algebra lessons without requiring a full graphing calculator.
Slope support for graphing, algebra, and coordinate work
Students
Check slope homework and understand why vertical lines have undefined slope.
Teachers
Create two-point examples with slope, intercept, and line forms visible together.
Technical plotting
Use rise and run as a fast coordinate check before drawing or reviewing a line.
How it works in three quick steps.
Enter the first point
Add x1 and y1 from the first coordinate point.
Enter the second point
Add x2 and y2 so the calculator can compare the vertical and horizontal change.
Read the slope and line forms
Use the rise, run, slope, y-intercept, and line-form outputs to check graphing work.
Save or print a slope result
Copy the line summary
Copy coordinates, rise, run, slope, intercept, and line form in one readable statement.
Print the calculation
Print the calculator state, formulas, FAQ content, and related tools for study use.
Compare point pairs
Reset or adjust coordinates to compare positive, negative, zero, and undefined slopes.
Why slope calculations need context
Slope is one of the first places where algebra and coordinate geometry meet. A user may ask for slope, but the useful answer often includes more than a single number. Rise and run show how the value was produced, the y-intercept connects the result to y = mx + b, and point-slope form helps users write the equation directly from one point and the slope. Toolarithm's Slope Calculator keeps those related outputs together so students can move from a pair of points to graphing language without re-entering the same information.
The calculator also handles edge cases that matter in real coursework. Vertical lines do not have a defined slope because the run is zero. Identical points do not define a unique line. Returning a numeric answer for either case would be misleading, so the page labels the status and explains it in the FAQ. The related equation, midpoint, distance, and slope-guide links help users reuse the same coordinates across the formulas that normally appear together in graphing lessons.
Keep building