📐
✓ Editorially reviewed by Derek Giordano, Founder & Editor · BA Business Marketing

Slope Calculator

Rise Over Run

Last reviewed: May 2026

🧮
500 calculators, no signup required
Finance · Health · Math · Science · Business
nnng.com

Understanding Slope

Slope is one of the most fundamental concepts in algebra, connecting arithmetic to geometry and real-world rates of change.[1] The formula m = Δy/Δx (change in y divided by change in x) appears throughout math, physics, engineering, and economics. This calculator finds the slope between two points, plus the line equation, distance, and midpoint. Related tools include the Distance Calculator and the Pythagorean Theorem Calculator.

Common Slope Values and Meanings

Slope ValueLine DirectionAngleReal-World Example
0HorizontalFlat road, constant value
145° uphill45°Equal rise and run
2Steep uphill63°Steep hill, rapid growth
−145° downhill−45°Decline, inverse relationship
0.06Gentle grade3.4°6% road grade
UndefinedVertical90°Wall, cliff face

Understanding Slope

Slope measures the steepness and direction of a line, defined as the ratio of vertical change (rise) to horizontal change (run) between any two points on the line. The slope formula is m = (y₂ − y₁) / (x₂ − x₁), where (x₁, y₁) and (x₂, y₂) are any two distinct points on the line. A slope of 2 means the line rises 2 units for every 1 unit of horizontal movement. A slope of −0.5 means the line falls half a unit for every unit of horizontal movement. Slope is the same everywhere on a straight line — this uniformity is what makes it "linear."

Slope ValueDirectionSteepnessExample
m > 1Rising ↗Steep upwardStairs, steep hill
0 < m < 1Rising ↗Gentle upwardWheelchair ramp
m = 0Horizontal →FlatLevel ground
−1 < m < 0Falling ↘Gentle downwardDrainage slope
m < −1Falling ↘Steep downwardSki slope
UndefinedVertical ↑Infinite steepnessCliff face

Slope-Intercept Form: y = mx + b

The slope-intercept form of a linear equation — y = mx + b — is the most commonly used equation format because it directly reveals the two most important properties of the line. The coefficient m is the slope (rate of change), and b is the y-intercept (where the line crosses the y-axis, i.e., the value of y when x = 0). The equation y = 3x + 5 describes a line with slope 3 that crosses the y-axis at y = 5. Given any x-value, you can immediately calculate y: when x = 4, y = 3(4) + 5 = 17.

Converting from two points to slope-intercept form is a two-step process. First, calculate slope using (y₂ − y₁)/(x₂ − x₁). Then substitute the slope and either point into y = mx + b to solve for b. Given points (2, 7) and (5, 16): slope = (16 − 7)/(5 − 2) = 9/3 = 3. Using point (2, 7): 7 = 3(2) + b, so b = 1. The equation is y = 3x + 1.

Point-Slope Form

Point-slope form — y − y₁ = m(x − x₁) — is useful when you know the slope and one point but do not need to solve for the y-intercept first. It is mathematically equivalent to slope-intercept form and can be rearranged into it by distributing and isolating y. A line through (3, −2) with slope 4: y − (−2) = 4(x − 3), which simplifies to y + 2 = 4x − 12, or y = 4x − 14. This form is particularly convenient in calculus when writing the equation of a tangent line at a specific point, where the slope is the derivative evaluated at that point.

Parallel and Perpendicular Lines

Parallel lines have identical slopes but different y-intercepts — they run in the same direction and never intersect. If line 1 has slope m = 2, any line parallel to it also has slope 2. Perpendicular lines have slopes that are negative reciprocals of each other — their product equals −1. If line 1 has slope m = 2, a perpendicular line has slope −1/2 (flip the fraction and change the sign). This relationship means perpendicular lines intersect at exactly 90 degrees. Finding parallel and perpendicular slopes is essential in geometry, construction (ensuring walls are square), computer graphics, and coordinate geometry problems.

Real-World Applications of Slope

Slope appears throughout science, engineering, and everyday life under different names. In physics, velocity is the slope of a position-time graph, and acceleration is the slope of a velocity-time graph. In economics, marginal cost is the slope of the total cost curve. In construction, grade (or gradient) is slope expressed as a percentage: a 6% grade rises 6 feet vertically for every 100 feet horizontally, equivalent to a slope of 0.06. ADA-compliant wheelchair ramps require a maximum slope of 1:12 (8.33%), and most building codes specify roof pitches as a ratio of rise to run over 12 inches.

