Universal Calculator
TAIIR

Slope Calculator

Find the slope, distance, midpoint, angle, and equation of a line from two points. Get results in all standard forms.

Recent

No calculations yet

Mastering Slope and Linear Equations: Complete Guide

Slope is a fundamental concept in algebra and geometry that measures the steepness and direction of a line. It is defined as the ratio of the vertical change (rise) to the horizontal change (run) between two points. This Professional Slope Calculator computes not only the slope but also the distance, midpoint, angle, and the complete equation of the line in slope‑intercept, point‑slope, and standard forms—all with a visual graph.

Slope Formula

The slope m of a line passing through points (x₁, y₁) and (x₂, y₂) is m = (y₂ − y₁) / (x₂ − x₁). If the denominator is zero, the line is vertical and the slope is undefined. A positive slope rises from left to right; a negative slope falls; zero slope is horizontal.

💡 Example: (2,3) and (6,8)

Rise = 8 − 3 = 5, Run = 6 − 2 = 4 → Slope = 5/4 = 1.25. Equation: y = 1.25x + 0.5.

Forms of Linear Equations

  • Slope‑Intercept Form: y = mx + b, where m is slope and b is the y‑intercept.
  • Point‑Slope Form: y − y₁ = m(x − x₁). Useful when you know a point and the slope.
  • Standard Form: Ax + By = C, with integers A, B, C and A ≥ 0.

Distance and Midpoint

The distance between two points is given by the Pythagorean theorem: d = √[(x₂−x₁)² + (y₂−y₁)²]. The midpoint is the average of the coordinates: M = ((x₁+x₂)/2, (y₁+y₂)/2).

Slope as an Angle and Percentage

The angle of inclination is θ = arctan(m) (in degrees). Percent slope, used in engineering and road grades, is |m| × 100%. A slope of 1 corresponds to a 45° angle and a 100% grade.

Frequently Asked Questions

What is a zero slope?

A zero slope occurs when the line is horizontal (y is constant). The rise is zero, so slope = 0. Equation: y = constant.

How do I find the perpendicular slope?

The perpendicular slope is the negative reciprocal. If m = 2, perpendicular slope = −1/2. For a vertical line, perpendicular is horizontal (slope 0).

How do I find the x‑intercept?

Set y = 0 in the line equation and solve for x. For y = mx + b, x = −b/m (provided m ≠ 0). The calculator shows both intercepts.

Can I use this for vertical lines?

Yes. When x₁ = x₂, the calculator reports "Undefined" slope and gives the equation x = constant.