MathIsimple
Math

Slope Calculator

Calculate the slope of a line between two points using the slope formula

100% FreeStep-by-Step Solutions
Slope Calculator
Enter coordinates of two points to calculate the slope
Try These Examples
Click on any example to automatically fill the calculator
Example 1

Basic: (2, 3) and (5, 9)

x1: 2
y1: 3
x2: 5
y2: 9
Example 2

Origin: (0, 0) and (4, 2)

x1: 0
y1: 0
x2: 4
y2: 2
Example 3

Horizontal: (1, 5) and (7, 5)

x1: 1
y1: 5
x2: 7
y2: 5
Example 4

Vertical: (3, 2) and (3, 8)

x1: 3
y1: 2
x2: 3
y2: 8
Example 5

Negative: (1, 8) and (5, 2)

x1: 1
y1: 8
x2: 5
y2: 2
Example 6

Decimals: (-2.5, 4.5) and (3.5, -1.5)

x1: -2.5
y1: 4.5
x2: 3.5
y2: -1.5
Slope Formula

The slope of a line between two points (x₁, y₁) and (x₂, y₂) is:

m=y2y1x2x1=riserunm = \frac{y_2 - y_1}{x_2 - x_1} = \frac{\text{rise}}{\text{run}}

The slope represents the rate of change: how much y changes for each unit change in x.

Special Cases

Positive slope: Line rises from left to right

Negative slope: Line falls from left to right

Zero slope: Horizontal line (y = constant)

Undefined slope: Vertical line (x = constant)

Real-World Applications

Construction: Road Grade

Calculate road steepness and inclines for highway design. A 5% grade means 5 feet of elevation change per 100 feet horizontally.

Economics: Rate of Change

Analyze price trends, revenue growth rates, and cost changes over time using slope as the rate of change indicator.

Medicine: Dosage Calculations

Determine medication absorption rates and concentration changes in bloodstream over time intervals.

Sports: Performance Analysis

Track athlete improvement rates, speed changes during races, and training progress over time periods.

Navigation: Direction Finding

Calculate bearing angles for GPS navigation, drone flight paths, and maritime route planning.

Common Mistakes to Avoid

Swapping coordinates inconsistently

Use (y₂ - y₁) / (x₂ - x₁), not (y₂ - y₁) / (x₁ - x₂). Keep the same order for both numerator and denominator.

Confusing rise and run

Rise is the vertical change (Δy), run is horizontal (Δx). Slope = rise/run, not run/rise.

Saying vertical slope is zero

Vertical lines have undefined slope (division by zero), not zero. Horizontal lines have zero slope.

Misinterpreting negative slopes

Negative slope doesn't mean "wrong" - it just means the line decreases from left to right (downhill).

Best Practice

Label your points clearly as (x₁, y₁) and (x₂, y₂) before calculating. Draw a sketch to visualize rise and run.

Linear Equation Forms Comparison
FormEquationBest Used ForKey Feature
Slope-Intercepty=mx+by = mx + bGraphing; identifying slope and y-intercept quicklyShows slope (m) and y-intercept (b) directly
Point-Slopeyy1=m(xx1)y - y_1 = m(x - x_1)Writing equations when you know slope and one pointEasy to write from given information
Standard FormAx+By=CAx + By = CFinding x and y intercepts; integer coefficientsSymmetrical; good for linear systems
Two-Point Formyy1y2y1=xx1x2x1\frac{y - y_1}{y_2 - y_1} = \frac{x - x_1}{x_2 - x_1}Writing equations from two points directlyNo need to calculate slope first
Parallel and Perpendicular Lines

Understanding the relationship between slopes helps solve geometric problems and analyze line relationships.

Parallel Lines

m1=m2m_1 = m_2

Parallel lines have equal slopes. They never intersect and maintain constant distance.

Example: If line 1 has slope 3, any parallel line also has slope 3.

Perpendicular Lines

m1m2=1m_1 \cdot m_2 = -1

Perpendicular lines have negative reciprocal slopes. They intersect at 90° angles.

Example: If line 1 has slope 2/3, perpendicular line has slope -3/2.

Special Case: Horizontal lines (slope = 0) are perpendicular to vertical lines (undefined slope). The negative reciprocal rule doesn't apply to vertical/horizontal pairs.

When Slope Is a Matter of Law: ADA Wheelchair Ramp Standards

Slope isn't just an abstract math concept — it's literally written into federal law. The Americans with Disabilities Act (ADA) requires every public building to have wheelchair-accessible ramps that meet exact slope specifications.

The Legal Maximum Slope

Maximum slope=112=0.0833=8.33%\text{Maximum slope} = \frac{1}{12} = 0.0833 = 8.33\%

This means for every 1 inch of vertical rise, the ramp must extend at least 12 inches horizontally.

♿ Real Calculation

A building entrance is 30 inches above ground. What's the minimum ramp length?

Length=rise×12=30×12=360 in\text{Length} = \text{rise} \times 12 = 30 \times 12 = 360 \text{ in}

= 30 feet of ramp! That's why many ramps switchback.

🔄 Cross-Slope Rule

The side-to-side slope (perpendicular to travel direction) must not exceed:

Cross slope1482.08%\text{Cross slope} \leq \frac{1}{48} \approx 2.08\%

This prevents wheelchairs from drifting sideways — a danger most people never think about.

Frequently Asked Questions

Slope measures the steepness and direction of a line. Formula: m = (y₂ - y₁) / (x₂ - x₁) = rise/run. It represents the rate of change - how much y changes for each unit change in x. Positive slopes rise, negative slopes fall.
Ask AI ✨
Slope Calculator - Find Slope Between Two Points | MathIsimple