Slope Calculator Online Free Tool
Slope Calculator
Slope Formula
m = (y₂ - y₁) / (x₂ - x₁) = tan(θ)
Where m is the slope and θ is the angle of incline
Slope Calculation Methods
Example: Point 1 (1, 1) and Point 2 (2, 2) gives slope = 1
Point 1 (x₁, y₁)
Point 2 (x₂, y₂)
Slope measures the steepness and direction of a line on a coordinate plane. This calculator finds slope from two coordinate points, writes the equation of the line in slope-intercept and point-slope form, calculates the y-intercept, and expresses slope as a percentage grade. Slope concepts appear throughout algebra, geometry, physics, economics, and real-world engineering applications like road grades, roofing pitches, and ramp accessibility requirements.
Slope Formulas
Slope (m) is the ratio of vertical change (rise) to horizontal change (run) between any two points on a line. The same slope value applies to every pair of points on a given straight line, which is why slope is called the rate of change. A steeper line has a larger absolute value of slope. A line going up from left to right has a positive slope; one going down has negative slope.
Slope: m = (y₂ - y₁) / (x₂ - x₁) = rise / run Slope-intercept form: y = mx + b Point-slope form: y - y₁ = m(x - x₁) Standard form: Ax + By = C Grade (%) = rise / run × 100%
Points (2, 3) and (6, 7): slope = (7-3)/(6-2) = 4/4 = 1. Line: y = x + 1.
Slope Types and Their Meanings
The sign and magnitude of slope both carry meaning. The sign tells you the direction of the relationship; the magnitude tells you how steep it is. In real-world data, a steep positive slope might mean sales grow rapidly with advertising spend. A slope near zero means two variables are barely related.
| Slope Value | Line Direction | Real-World Example |
|---|---|---|
| Steep positive (m > 1) | Rises sharply left to right | Revenue grows faster than time |
| Gentle positive (0 < m < 1) | Rises gradually left to right | Gradual temperature increase |
| Zero (m = 0) | Horizontal flat line | Constant speed, no change |
| Gentle negative (-1 < m < 0) | Falls gradually left to right | Slow depreciation of an asset |
| Steep negative (m < -1) | Falls sharply left to right | Rapid inventory depletion |
| Undefined | Vertical line | No run, infinite steepness |
Finding the Line Equation from Two Points
Given two coordinate points, you can find the unique straight line passing through them. The process has three steps: calculate slope from the two points, substitute one point and the slope into the point-slope form, then simplify to slope-intercept form. This gives you an equation that predicts the y-value for any x-value on that line.
Step 1: m = (y₂ - y₁) / (x₂ - x₁) Step 2: y - y₁ = m(x - x₁) Step 3: Solve for y to get y = mx + b Example: Points (1, 3) and (4, 9) m = (9-3)/(4-1) = 6/3 = 2 y - 3 = 2(x - 1) y = 2x + 1
The y-intercept b = y₁ - m×x₁. Using either point gives the same result.
Slope in Real-World Applications
Road grades are expressed as percentages: a 6% grade rises 6 feet for every 100 feet of horizontal distance. The Americans with Disabilities Act limits wheelchair ramp slopes to 1:12 (8.3% grade). Roof pitch is often stated as "4 in 12" meaning 4 inches of rise per 12 inches of run, equivalent to a 33% grade. Ski trails are graded similarly: beginner slopes are under 25%, advanced slopes exceed 40%.
| Application | Typical Slope / Grade |
|---|---|
| ADA wheelchair ramp max | 1:12 = 8.3% |
| Typical residential street max | 10-12% |
| Highway maximum grade | 6-7% (US federal) |
| Beginner ski slope | Under 25% |
| Expert ski slope | 40%+ |
| Roof pitch (common) | 4/12 to 8/12 (33-67%) |
Frequently Asked Questions
What does a slope of 0.5 mean?⌄
A slope of 0.5 means that for every 1 unit increase in x, y increases by 0.5 units. Equivalently, for every 2 units moved horizontally, the line rises 1 unit vertically. As a road grade, 0.5 (or 50%) would be extremely steep — nearly impassable by vehicle. In a coordinate geometry context, a slope of 0.5 appears as a moderately gentle line rising from left to right. The angle this line makes with the x-axis is arctan(0.5) ≈ 26.6 degrees.
What is percent grade and how does it relate to slope?⌄
Percent grade equals slope multiplied by 100%. A 5% grade means for every 100 units of horizontal distance, there is 5 units of vertical rise. Roads in the US are limited to about 6-7% grade on federal highways, while steeper local roads may reach 10-15%. A 45-degree incline equals a 100% grade (slope = 1). Ski run difficulty is often described in percent grade. Percentage grade is preferred over angle in engineering because it directly expresses rise per unit of horizontal run.
How do I find the equation of a line from two points?⌄
Step 1: Calculate slope using m = (y₂ - y₁) / (x₂ - x₁). Step 2: Plug the slope and either point into point-slope form: y - y₁ = m(x - x₁). Step 3: Solve for y to get slope-intercept form y = mx + b. Example: points (1, 3) and (4, 9). Slope = (9-3)/(4-1) = 6/3 = 2. Using point (1,3): y - 3 = 2(x-1), so y = 2x + 1. Check: plug in (4,9): 2(4)+1 = 9. Correct.
What are perpendicular and parallel slope relationships?⌄
Two lines are parallel if they have identical slopes but different y-intercepts — they never intersect. Two lines are perpendicular if their slopes are negative reciprocals: m₁ × m₂ = -1. If one line has slope 3, a perpendicular line has slope -1/3. This relationship holds for all non-horizontal, non-vertical lines. Horizontal lines (slope = 0) are perpendicular to vertical lines (undefined slope), which is the special case of this rule.
What is the slope in a linear regression line?⌄
In statistics, the slope of a linear regression line represents the average change in the dependent variable (y) for each one-unit increase in the independent variable (x). If the regression slope for salary versus years of experience is $4,500, then on average each additional year of experience is associated with $4,500 more in annual salary. The regression slope is calculated to minimize the sum of squared residuals (differences between actual and predicted values).