Introduction
The slope of a line tells you how steep it is and which direction it goes. It measures how much a line rises or falls as you move from left to right. You can find the slope when you know two points on a line by using a simple formula: subtract the y-values and divide by the difference of the x-values. This is often written as slope = (y₂ - y₁) / (x₂ - x₁), which is also called "rise over run." A positive slope means the line goes up, a negative slope means it goes down, a slope of zero means the line is flat, and an undefined slope means the line is straight up and down. Use this slope calculator to quickly find the slope between any two points without doing the math by hand.
How to Use Our Slope Calculator
Enter two points on a line to find the slope. You will need the x and y values for each point. The calculator will give you the slope of the line that passes through both points.
X₁ (First Point X-Value): Type in the x-coordinate of your first point. This is how far left or right the point is on a graph.
Y₁ (First Point Y-Value): Type in the y-coordinate of your first point. This is how far up or down the point is on a graph.
X₂ (Second Point X-Value): Type in the x-coordinate of your second point. This is the left or right position of the other point on the line.
Y₂ (Second Point Y-Value): Type in the y-coordinate of your second point. This is the up or down position of the other point on the line.
Once all four values are entered, the calculator uses the slope formula (rise over run) to find your answer. The result tells you how steep the line is. A positive slope means the line goes up from left to right. A negative slope means the line goes down from left to right. A slope of zero means the line is flat, and an undefined slope means the line is straight up and down.
What Is Slope?
In math, the slope of a line tells you how steep it is. It measures how much a line goes up or down as you move from left to right. Slope is usually shown as the letter m, and it is calculated as the rise (the change in y) divided by the run (the change in x). The basic formula looks like this:
m = (y₂ − y₁) / (x₂ − x₁)
If the slope is positive, the line goes uphill from left to right. If the slope is negative, the line goes downhill. A slope of zero means the line is perfectly flat (horizontal), and an undefined slope means the line is straight up and down (vertical). Slope is closely related to the concept of rate of change, which measures how one quantity changes relative to another.
How to Find Slope
There are several ways to find the slope of a line, and this calculator covers the most common methods:
- Two Points: When you know two points on a line, such as (2, 3) and (5, 11), you plug them into the slope formula. Subtract the y-values on top and the x-values on the bottom. In this example, m = (11 − 3) / (5 − 2) = 8/3.
- Point + Slope + Distance: When you know one point, the slope (or angle), and the distance to a second point, you can find the coordinates of that second point. This method uses the Pythagorean theorem along with the slope to work backward and find the missing point.
- From an Equation: If you have a linear equation like y = 2x + 3, the number in front of x is the slope. For standard form equations like 3x − 4y = 12, you rearrange the equation into slope-intercept form (y = mx + b) to find m.
- From Intercepts: When you know the x-intercept and y-intercept, you already have two points — (x-int, 0) and (0, y-int). You simply use the slope formula with those two points.
Forms of a Linear Equation
Once you know the slope and a point or the y-intercept, you can write the equation of the line in several forms:
- Slope-Intercept Form: y = mx + b, where m is the slope and b is the y-intercept.
- Point-Slope Form: y − y₁ = m(x − x₁), which is useful when you know one point and the slope.
- Standard Form: Ax + By = C, where A, B, and C are integers and A is positive.
Related Calculations
Alongside the slope, this calculator also finds several related values that are helpful in algebra and geometry:
- Distance: The straight-line distance between two points, found using the distance formula d = √((x₂ − x₁)² + (y₂ − y₁)²).
- Angle of Incline: The angle the line makes with the horizontal x-axis, calculated using the inverse tangent (arctan) of the slope.
- Perpendicular Slope: The slope of a line that crosses your line at a right angle. It equals the negative reciprocal of the original slope. For example, if m = 2/3, the perpendicular slope is −3/2.
- Midpoint: The exact center point between two coordinates, found by averaging the x-values and the y-values separately. You can also use our dedicated midpoint calculator to find the midpoint between any two points.
- Percentage Grade: The slope expressed as a percentage, which is common in road signs and construction. A slope of 1/4 equals a 25% grade. You can explore how percentages work more broadly with our percentage calculator or find how values shift over time using the percent change calculator.
Understanding slope is one of the most important skills in algebra. It shows up when you graph lines, solve systems of equations, and study rates of change — and it lays the groundwork for more advanced topics like calculus. If you're working with data sets and need to understand how values spread around a center, our IQR calculator can help, and when you need to check how close a measured value is to an expected one, try the percent error calculator.