LIVE
📏 Enter Two Points on the Line

Enter the x and y coordinates of two points. Negative numbers are fine.

Point 1 (x₁, y₁)
x
Enter x₁.
y
Enter y₁.
Point 2 (x₂, y₂)
x
Enter x₂.
y
Enter y₂.

Know the slope and one point? Find the full line equation in y = mx + b form.

m
Rise over run value
Enter a valid slope.
Known Point (x₁, y₁)
x
Enter x.
y
Enter y.

Enter a slope value to analyse its properties: angle, grade, perpendicular slope, and interpretation.

m
Can be positive, negative, or zero
Enter a valid slope value.
Slope (m)
y = mx + b
⚠️ Note: Results use IEEE 754 double-precision floating point. Coordinates and slopes are shown to 4 decimal places where needed. For exact symbolic answers in fractions, use the step-by-step working shown above.

Sources & Methodology

Slope formula verified against Khan Academy algebra curriculum and Common Core Math Standards for Grade 8 and High School (CCSS.MATH.CONTENT.8.EE.B.5). Distance formula uses Euclidean distance (Pythagorean theorem). Angle uses Math.atan() with degree conversion.
📘
Khan Academy — Slope Review & Slope Formula
Khan Academy’s algebra curriculum covering the slope formula, rise over run, slope-intercept form, and related linear equation concepts. The globally used standard for slope education at the introductory and advanced levels.
🏫
Common Core Math Standards — CCSS.MATH.8.EE.B.5
U.S. Common Core standard defining slope as “unit rate of change” and the proportional relationship between two quantities. This calculator implements the standard slope formula as required by CCSS.
Formulas implemented (all verified):
Slope: m = (y₂ − y₁) / (x₂ − x₁) Y-intercept: b = y₁ − m × x₁ Distance: d = √((x₂−x₁)² + (y₂−y₁)²) Midpoint: M = ((x₁+x₂)/2, (y₁+y₂)/2) Perpendicular slope: m⊥ = −1/m Angle: θ = arctan(|m|) in degrees isFinite guard on all results. Vertical line (x₁=x₂) handled as undefined slope. IEEE 754 double precision.

Last reviewed: April 2026

Slope, Rise Over Run & Line Equations — Everything You Need to Know

If there’s one concept that ties together algebra, geometry, trigonometry, and calculus, it’s slope. Once you genuinely understand what slope means — not just as a formula but as a rate of change — a huge chunk of mathematics suddenly makes sense. This guide covers everything from the basic rise-over-run definition all the way to parallel lines, perpendicular lines, and why slope even matters beyond the classroom.

Slope Formula: m = (y₂ − y₁) / (x₂ − x₁) = Rise / Run
Example: Points (2, 3) and (6, 7).
Rise = 7 − 3 = 4  |  Run = 6 − 2 = 4
Slope m = 4/4 = 1   (45° angle, going up to the right)
Y-intercept: b = 3 − (1)(2) = 1
Line equation: y = x + 1

What Is Slope, Really? (And Why Rise Over Run Makes Sense)

Slope is a ratio — specifically, how much a line rises vertically for every unit it moves horizontally. That’s all rise over run means. If a line has slope 3, it rises 3 units for every 1 unit you move right. If the slope is 0.5, it rises 1 unit for every 2 you move right. Negative slope works the same way, except the line falls instead of rises. A road with a 5% grade has a slope of 0.05 — it rises 5 feet for every 100 feet of horizontal distance. That’s a real-world slope that engineers, builders, and highway designers use every day.

The formula itself — m = (y₂ − y₁) / (x₂ − x₁) — is just formalising that ratio. Pick any two points on a line, subtract the y-coordinates (that’s your rise), subtract the x-coordinates (that’s your run), and divide. The order matters: y₂ − y₁ over x₂ − x₁, using the same point as the “second” for both. Flip the order of both points consistently and you get the same answer.

The Four Types of Slope Every Student Needs to Know

There are exactly four types of slope, and understanding them visually is as important as the formula:

Slope Reference Table — Common Values and Their Meaning

Slope (m)DirectionAngleEquation FormReal-World Example
0Horizontaly = bA flat road, sea level
0.06Gentle rise~3.4°y = 0.06x + bMaximum US highway grade
0.5Moderate rise~26.6°y = 0.5x + bGentle ski slope
145° rise45°y = x + bStaircase at 1:1 ratio
2Steep rise~63.4°y = 2x + bSteep trail, 200% grade
−145° fall45° downy = −x + bEqual decline, mirrored rise
undefinedVertical90°x = aVertical cliff, plumb line

Slope-Intercept Form (y = mx + b): Writing Line Equations

