Slope Calculator

Calculate slope from two points or slope-intercept form, find angle of inclination, parallel and perpendicular slopes, and graph the line.

About the Slope Calculator

Slope measures the steepness and direction of a line — it's the ratio of vertical change (rise) to horizontal change (run) between any two points. Expressed as m = (y₂ − y₁)/(x₂ − x₁), slope is one of the most fundamental concepts in coordinate geometry and calculus.

This calculator computes slope from two points or from a given equation, converts to slope-intercept form (y = mx + b), finds the angle of inclination, and determines parallel and perpendicular slopes. An interactive line graph shows the line and points, while a reference table lists several points along the line.

Positive slope means the line rises left to right; negative slope means it falls. A slope of 0 is horizontal, and undefined slope (division by zero) represents a vertical line. Slope connects directly to the concept of rate of change — in physics (velocity), economics (marginal cost), and calculus (the derivative). Mastering slope is the gateway to understanding linear functions, tangent lines, and differential calculus.

Why Use This Slope Calculator?

While the slope formula m = Δy/Δx is simple, fully analyzing a line requires computing the y-intercept (b = y₁ − mx₁), x-intercept (−b/m), perpendicular slope (−1/m), angle of inclination (arctan m), and distance between points — all from one pair of coordinates. This calculator does it all instantly, outputs the slope-intercept equation, graphs the line with labeled points, and generates a table of points along the line. It is the fastest way to go from two points to a complete line analysis.

How to Use This Calculator

  1. Choose input mode: two points or slope-intercept (m, b).
  2. Enter coordinates for two points, or provide slope and y-intercept.
  3. Use presets for common line types like horizontal, vertical, or diagonal.
  4. Review slope, line equation, angle, and related slopes in the output cards.
  5. Check the SVG plot to visualize the line.
  6. Use the points table to see values along the line.

Formula

m = (y₂ − y₁) / (x₂ − x₁) y = mx + b Angle = arctan(m) Perpendicular slope = −1/m

Example Calculation

Result: Slope = 4/3, y = 1.333x + 0.667, Angle ≈ 53.13°

m = (6−2)/(4−1) = 4/3 ≈ 1.333. y-intercept: 2 − (4/3)·1 = 2/3. Angle = arctan(4/3) ≈ 53.13°.

Tips & Best Practices

Slope as Rate of Change

Slope is the geometric representation of rate of change. In economics, slope = marginal cost (change in cost per unit produced). In physics, the slope of a position-time graph is velocity, and the slope of a velocity-time graph is acceleration. In medicine, a drug concentration curve's slope indicates how fast a medication is absorbed or eliminated. Any time you see a linear trend in data, slope quantifies the relationship: "for each unit increase in x, y changes by m units."

From Slope to Derivatives

The slope between two points is the average rate of change over that interval. As the two points get infinitely close, the slope becomes the derivative — the instantaneous rate of change. This is the fundamental bridge between algebra and calculus. The tangent line to a curve at a point has slope equal to the derivative f'(x) at that point. Understanding slope deeply makes the transition to calculus natural: derivatives are just slopes of tangent lines.

Special Slopes and Line Classifications

A slope of 0 means a horizontal line (no vertical change). An undefined slope (Δx = 0) means a vertical line. A slope of 1 means the line makes a 45° angle with the x-axis — equal rise and run. Slopes between −1 and 1 are "gentle" (less steep than 45°), while |m| > 1 indicates "steep" lines. Parallel lines share the same slope, and perpendicular lines have slopes that are negative reciprocals (m₁ × m₂ = −1). These relationships are the building blocks of coordinate geometry proofs.

Frequently Asked Questions

What is slope?

Slope is the ratio of vertical change to horizontal change: m = Δy/Δx. It measures steepness and direction.

What does undefined slope mean?

A vertical line has undefined slope because Δx = 0 (division by zero). The equation is x = constant.

How do I find the equation of a line?

Use y = mx + b. Find m from two points, then solve for b: b = y₁ − m·x₁.

What is point-slope form?

y − y₁ = m(x − x₁). Useful when you know the slope and one point on the line.

How does slope relate to derivatives?

The derivative f'(x) at a point gives the slope of the tangent line — the instantaneous rate of change. Understanding this concept helps you apply the calculator correctly and interpret the results with confidence.

What are perpendicular slopes?

If line 1 has slope m, a perpendicular line has slope −1/m. Their product is −1.

Related Pages