Use this tool to quickly find the slope, rise, and run between two points on a line. Enter your x and y coordinates below to get the exact value and the step-by-step math.
Last updated: March 2026
We built this calculator to save you time when working with coordinate geometry. Finding the slope manually leaves room for simple arithmetic mistakes, particularly when you are dealing with negative numbers or fractions. This tool gives you instant results and shows the exact math steps to help you double-check your work.
Here are a few common situations where this calculator comes in handy:
The calculator takes the two points you enter and applies the standard mathematical formula. It subtracts the first y-value from the second to find the vertical change, known as the rise. Then it subtracts the first x-value from the second to find the horizontal change, known as the run. Finally, it divides the rise by the run. The tool automatically simplifies fractions and provides a clean decimal format.
This tool provides highly accurate results for standard numerical inputs and rounds complex decimals to four places for readability. If you enter extremely large numbers, minor floating-point rounding may occur. Note that this calculator finds the straight line slope between two distinct points. It does not graph the line or calculate curved tangents.
Slope is a core concept in math, physics, and engineering. It helps students learn algebra, architects design roofs, and economists analyze market trends. Knowing how to calculate slope is a practical skill.
In mathematics, the slope (usually denoted by the letter m) describes both the steepness and the direction of a line. It quantifies the rate at which the dependent variable (y) changes with respect to the independent variable (x).
Think of slope as a measure of steepness. If you are hiking up a mountain, the slope tells you how many feet you climb vertically for every foot you walk horizontally. A higher slope value indicates a steeper incline, while a lower slope value indicates a gentler path.
To calculate the slope of a line, you need the coordinates of any two distinct points on that line. Let us call these points Point 1 (x₁, y₁) and Point 2 (x₂, y₂).
The mathematical formula for slope is defined as the ratio of the change in the y-coordinates to the change in the x-coordinates. This is often represented using the Greek letter delta (Δ), which means change in.
In this example, the slope is 2. This means for every 1 unit you move to the right, the line goes up 2 units.
Visualizing the slope helps in understanding the behavior of linear functions. There are four distinct categories of slope you will encounter in geometry and algebra.
A line with a positive slope rises from left to right. This represents a direct relationship between variables. As x increases, y also increases. Examples include a car accelerating or a savings account growing with interest.
A line with a negative slope falls from left to right. This represents an inverse relationship. As x increases, y decreases. Examples include a car slowing down or the water level in a draining pool.
A horizontal line has a slope of zero. The y-value remains constant regardless of the x-value. The equation for such a line is simply y = b. An example is driving on a perfectly flat road.
A vertical line has an undefined slope. This occurs because the x-values of the two points are identical (x₁ = x₂), resulting in a run of zero. Since you cannot divide by zero in mathematics, the slope is undefined. The equation for a vertical line is x = a.
Once you have calculated the slope using our calculator, you can express the line using an algebraic equation. There are three common forms used in algebra.
This is the most popular form used in algebra courses and graphing calculators.
This form is useful when you know the slope and a specific point, but not necessarily the y-intercept. It is derived directly from the slope formula.
Simply plug in your known point (x₁, y₁) and slope (m) to write the equation.
The standard form places both variables on the left side of the equation. It is useful for solving systems of linear equations.
In this form, A, B, and C are integers, and A is usually non-negative. Converting between Slope-Intercept and Standard form is a common algebra task.
Understanding slope allows you to determine the geometric relationship between two lines without graphing them. By comparing their slope values, you can instantly tell if lines are parallel, perpendicular, or neither.
Parallel lines are lines that lie in the same plane and never intersect. They remain the same distance apart forever.
Perpendicular lines intersect at a 90-degree angle (a right angle).
While often viewed as an abstract math concept, slope is critical in the physical world. Here are several industries where calculating slope is a daily requirement.
In the US, roof steepness is referred to as pitch. It is usually expressed as a ratio of rise over a 12-inch run. For example, a 6/12 pitch means the roof rises 6 inches for every 12 horizontal inches. Carpenters use this to determine the length of rafters and the type of shingles required (steeper roofs shed water faster).
Roads cannot be too steep, or vehicles will struggle to climb them and brakes will fail on the way down. Engineers measure road slope as a percentage called grade.
Formula: Grade (%) = (Rise / Run) × 100
For example, a highway with a 6% grade rises 6 feet for every 100 feet of horizontal distance. Truckers must be very aware of grade to manage their gear shifts and speed.
In economics, slope represents the marginal rate of change. For example, in a cost function graph, the slope represents the Marginal Cost, which is the cost of producing one additional unit of a product. In a demand curve, the slope indicates how consumer demand drops as prices rise.
In a position-time graph, the slope of the line represents velocity. If you plot distance on the y-axis and time on the x-axis, the steepness of the line tells you how fast the object is moving. Similarly, in a velocity-time graph, the slope represents acceleration.
For students advancing to calculus, the concept of slope evolves into the Derivative. In algebra, we find the slope of a straight line (secant line) between two points. In calculus, we find the slope of a curve at a single specific point (tangent line).
The derivative is essentially the slope formula applied with the limit as the distance between the two points approaches zero. This concept allows scientists to calculate instantaneous rates of change, such as the exact speed of a falling object at a specific millisecond.
When you have two points on a Cartesian plane, you can calculate more than just the slope. Coordinate geometry provides formulas for distance and midpoint as well, which are often taught alongside slope.
Derived from the Pythagorean Theorem, this calculates the length of the segment connecting the two points.
This finds the exact center point of the line segment connecting your two coordinates.
The origin is debated by historians, but the most common theory is that it comes from the French word monter, meaning to climb. However, there is no concrete historical evidence to fully verify this. It has simply become the standard convention in mathematics education.
To convert a slope value (m) into an angle in degrees (θ), you use the inverse tangent function (arctan) on your scientific calculator.
Formula: θ = tan⁻¹(m)
For example, a slope of 1 yields an angle of 45°, because tan(45°) = 1.
A straight line has a constant slope everywhere. A curved line (like a parabola or circle) has a changing slope. To find the slope of a curve at a specific point, you must find the slope of the tangent line that touches the curve at that exact spot, which is done using calculus (derivatives).
The slope formula works for all real numbers, including negative numbers, fractions, and decimals. Simply plug the values into the formula (y₂-y₁)/(x₂-x₁) carefully. If calculating manually, be careful with double negatives, as subtracting a negative number becomes addition.
Yes. In the United States, slope is the standard term in algebra and geometry. In the UK, Australia, and in vector calculus contexts, the term gradient is used. They refer to the exact same concept of steepness.