Slope Calculator
Slope - Solve mathematical problems with step-by-step solutions.
Slope Calculator
From Two Points
Point 1
Point 2
Slope Formula
The slope of a line measures its steepness. It is calculated as the "rise over run"—the change in y divided by the change in x between two points on the line.
m = (y₂ - y₁) / (x₂ - x₁)
How the Slope Calculator Works
The Slope Calculator determines the slope (gradient or rate of change) of a line given two points or from a linear equation. Slope is a fundamental concept in algebra, calculus, and real-world applications, measuring how steep a line is and the direction it travels.
Key Features
- Two-Point Slope: Calculate slope from two coordinate points using the formula m = (y2 - y1)/(x2 - x1).
- Equation Analysis: Extract slope from equations in various forms (slope-intercept, point-slope, standard form).
- Slope Types: Identify positive, negative, zero, and undefined slopes.
- Parallel and Perpendicular Lines: Find slopes of lines parallel or perpendicular to a given line.
- Angle Calculation: Convert between slope and angle of inclination.
- Graphical Visualization: See the line plotted with rise over run illustrated clearly.
Understanding Slope
Slope (m) measures the steepness and direction of a line. It represents the ratio of vertical change (rise) to horizontal change (run) between any two points on the line.
m = (y2 - y1)/(x2 - x1) = rise/run
Positive slope: line rises left to right
Negative slope: line falls left to right
Zero slope: horizontal line
Undefined slope: vertical lineSlope Calculator Examples
Example 1: Positive Slope
Find the slope of the line through points (2, 3) and (5, 9):
Given points: (x<sub>1</sub>, y<sub>1</sub>) = (2, 3) and (x<sub>2</sub>, y<sub>2</sub>) = (5, 9) Use slope formula: m = (y<sub>2</sub> - y<sub>1</sub>)/(x<sub>2</sub> - x<sub>1</sub>) m = (9 - 3)/(5 - 2) m = 6/3 m = 2 The slope is 2 (positive). Interpretation: - For every 1 unit right, the line rises 2 units up - Rise = 6, Run = 3, Rise/Run = 2/1 - The line goes upward from left to right
Example 2: Negative Slope
Find the slope through points (-1, 4) and (3, -2):
Given points: (x<sub>1</sub>, y<sub>1</sub>) = (-1, 4) and (x<sub>2</sub>, y<sub>2</sub>) = (3, -2) m = (y<sub>2</sub> - y<sub>1</sub>)/(x<sub>2</sub> - x<sub>1</sub>) m = (-2 - 4)/(3 - (-1)) m = -6/4 m = -3/2 m = -1.5 The slope is -1.5 (negative). Interpretation: - For every 2 units right, the line falls 3 units down - Rise = -6 (negative means falling), Run = 4 - The line goes downward from left to right
Example 3: Zero Slope (Horizontal Line)
Find the slope through points (1, 5) and (7, 5):
Given points: (x<sub>1</sub>, y<sub>1</sub>) = (1, 5) and (x<sub>2</sub>, y<sub>2</sub>) = (7, 5) m = (y<sub>2</sub> - y<sub>1</sub>)/(x<sub>2</sub> - x<sub>1</sub>) m = (5 - 5)/(7 - 1) m = 0/6 m = 0 The slope is 0 (zero slope). Interpretation: - The line is horizontal (parallel to x-axis) - No vertical change as x increases - Equation form: y = 5 (constant y-value)
Example 4: Undefined Slope (Vertical Line)
Find the slope through points (4, 2) and (4, 8):
Given points: (x<sub>1</sub>, y<sub>1</sub>) = (4, 2) and (x<sub>2</sub>, y<sub>2</sub>) = (4, 8) m = (y<sub>2</sub> - y<sub>1</sub>)/(x<sub>2</sub> - x<sub>1</sub>) m = (8 - 2)/(4 - 4) m = 6/0 m = undefined The slope is undefined. Interpretation: - The line is vertical (parallel to y-axis) - Division by zero (run = 0) - Equation form: x = 4 (constant x-value) - Infinite steepness
Example 5: Parallel and Perpendicular Lines
Given a line with slope m = 3, find slopes of parallel and perpendicular lines:
Original line: m = 3 Parallel line: - Parallel lines have the same slope - Slope of parallel line: m = 3 Perpendicular line: - Perpendicular slopes are negative reciprocals - If m<sub>1</sub> = 3, then m<sub>2</sub> = -1/3 - Slope of perpendicular line: m = -1/3 Verification: m<sub>1</sub> × m<sub>2</sub> = 3 × (-1/3) = -1 ✓ (Product of perpendicular slopes is always -1)
Tips for Calculating Slope
- Order Doesn't Matter: You can use either point as (x1, y1), just be consistent. Both (y2-y1)/(x2-x1) and (y1-y2)/(x1-x2) give the same result.
- Rise Over Run: Remember "rise over run" - vertical change (Δy) divided by horizontal change (Δx).
- Sign Interpretation: Positive slope = upward, negative slope = downward, zero = horizontal, undefined = vertical.
- Parallel Lines: Parallel lines have equal slopes: if m1 = m2, lines are parallel.
- Perpendicular Lines: Perpendicular slopes multiply to -1: m1 × m2 = -1, or m2 = -1/m1.
- Slope-Intercept Form: In y = mx + b, the coefficient m is the slope, b is the y-intercept.
- Rate of Change: Slope represents rate of change - in real applications, it might be speed (distance/time), cost per item, etc.
- Fraction Slopes: Slopes like 2/3 mean rise 2 units for every 3 units of run. Both numerator and denominator should be integers when possible.
Frequently Asked Questions
Related Math Calculators
Basic Calculator
A simple calculator for basic arithmetic operations including addition, subtraction, multiplication, and division.
Percentage Calculator
Calculate percentages, percentage changes, discounts, and more with our comprehensive percentage calculator.
Scientific Calculator
An advanced calculator with trigonometric, logarithmic, exponential, and memory functions.
Series And Sequence Calculator
Series And Sequence - Solve mathematical problems with step-by-step solutions.
Absolute Value Calculator
Calculate the absolute value of any number or expression.
Algebra Calculator
Solve algebraic equations and expressions with step-by-step solutions.