How to Find Slope — Slope Formula, Calculator & Step-by-Step Examples
By He Loves Math · Updated March 21, 2026
Learning how to find slope is one of the most important skills in algebra and coordinate geometry. Whether you need the slope formula, want to know how to calculate slope from two points, or need to find the slope of a line from an equation — this complete guide covers everything with clear explanations, worked examples, and a free slope calculator. All content is updated as of March 2026.
1. What Is Slope?
In mathematics, slope measures the steepness and direction of a line. It describes how much a line rises (or falls) for every unit it moves horizontally. You will often hear slope described as "rise over run" — the vertical change divided by the horizontal change between any two points on the line.
Slope is typically represented by the letter m. When the slope is positive, the line goes upward from left to right. When it is negative, the line goes downward. A slope of zero means the line is perfectly horizontal, and an undefined slope means the line is perfectly vertical.
Understanding slope is fundamental to algebra, calculus, physics, engineering, and data science. Every time you study linear equations, graph a line, or analyse a rate of change, you are working with slope.
2. The Slope Formula
The slope formula calculates the slope of a line passing through two points \((x_1, y_1)\) and \((x_2, y_2)\):
Where:
- \(m\) = slope of the line
- \((x_1, y_1)\) = coordinates of the first point
- \((x_2, y_2)\) = coordinates of the second point
- \(y_2 - y_1\) = the rise (vertical change)
- \(x_2 - x_1\) = the run (horizontal change)
3. How to Find the Slope of a Line — Step by Step
Follow these steps to find the slope between any two points:
- Identify the two points. Write them as \((x_1, y_1)\) and \((x_2, y_2)\). For example: \((3, 2)\) and \((7, 10)\).
- Find the rise. Subtract the \(y\)-values: \(y_2 - y_1 = 10 - 2 = 8\).
- Find the run. Subtract the \(x\)-values: \(x_2 - x_1 = 7 - 3 = 4\).
- Divide rise by run. \(m = \frac{8}{4} = 2\).
- Interpret the result. A slope of \(2\) means the line rises 2 units for every 1 unit it moves to the right.
4. Types of Slope
There are four types of slope you will encounter:
| Type | Slope Value | Direction | Example |
|---|---|---|---|
| Positive | \(m > 0\) | Line rises left → right ↗ | \(m = 3\) |
| Negative | \(m < 0\) | Line falls left → right ↘ | \(m = -2\) |
| Zero | \(m = 0\) | Horizontal line → | \(y = 5\) |
| Undefined | DNE | Vertical line ↑ | \(x = 3\) |
A vertical line has an undefined slope because the run (denominator) equals zero, and division by zero is undefined in mathematics. This is a critical distinction that appears frequently on algebra tests and standardised exams.
5. Slope-Intercept Form (y = mx + b)
The most common way to express a linear equation is the slope-intercept form:
- \(m\) = the slope of the line
- \(b\) = the y-intercept (where the line crosses the y-axis)
If you are given an equation in slope-intercept form, the slope is simply the coefficient of \(x\). For example, in \(y = 3x - 7\), the slope is \(m = 3\) and the y-intercept is \(b = -7\). This means the line crosses the y-axis at the point \((0, -7)\) and rises 3 units for every 1 unit to the right.
6. Finding Slope from an Equation
Not all equations are given in slope-intercept form. Here is how to find the slope from different equation forms:
Standard Form: Ax + By = C
To find slope from standard form, rearrange to slope-intercept form, or use the shortcut:
For example, given \(3x + 4y = 12\): \(m = -\frac{3}{4}\). The slope is \(-\frac{3}{4}\), meaning the line falls 3 units for every 4 units to the right.
Point-Slope Form: y − y₁ = m(x − x₁)
The slope is the coefficient directly in front of \((x - x_1)\). For example, in \(y - 5 = 2(x - 3)\), the slope is \(m = 2\). This form is especially useful when you know the slope and one point on the line.
7. Parallel and Perpendicular Slopes
Two important slope relationships appear constantly in geometry and algebra:
- Parallel lines have the same slope: \(m_1 = m_2\). If one line has a slope of \(\frac{2}{3}\), any line parallel to it also has a slope of \(\frac{2}{3}\).
- Perpendicular lines have slopes that are negative reciprocals: \(m_1 \cdot m_2 = -1\). If one line has a slope of \(\frac{2}{3}\), a perpendicular line has a slope of \(-\frac{3}{2}\).
8. Real-World Applications of Slope
Slope is not just an abstract math concept — it appears everywhere in the real world:
- Construction & Architecture: Roof pitch is measured as rise over run. A "6/12 pitch" means the roof rises 6 inches for every 12 inches of horizontal distance — a slope of \(\frac{1}{2}\).
- Road Engineering: Road grades are expressed as percentages. A 5% grade means a slope of \(0.05\), or a rise of 5 metres for every 100 metres of horizontal distance.
- Economics: The slope of a supply or demand curve shows how price changes affect quantity. A steep demand curve (large negative slope) means consumers are price-sensitive.
- Physics: On a position-time graph, the slope represents velocity. On a velocity-time graph, the slope represents acceleration.
- Data Science: In linear regression, the slope of the best-fit line tells you the rate of change between variables — for example, how much test scores improve per hour of study.
- Accessibility: The ADA (Americans with Disabilities Act) requires wheelchair ramps to have a maximum slope of \(\frac{1}{12}\), meaning no more than 1 inch of rise per 12 inches of run.
🧮 Free Slope Calculator — 11 Modes
Use the calculator below to find slope from two points, convert between equation forms, find parallel and perpendicular lines, calculate distance and midpoint, and more. Select your mode from the dropdown and enter your values.
📐 Slope Calculator
📚 Instructions:
- Two Points: Calculate slope between two coordinate points
- Point-Slope: Find equation given a point and slope
- Slope-Intercept: Work with y = mx + b form
- Standard Form: Analyze Ax + By = C equations
- Parallel Lines: Find parallel line equations
- Perpendicular: Find perpendicular line equations
- Angle: Convert between slope and angle of inclination
- From Equation: Extract slope from various equation forms
- Distance & Midpoint: Additional line segment analysis
- Rate of Change: Real-world applications with units
- Complete Analysis: All line properties in one report
📝 Worked Examples — How to Find Slope
Example 1: Find the Slope from Two Points
Problem: Find the slope of the line passing through \((3, 2)\) and \((7, 10)\).
Solution: Apply the slope formula \(m = \frac{y_2 - y_1}{x_2 - x_1}\):
Answer: The slope is \(m = 2\). The line rises 2 units for every 1 unit it moves right. In slope-intercept form: \(y = 2x - 4\).
Example 2: Find the Slope from an Equation (Standard Form)
Problem: What is the slope of the line \(3x + 4y = 12\)?
Solution: For standard form \(Ax + By = C\), use \(m = -\frac{A}{B}\):
Answer: The slope is \(-\frac{3}{4}\). The line falls 3 units for every 4 units right. In slope-intercept form: \(y = -\frac{3}{4}x + 3\).
Example 3: Horizontal and Vertical Lines
Problem: Find the slope of (a) a line through \((2, 5)\) and \((8, 5)\), and (b) a line through \((4, 1)\) and \((4, 9)\).
Solution (a) — Horizontal:
Solution (b) — Vertical:
Example 4: Parallel and Perpendicular Slopes
Problem: A line has slope \(\frac{2}{3}\). Find (a) a parallel line's slope and (b) a perpendicular line's slope.
(a) Parallel: \(m_{\text{parallel}} = \frac{2}{3}\) (same slope).
(b) Perpendicular:
Verification: \(\frac{2}{3} \times (-\frac{3}{2}) = -1\). ✓
🔢 Slope Formula Quick Reference
| Form | Formula | When to Use |
|---|---|---|
| Slope Formula | \(m = \frac{y_2 - y_1}{x_2 - x_1}\) | Given two points |
| Slope-Intercept | \(y = mx + b\) | Slope = coefficient of \(x\) |
| Standard Form | \(m = -A/B\) | Given \(Ax + By = C\) |
| Point-Slope | \(y - y_1 = m(x - x_1)\) | Given slope + one point |
| Parallel Lines | \(m_1 = m_2\) | Same slope |
| Perpendicular | \(m_1 \cdot m_2 = -1\) | Negative reciprocals |
| Angle | \(\theta = \arctan(m)\) | Slope → angle |
❓ Frequently Asked Questions — Slope
📐 Need More Math Help?
Explore our other free tools: Long Division Calculator, and more at HeLovesMath.com.