In data analysis, slope represents the rate of change in a relationship between two variables. A regression line with slope 2.5 relating study hours to exam scores means each additional hour of study is associated with a 2.5-point increase in exam score. Financial analysts use slope to identify trends — a stock price with a positive slope over 200 trading days is in an uptrend. Scientists use slope to determine reaction rates, growth rates, cooling rates, and dozens of other rate-based measurements.

Rate of Change and Slope in Calculus

The concept of slope extends naturally into calculus through the derivative, which measures the instantaneous rate of change at a single point on a curve. While slope between two points gives the average rate of change over an interval, the derivative gives the slope of the tangent line at a specific point — the rate of change at that exact instant. For the function f(x) = x², the slope between x = 2 and x = 4 is (16 − 4)/(4 − 2) = 6, but the derivative f'(x) = 2x gives the instantaneous slope: f'(2) = 4 at x = 2 and f'(4) = 8 at x = 4. This transition from discrete slope to continuous derivative is the foundational concept that connects algebra to calculus.

Slope in Graphing and Interpreting Data

When reading graphs, slope provides immediate insight into the relationship between variables. A steeper line indicates a stronger relationship — more change in y per unit change in x. A positive slope means the variables increase together (positive correlation), while a negative slope means one increases as the other decreases (negative correlation). A slope of zero indicates no linear relationship. In scatter plots with a line of best fit, the slope tells you the predicted change in the dependent variable for each unit increase in the independent variable, making it the single most informative number in any linear regression analysis.

Using This Calculator

Enter two points or a slope and one point to instantly calculate the slope, equation of the line, y-intercept, angle, and distance between the points. The results update in real-time as you adjust inputs, making it easy to explore how changing coordinates affects the line's properties. Use the results for homework verification, engineering calculations, or any application requiring precise linear relationships between two variables.

What is slope in math?
Slope measures the steepness and direction of a line. It is calculated as rise over run: m = (y2 - y1) / (x2 - x1). A positive slope rises left to right, a negative slope falls left to right, zero slope is horizontal, and undefined slope is vertical.
What does slope tell you in real life?
Slope represents rate of change. A road grade of 6% means 6 feet of rise per 100 feet of horizontal distance. In business, slope shows growth rate (revenue per month). In science, it shows speed (distance per time). The concept applies whenever you measure how one quantity changes relative to another.
How do I find the equation of a line?
With two points, first calculate slope m = (y2-y1)/(x2-x1). Then use point-slope form: y - y1 = m(x - x1). Simplify to slope-intercept form y = mx + b, where b is the y-intercept. For points (2,3) and (4,7): m = (7-3)/(4-2) = 2, so y = 2x - 1.
What is the difference between slope and gradient?
In basic algebra, slope and gradient mean the same thing: the rate of change of y with respect to x. In multivariable calculus, gradient extends to multiple dimensions (a vector of partial derivatives). In civil engineering, gradient often refers to the steepness of a physical surface expressed as a percentage.
What are parallel and perpendicular slopes?
Parallel lines have equal slopes (m1 = m2). Perpendicular lines have slopes that are negative reciprocals (m1 x m2 = -1). For example, a line with slope 3 is perpendicular to a line with slope -1/3. These relationships are essential in geometry and coordinate proofs.

How to Use This Calculator

  1. Enter two points — Coordinates (x1, y1) and (x2, y2).
  2. View results — Slope, y-intercept, line equation, distance, and midpoint.
  3. Copy the equation — In slope-intercept (y=mx+b) or standard form.

Tips and Best Practices

Rise over run. Always divide vertical change by horizontal change.

Watch sign conventions. Negative slope means the line goes downward left to right.

Vertical lines have undefined slope. Division by zero when x1 = x2.[1]

Use for rate problems. Slope = speed, cost per unit, growth rate, or any rate of change.

See also: Distance · Pythagorean Theorem · Triangle · Percentage Change

📚 Sources & References
  1. [1] Khan Academy. Slope. KhanAcademy.org
  2. [2] Purplemath. Slope of a Line. Purplemath.com
  3. [3] Wolfram MathWorld. Slope. MathWorld
  4. [4] NCTM. Standards for Mathematical Practice. NCTM.org
Editorial Standards — Every calculator is built from peer-reviewed formulas and official data sources, editorially reviewed for accuracy, and updated regularly. Read our full methodology · About the author