Slope Calculator
Enter the two points Pโ (xโ, yโ) and Pโ (xโ, yโ). The calculator finds the slope with m = (yโ โ yโ) / (xโ โ xโ), plus the angle, grade %, distance, midpoint, the equation of the line and a graph. Accepts decimals, negatives and fractions (3/4, 1 1/2).
Know the slope and one point on the line? Enter them to get the equation in point-slope, slope-intercept and standard form, the intercepts, and the parallel and perpendicular slopes. For a vertical line type v as the slope.
Have the equation in standard form Ax + By = C? Enter A, B and C and the calculator converts it to slope-intercept form: m = โA/B and b = C/B, with the intercepts, angle and graph.
Convert between a line's angle of inclination and its slope: m = tan ฮธ, and ฮธ = arctan m. The grade (percent slope) is also shown โ a 45ยฐ line is a 100% grade.
Graph
Equations of the line
Step-by-step solution
Points on the line
Recent calculations
More in Calculators
Tools you may need
How to use: enter the x and y coordinates of two points on the line, then press Calculate to get the slope (m = (y2 โ y1) / (x2 โ x1)), the line's angle in degrees and a step-by-step breakdown. Example: points (1, 3) and (4, 12) give m = (12 โ 3) / (4 โ 1) = 3, an angle of about 71.93 degrees. Key features: fraction-exact results with decimal display, angle conversion, horizontal and vertical line handling, and a clear worked solution. Frequently asked questions: What is slope? It measures how steep a line is โ how much y changes for each unit change in x. What does a vertical line mean? Its x-values are equal, so division by zero makes the slope undefined, and the tool reports that instead of a number. Limitations: coordinates must be real numbers, results are as exact as your input precision, and the slope describes a straight line only โ curves need calculus.
What does Slope Calculator do?
Calculate the slope of a line from two coordinate points and review the gradient, direction and angle where the tool provides them.
How it works / Formula
Slope m = (yโ โ yโ) รท (xโ โ xโ). If the x-coordinates are equal, the line is vertical and its slope is undefined.
Worked example
Between (2, 3) and (6, 11), slope = (11 โ 3) รท (6 โ 2) = 2.
Practical tips and limitations
Tips for better results
Keep the coordinate order consistent and use enough decimal places for measured points.
Important limitations
A vertical line has undefined slope; rounded coordinates can slightly change the calculated gradient.
How to use the Slope Calculator
Prepare the input
Enter the x and y coordinates of the first point.
Run the tool
Enter the coordinates of the second point.
Review the result
Calculate and review the slope and any angle or equation details shown.
Key features
- Two-point slope calculation
- Gradient and direction
- Angle or equation details where available
Frequently asked questions
What is the slope formula?
m = (yโ โ yโ) รท (xโ โ xโ).
What happens when both x-values are equal?
The line is vertical and its slope is undefined because the denominator is zero.