TFT

Slope Calculator – Find the Slope of a Line Online

Calculate the slope or gradient of any line using two points or a linear equation with our free online slope calculator. Find slope, intercepts, and line equations easily.

Examples:

Understanding Slope

Slope measures how steep a line is. It tells you how much the line rises (or falls) for every unit it moves horizontally. A positive slope goes uphill from left to right. A negative slope goes downhill. A slope of zero is perfectly flat (horizontal). And a vertical line? Its slope is undefined – you'd be dividing by zero.

Think of slope as "rise over run." If you're walking up a ramp that rises 1 foot for every 10 feet forward, the slope is 1/10 = 0.1. Steeper ramps have higher slopes. This concept shows up everywhere – roof pitches, road grades, wheelchair ramp requirements, and even in economics when analyzing supply and demand curves.

The Slope Formula

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

What it means:

  • m = slope (gradient)
  • (x₁, y₁) = first point
  • (x₂, y₂) = second point

Slope-Intercept Form:

y = mx + b

Where b is the y-intercept

Worked Examples

Example 1: Positive slope

Problem: Find the slope through points (1, 2) and (4, 8)

Solution: m = (8 - 2) / (4 - 1) = 6 / 3 = 2

The line rises 2 units for every 1 unit it moves right.

Example 2: Negative slope

Problem: Find the slope through points (-3, 5) and (2, -1)

Solution: m = (-1 - 5) / (2 - (-3)) = -6 / 5 = -1.2

The line falls 1.2 units for every 1 unit it moves right.

Example 3: Zero slope (horizontal line)

Problem: Find the slope through points (1, 4) and (7, 4)

Solution: m = (4 - 4) / (7 - 1) = 0 / 6 = 0

Horizontal lines have zero slope – no rise, only run.

Example 4: From equation y = -3x + 7

Problem: Identify the slope from y = -3x + 7

Solution: In y = mx + b form, m = -3

The slope is -3, and the y-intercept is (0, 7).

Example 5: From standard form 2x + 3y = 12

Problem: Find the slope from 2x + 3y = 12

Solution: Convert to slope-intercept form:

3y = -2x + 12 → y = (-2/3)x + 4

The slope is -2/3 ≈ -0.667

Quick Fact

The concept of slope dates back to ancient Greece. Archimedes (287-212 BCE) used early forms of slope in his work on levers and inclined planes. The modern notation "m" for slope first appeared in the mid-1800s, though mathematicians still debate why "m" was chosen. Some say it stands for "modulus of slope," others suggest it comes from the French "monter" (to climb).

Interpreting Slope Values

Positive Slope (m > 0)

  • • Line rises from left to right
  • • As x increases, y increases
  • • Example: m = 2 means rise 2, run 1
  • • Real-world: climbing a hill, increasing profits

Negative Slope (m < 0)

  • • Line falls from left to right
  • • As x increases, y decreases
  • • Example: m = -3 means fall 3, run 1
  • • Real-world: descending stairs, depreciation

Zero Slope (m = 0)

  • • Horizontal line
  • • y stays constant regardless of x
  • • Equation: y = b (no x term)
  • • Real-world: flat ground, constant temperature

Undefined Slope

  • • Vertical line
  • • Division by zero (x₂ - x₁ = 0)
  • • Equation: x = a (no y term)
  • • Real-world: a wall, elevator shaft

Frequently Asked Questions

What does a slope of 1/2 mean?

A slope of 1/2 means the line rises 1 unit for every 2 units it moves right. It's a gentle incline – less steep than a 45° angle (which would be slope = 1). In percentage terms, that's a 50% grade.

Can slope be a decimal or fraction?

Absolutely. Slopes are often fractions (like 3/4) or decimals (like 0.75). Both represent the same thing: rise over run. A slope of 0.75 means the line rises 0.75 units for every 1 unit forward.

How is slope related to angle?

Slope equals the tangent of the angle the line makes with the horizontal. If a line makes a 30° angle, its slope is tan(30°) ≈ 0.577. A 45° angle gives slope = 1. A 60° angle gives slope ≈ 1.732.

What's the difference between slope and gradient?

In basic algebra, they're the same thing. "Gradient" is more common in physics and engineering, while "slope" is standard in math class. In advanced calculus, gradient refers to a vector of partial derivatives, but that's beyond basic line slope.

How do I find slope from a graph?

Pick any two points on the line. Count the vertical change (rise) and horizontal change (run) between them. Slope = rise/run. You can use grid squares if the graph has them. The slope is the same no matter which two points you pick on a straight line.

Why is vertical slope undefined?

For a vertical line, x doesn't change, so x₂ - x₁ = 0. The slope formula becomes (y₂ - y₁) / 0, and division by zero is undefined in mathematics. You can think of it as "infinitely steep" – the line goes straight up with no horizontal movement.

Other Free Tools

Distance Between Two Points Calculator – Find Distance Online

Find the distance between any two points on a coordinate plane using our free online distance formula calculator. Supports 2D and 3D coordinates with instant accurate results.

Midpoint Calculator – Find the Midpoint of a Line Segment

Calculate the midpoint between any two coordinate points with our free online midpoint calculator. Get the exact midpoint coordinates with the midpoint formula shown clearly.

Coordinate Geometry Calculator – Distance, Slope, Midpoint Online

Perform all coordinate geometry calculations with our free online calculator. Find distance, midpoint, slope, and line equations for any pair of coordinate points instantly.

Coordinate Plane Plotter – Plot Points & Lines Online

Plot points, lines, and geometric shapes on an interactive coordinate plane with our free online plotter. Ideal for graphing equations, visualizing geometry, and teaching math.

Linear Regression Calculator – Find Best Fit Line Online

Perform linear regression analysis on any dataset with our free online linear regression calculator. Get the regression equation, slope, intercept, and R² value with a scatter plot.

Gradient Calculator – Find Slope of a Function at a Point

Calculate the gradient or slope of any function at a specific point with our free online gradient calculator. Uses differentiation to find the exact rate of change at any x value.

2D Function Plotter – Plot y = f(x) Graphs Online

Plot any mathematical function y = f(x) on an interactive graph with our free online 2D function plotter. Visualize polynomials, trig functions, exponentials, and more instantly.

Linear Equation Solver – Solve ax + b = c Online

Solve any linear equation of the form ax + b = c instantly with our free online linear equation solver. Get step-by-step solutions for one-variable linear equations.