Skip to main content

Slope Calculator

Calculate the slope, y-intercept, distance, and equation of a line from two points on a coordinate plane.

Advertisement

X-coordinate of the first point.

Y-coordinate of the first point.

X-coordinate of the second point.

Y-coordinate of the second point.

AI Math Assistant

Beta

Ask questions about your calculation results

I can help you understand your results and explore your options. Try asking:

3 free questions per session

AI provides general assistance. Always verify important calculations.

About This Calculator

Slope measures the steepness and direction of a line, defined as the ratio of vertical change to horizontal change between two points. This calculator determines slope from coordinate pairs, converts between slope-intercept and point-slope forms, and identifies parallel and perpendicular relationships. Understanding slope is essential for interpreting rate of change in contexts ranging from road grades to economic trends.

Quick Tips

  • 1 Slope = rise over run — vertical change divided by horizontal change.
  • 2 A slope of zero is a horizontal line; undefined slope is vertical.
  • 3 Parallel lines have equal slopes; perpendicular lines have negative reciprocal slopes.

Example Calculation

Scenario

A road rises from point (2, 150) to point (10, 230) in meters.

Result

Slope: 10 (rise/run = 80/8) | The road rises 10 meters per 1 meter horizontal

How to Calculate Slope

Slope measures the steepness and direction of a line. The formula is m = (y₂ - y₁) / (x₂ - x₁), or "rise over run." A positive slope goes upward left to right, a negative slope goes downward, zero slope is horizontal, and undefined slope is vertical.

Slope-Intercept Form

The slope-intercept form of a line is y = mx + b, where m is the slope and b is the y-intercept (where the line crosses the y-axis). Given two points, first calculate the slope, then substitute one point into y = mx + b to solve for b.

Point-Slope Form

The point-slope form is y - y₁ = m(x - x₁), useful when you know the slope and one point. It can be converted to slope-intercept form by distributing m and adding y₁ to both sides. Both forms describe the same line.

Parallel and Perpendicular Lines

Parallel lines have equal slopes (m₁ = m₂). Perpendicular lines have negative reciprocal slopes (m₁ × m₂ = -1). For example, a line with slope 2 is perpendicular to a line with slope -1/2. These relationships are fundamental in geometry and coordinate proofs.

Frequently Asked Questions