Two Points
Point 1 (x₁, y₁)
Point 2 (x₂, y₂)
Slope (m)
Enter two points above

Line & Slope Formulas

PropertyFormulaNotes
Slopem = (y₂−y₁)/(x₂−x₁)Rise over run
Y-interceptb = y₁ − m×x₁Where line crosses y-axis
Line equationy = mx + bSlope-intercept form
Point-slope formy−y₁ = m(x−x₁)Useful with one point
Angle of inclinationθ = arctan(m)Degrees; 0°=horizontal, 90°=vertical
Perpendicular slopem⊥ = −1/mNegative reciprocal
Parallel slopem∥ = mSame slope
Distanced = √((x₂−x₁)²+(y₂−y₁)²)Between the two points
MidpointM = ((x₁+x₂)/2, (y₁+y₂)/2)Center of segment

Road Grade (%)

Road grade is slope expressed as a percentage. A slope of 0.05 = 5% grade. A 7% grade means the road rises 7 feet for every 100 feet of horizontal distance — considered steep for highways.

Wheelchair Ramp

ADA requires a ramp slope no steeper than 1:12 (rise:run), which equals m = 1/12 ≈ 0.0833, or about 4.8°. For a 6-inch rise, the ramp must be at least 6 feet long horizontally.

Roof Pitch

Roof pitch is expressed as rise:run ratio per 12 inches. A "4/12 pitch" means 4 inches rise per 12 inches run — a slope of 0.333, angle ≈ 18.4°. Steeper pitches shed rain faster.

Finance & Trends

In data analysis, slope represents rate of change. If sales grew from $50K to $80K over 6 months, slope = (80K−50K)/6 = $5,000/month increase. A steeper slope means faster growth.

How to Use This Calculator

1

Enter Point 1

Provide the x and y coordinates of the first point (x₁, y₁).

2

Enter Point 2

Provide the x and y coordinates of the second point (x₂, y₂).

3

View Slope and Equation

The calculator displays the slope, y-intercept, and the equation of the line in slope-intercept form.

Formula & Methodology

Slope Formula

m = (y₂ − y₁) / (x₂ − x₁)

Rise over run: the change in y divided by the change in x.

Slope-Intercept Form

y = mx + b

Where m is the slope and b is the y-intercept (the value of y when x = 0).

Point-Slope Form

y − y₁ = m(x − x₁)

An alternative line equation using one known point and the slope.

Key Terms

Slope (m)
A measure of a line's steepness; the ratio of vertical change to horizontal change.
Y-Intercept (b)
The y-coordinate where the line crosses the y-axis (x = 0).
Rise
The vertical change between two points on a line (Δy).
Run
The horizontal change between two points on a line (Δx).
Undefined Slope
A vertical line has an undefined slope because the run (Δx) is zero, causing division by zero.

Real-World Examples

Example 1

Road Grade

(0, 0) and (100, 6)

m = 0.06 or 6% grade — a moderately steep road incline

Example 2

Linear Cost Function

(10, 250) and (50, 850)

m = 15 — each additional unit costs $15, with a fixed cost of $100 (y = 15x + 100)

Slope Interpretation Reference

Slope ValueDirectionSteepnessExample
m > 0Upward left to rightSteeper as m growsPositive correlation
m = 0HorizontalFlatConstant function
m < 0Downward left to rightSteeper as |m| growsDepreciation
m = 145° angleModeratey = x identity
UndefinedVerticalInfinitex = constant

Slope: The Foundation of Linear Relationships

Slope in Algebra and Calculus

In algebra, slope defines the rate of change of a linear function. In calculus, the concept extends to curves through the derivative, which gives the instantaneous slope at any point. Understanding slope as a rate of change—dollars per unit, meters per second, degrees per hour—is fundamental to modeling relationships in science, economics, and engineering.

Parallel and Perpendicular Lines

Two lines are parallel if and only if they have the same slope. Two lines are perpendicular if the product of their slopes equals −1 (each slope is the negative reciprocal of the other). These properties are used extensively in coordinate geometry proofs and in CAD software for architectural and mechanical design.