Once you have the slope, writing the full line equation in slope-intercept form is just one more step. The form is y = mx + b, where m is slope and b is the y-intercept (the point where the line crosses the y-axis). To find b, substitute the slope and one known point: b = y − mx. That’s it. Example: slope = 3, point (2, 7). Then b = 7 − 3(2) = 7 − 6 = 1. Equation: y = 3x + 1. You can verify by plugging the point back in: 7 = 3(2) + 1 = 7. Correct.

Slope-intercept form is the most useful format for graphing. The b value tells you exactly where to start on the y-axis. Then use the slope to find the next point: from the y-intercept, move right by 1 (the run) and up by m (the rise). Connect those dots and you have the line.

💡 Perpendicular Lines and the −1/m Rule: Two lines are perpendicular if their slopes multiply to −1. So if a line has slope 3, a line perpendicular to it has slope −1/3. If slope = 2/5, perpendicular slope = −5/2. This rule comes up constantly in geometry proofs, construction (ensuring corners are square), and computer graphics. Always check: m × m⊥ = −1 as your verification. Parallel lines are much simpler — same slope, different y-intercept.

Distance and Midpoint: The Bonus Calculations

Two points give you more than just a slope — they define a line segment with a specific length and a centre point. The distance formula d = √((x₂−x₁)² + (y₂−y₁)²) is just the Pythagorean theorem applied to coordinate geometry. The horizontal distance is your run, the vertical distance is your rise, and the hypotenuse is the actual length between the points. Example: (1, 1) to (4, 5). Run = 3, Rise = 4, Distance = √(9+16) = √25 = 5. The midpoint formula splits this segment equally: M = ((x₁+x₂)/2, (y₁+y₂)/2).

Frequently Asked Questions
Slope measures the steepness and direction of a line. It equals rise divided by run: m = (y₂ − y₁) / (x₂ − x₁). Positive slope goes up left to right; negative goes down; zero is horizontal; undefined is vertical.
Rise over run means slope. Rise = y₂ − y₁ (vertical change). Run = x₂ − x₁ (horizontal change). Slope = Rise ÷ Run. Points (2,3) and (6,7): Rise = 4, Run = 4, Slope = 1.
Slope-intercept form is y = mx + b, where m = slope and b = y-intercept (where the line crosses the y-axis). To find b: b = y − mx using any known point. Example: slope 2, point (3, 7). b = 7 − 2(3) = 1. Equation: y = 2x + 1.
Step 1: Calculate m = (y₂−y₁)/(x₂−x₁). Step 2: Find b = y₁ − m×x₁. Step 3: Write y = mx + b. Points (1,2) and (3,8): m = (8−2)/(3−1) = 3. b = 2 − 3(1) = −1. Equation: y = 3x − 1.
Undefined slope happens when a line is perfectly vertical, so the run = x₂ − x₁ = 0. Division by zero makes slope undefined. A vertical line through x = 5 has undefined slope and equation x = 5.
The line goes downward from left to right. As x increases, y decreases. Slope −2 means for every 1 unit right, the line drops 2 units. Real example: declining stock price, cooling temperature, or a ball rolling downhill.
Zero slope = horizontal line. y doesn’t change, no matter the x. Points (1,4) and (7,4): Rise = 0, Slope = 0/6 = 0. Equation: y = 4. Any flat road, shelf, or sea-level horizon has zero slope.
Perpendicular slopes are negative reciprocals: m⊥ = −1/m. If slope = 3, perpendicular = −1/3. If slope = −2/5, perpendicular = 5/2. Always verify: m × m⊥ = −1.
Parallel lines have identical slopes but different y-intercepts. y = 3x + 2 and y = 3x − 5 are parallel (slope = 3 for both). Same slope + same y-intercept = the same line, not parallel.
d = √((x₂−x₁)² + (y₂−y₁)²). It’s the Pythagorean theorem with coordinates. Points (1,1) and (4,5): d = √(9+16) = √25 = 5.
Midpoint = ((x₁+x₂)/2, (y₁+y₂)/2). Average the x-coords, average the y-coords. Points (2,4) and (8,10): Midpoint = (5, 7).
Slope is rate of change in real life. Road grade (6% grade = slope 0.06). Speed on a position-time graph. Profit growth per quarter. Temperature drop over hours. ADA ramp requirements (maximum 1:12 slope = 0.083). It’s everywhere.
Point-slope form: y − y₁ = m(x − x₁). Use it when you know slope and one point but not the y-intercept. Slope 4, point (2, 3): y − 3 = 4(x − 2) → y = 4x − 5.
Slope 1 = 45° angle. Every 1 unit right, 1 unit up. Slope 2 = ~63° (twice as steep). Slope 0.5 = ~27° (half as steep). Grade % = slope × 100, so slope 0.1 = 10% grade. ADA wheelchair ramps max 8.33% grade (slope ~0.083).
Related Math Calculators
Popular Calculators
🧮

Missing a Math Calculator?

Can’t find what you need? Tell us — we build new calculators every week.