Slope Calculator – Instant Rise/Run, Angle, and Line Equation
Enter coordinates or drag points to get slope, rise/run, line type, midpoint, distance, angle of inclination, perpendicular slope, and full equations with a live graph.
No uploads. Everything runs locally in your browser.
Example loaded. Ready to calculate.
Drag the red or green point to update coordinates. Triangle shows run (horizontal) and rise (vertical).
- Rise is the vertical change (y2 - y1); run is the horizontal change (x2 - x1).
- Positive slope means the line rises left to right; negative means it falls.
- Horizontal lines have zero slope; vertical lines have undefined slope.
- Changing x without changing y increases run, flattening the slope magnitude.
- Rise = y2 - y1 = 11 - 3 = 8
- Run = x2 - x1 = 6 - 2 = 4
- Slope m = rise / run = 8 / 4 = 2
Formula: slope m = (y2 - y1) / (x2 - x1).
- Slope sign: positive (increasing)
- Steepness: moderate
- Orientation: Increasing
- Parallel insight: a parallel line shares slope m; perpendicular slope is -0.5.
What is this tool
This Slope Calculator is a full line-analysis tool that goes beyond basic rise-over-run. Enter two coordinates—or drag the points on the live graph—to instantly get slope in fraction and decimal form, rise/run, line type (increasing, decreasing, horizontal, vertical), midpoint, distance, angle of inclination, perpendicular slope, and x/y-intercepts. It also generates slope-intercept, point-slope, and standard-form equations while showing a triangle overlay for rise and run so you can see the geometry behind the calculation.
Vertical lines are flagged with undefined slope and equation x = constant; horizontal lines show slope 0 and y = constant. Fraction simplification keeps answers exact when possible, and decimals are rounded for readability. All math runs locally—no login, no uploads—so you can experiment safely with integers, decimals, and negatives.
The page doubles as a teaching aid: the explanation section walks through rise and run, the learning notes reinforce slope intuition, and the interactive graph demonstrates how movement changes slope and angle. Because it includes midpoint, distance, and angle, it serves as a coordinate geometry calculator that’s richer than typical slope-only widgets.
Use cases
- Coordinate geometry learning: visualize rise/run, angle, and intercepts while practicing slope calculations.
- Graph analysis: verify if a line is increasing, decreasing, horizontal, or vertical with instant classification.
- Algebra homework: check slope-intercept and point-slope forms, plus simplified slope fractions and decimals.
- Checking manual calculations: confirm distance, midpoint, and slope sign before submitting assignments.
- Line equation practice: explore how changing points shifts intercepts and alters standard-form coefficients.
For deeper algebra support, pair this with the equation solver and the quadratic equation solver pro. For proportional checks alongside slope, the ratio calculator and percentage calculator are handy companions.
Popular ways to use this tool
- Load the positive slope example (2,3) to (6,11) to see slope 2 and triangle visualization, then drag a point to watch angle changes.
- Test vertical behavior with (4,2) to (4,9) and observe undefined slope plus x = constant equation.
- Use the zero-slope example to illustrate horizontal lines and perpendicular slope handling.
- Copy the summary for a homework check, or copy equations to drop into graphing tools.
- Adjust coordinates slightly to see how slope sign flips and how intercepts move.
Need more math utilities? Head to the standard deviation calculator for spread checks, the fraction calculator for exact ratios, or the matrix calculator for linear algebra work.
How to use
- Enter x1, y1, x2, y2 or drag the points on the graph to set coordinates.
- Click Calculate or adjust inputs to refresh slope, rise/run, and line equations instantly.
- Check the graph, angle, midpoint, distance, and whether the line is increasing, decreasing, horizontal, or vertical.
- Copy the summary or equation, load preset examples (positive, negative, zero, vertical), or clear to start over.
Features
- Slope from two points with rise/run, simplified fraction, and decimal form, including undefined vertical handling
- Line analysis: midpoint, distance, angle of inclination, line type (increasing/decreasing/horizontal/vertical), perpendicular slope
- Line equations in slope-intercept, point-slope, and standard form plus x/y-intercepts when valid
- Interactive SVG graph with draggable points, axis labels, and live triangle visualization for rise/run
- Copy summary/equation/coordinates, preset examples for common cases, clear/reset, and educational explanations
FAQ
How do I calculate slope with this slope calculator online?
Enter coordinates for two points or drag the points on the graph. The tool computes rise, run, slope (fraction and decimal), line type, and equations instantly.
Can it handle vertical or horizontal lines?
Yes. Vertical lines show undefined slope and equation x = constant. Horizontal lines show slope 0 with y = constant and the angle 0°.
Does it show line equations?
It provides slope-intercept, point-slope, and standard form. When possible, it also shows x- and y-intercepts and perpendicular slope.
What about midpoint and distance?
The calculator returns midpoint and distance between the two points, plus angle of inclination and rise/run visualization on the graph.
Is this algebra slope calculator free and private?
Yes. It runs entirely in your browser, is free, requires no login, and keeps your data on your device.