Calculator

How to Find Slope | Slope Formula & Calculator (Free 2026)

Learn how to find slope with the slope formula m = (y₂ − y₁)/(x₂ − x₁). Free slope calculator, step-by-step examples & practice problems. Updated 2026.

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.

$$m = \frac{\text{rise}}{\text{run}} = \frac{\text{change in } y}{\text{change in } x} = \frac{\Delta y}{\Delta x}$$

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)\):

$$m = \frac{y_2 - y_1}{x_2 - x_1}$$

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)
💡 Key Point: It does not matter which point you label as "Point 1" and which as "Point 2" — the slope will be the same either way, as long as you subtract consistently: numerator uses the same order as the denominator.

3. How to Find the Slope of a Line — Step by Step

Follow these steps to find the slope between any two points:

  1. Identify the two points. Write them as \((x_1, y_1)\) and \((x_2, y_2)\). For example: \((3, 2)\) and \((7, 10)\).
  2. Find the rise. Subtract the \(y\)-values: \(y_2 - y_1 = 10 - 2 = 8\).
  3. Find the run. Subtract the \(x\)-values: \(x_2 - x_1 = 7 - 3 = 4\).
  4. Divide rise by run. \(m = \frac{8}{4} = 2\).
  5. Interpret the result. A slope of \(2\) means the line rises 2 units for every 1 unit it moves to the right.
$$m = \frac{10 - 2}{7 - 3} = \frac{8}{4} = 2$$

4. Types of Slope

There are four types of slope you will encounter:

TypeSlope ValueDirectionExample
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\)
UndefinedDNEVertical 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:

$$y = mx + b$$
  • \(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:

$$m = -\frac{A}{B}$$

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}\).
$$\text{Parallel: } m_1 = m_2 \qquad \text{Perpendicular: } m_1 \cdot m_2 = -1$$
⚠️ Exception: A horizontal line (slope = 0) and a vertical line (undefined slope) are perpendicular, but the product rule \(m_1 \cdot m_2 = -1\) does not apply since we cannot multiply by undefined.

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}\):

$$m = \frac{10 - 2}{7 - 3} = \frac{8}{4} = 2$$

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}\):

$$m = -\frac{3}{4} = -0.75$$

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:

$$m = \frac{5 - 5}{8 - 2} = \frac{0}{6} = 0 \quad \text{(horizontal line)}$$

Solution (b) — Vertical:

$$m = \frac{9 - 1}{4 - 4} = \frac{8}{0} = \text{undefined} \quad \text{(vertical line)}$$

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:

$$m_{\perp} = -\frac{1}{m} = -\frac{1}{\frac{2}{3}} = -\frac{3}{2}$$

Verification: \(\frac{2}{3} \times (-\frac{3}{2}) = -1\). ✓

📝 Study Tip (Updated March 2026): Practice finding slopes daily using our free calculator above. Students who work through 3–5 slope problems per study session retain the formula significantly better for exams.

🔢 Slope Formula Quick Reference

FormFormulaWhen 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

The slope formula is \(m = \frac{y_2 - y_1}{x_2 - x_1}\), where \((x_1, y_1)\) and \((x_2, y_2)\) are two points on the line. It calculates the ratio of the vertical change (rise) to the horizontal change (run).
Identify two points on the line. Subtract the y-coordinates (rise) and divide by the subtracted x-coordinates (run). If the line is given as an equation, convert to slope-intercept form \(y = mx + b\) and the coefficient of \(x\) is the slope.
Slope measures the steepness and direction of a line. Positive slope = upward; negative = downward; zero = horizontal; undefined = vertical. It is also called the "rate of change" or "gradient."
Slope-intercept form \(y = mx + b\): slope is \(m\). Standard form \(Ax + By = C\): slope is \(-A/B\). Point-slope form \(y - y_1 = m(x - x_1)\): slope is the coefficient in front of the parentheses.
A vertical line has an undefined slope because the run (denominator) equals zero, and division by zero is undefined.
A horizontal line has a slope of zero. The rise is zero, so \(m = 0 / \text{run} = 0\). Its equation is \(y = k\) for some constant.
Parallel lines have equal slopes (\(m_1 = m_2\)). Perpendicular lines have slopes that multiply to \(-1\) (\(m_1 \cdot m_2 = -1\)), meaning they are negative reciprocals of each other.
"Rise over run" describes slope. Rise = vertical change (\(\Delta y\)). Run = horizontal change (\(\Delta x\)). Slope = rise ÷ run. A slope of \(\frac{3}{5}\) means the line goes up 3 for every 5 to the right.
Yes. Slope can be any real number — a whole number like \(3\), a fraction like \(\frac{2}{5}\), a decimal like \(0.75\), or negative. Most real-world slopes are non-integer values.
Slope-intercept form is \(y = mx + b\), where \(m\) = slope and \(b\) = y-intercept. It is the most common form for linear equations because you can immediately read the slope and where the line crosses the y-axis.

📐 Need More Math Help?

Explore our other free tools: Long Division Calculator, and more at HeLovesMath.com.

© 2026 He Loves Mathhelovesmath.com

Free math tools, calculators, and step-by-step guides. Last updated: March 21, 2026.

Shares:

Related Posts