Skip to Content
Slope Calculator — Two Points, Angle, Rise/Run, Intercept & Graph

Calculator

Slope (m)

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

Rise & run

Rise: — | Run: —
Rise = y₂ − y₁; Run = x₂ − x₁

Angle & intercept

θ: —° | y-intercept: —
θ = arctan(m) (degrees); y = mx + b

Line equation

Point-slope and slope-intercept forms

Distance between points

d = √[(x₂−x₁)² + (y₂−y₁)²]
Dynamic plot: the line through both points with axes and scale.
Tip: Vertical line when x₁ = x₂ → slope undefined; equation x = constant. Horizontal line when y₁ = y₂ → slope 0.

Slope: A complete guide to lines, angles, and rise/run

Slope measures how steep a line is. It compares vertical change (rise) to horizontal change (run) between two points. This calculator standardizes the process and provides slope, angle of inclination, intercept, and the full line equation — ideal for students, engineers, analysts, and anyone working with linear trends.

What is slope?

Slope \(m\) is defined as \(m=\frac{y_2-y_1}{x_2-x_1}\). Positive slopes rise to the right, negative slopes fall to the right. Zero slope indicates a horizontal line, while an undefined slope indicates a vertical line where \(x_1=x_2\).

Line equations

  • Point-slope: \(y - y_1 = m(x - x_1)\).
  • Slope-intercept: \(y = mx + b\), where \(b = y_1 - m x_1\).
  • Standard form: \(Ax + By = C\), with \(A,B,C\) integers.

Angles and metrics

  • Angle of inclination: \(\theta=\arctan(m)\) in degrees.
  • Rise/run: Rise \(=y_2-y_1\); Run \(=x_2-x_1\).
  • Distance: \(d=\sqrt{(x_2-x_1)^2+(y_2-y_1)^2}\).

Best practices

  • Check special cases: Handle vertical/horizontal lines explicitly.
  • Use consistent units: Ensure \(x\) and \(y\) units align for meaningful slopes.
  • Round appropriately: Keep enough precision for angles and intercepts.

Worked example

Example: \((x_1,y_1)=(2,3)\), \((x_2,y_2)=(8,15)\). Rise \(=12\), Run \(=6\) → \(m=2\). Angle \(=\arctan(2)\approx63.4349°\). Intercept \(b=y_1-mx_1=3-2\cdot2=-1\). Equation \(y=2x-1\).

Frequently asked questions

HOW TO compute slope from two points?

Enter x₁, y₁, x₂, y₂ and click Calculate. The calculator returns slope, rise/run, angle, intercept, and the line equation.

HOW TO find the angle from slope?

Angle of inclination is \(\theta=\arctan(m)\). The tool converts slope to degrees and displays θ automatically.

HOW TO get the slope-intercept form?

Using \(m\) and a point \((x_1,y_1)\), \(b=y_1-mx_1\). Then \(y=mx+b\). The calculator shows both point-slope and slope-intercept forms.

HOW TO handle vertical and horizontal lines?

Vertical: \(x_1=x_2\) → slope undefined; equation \(x=\text{constant}\). Horizontal: \(y_1=y_2\) → slope \(0\); equation \(y=\text{constant}\).

HOW TO plot the line?

After calculation, the dynamic plot shows axes, both points, and the line. Use the result values for labeling in reports.

```