Slope Calculator

Calculated using standard mathematical and industry formulas.

Free online Slope Calculator calculator for academic, engineering, and statistical math.

How to use this calculator?

  1. Enter coordinates for point 1 (x₁, y₁) and point 2 (x₂, y₂).
  2. Read slope m, y-intercept b, and the full line equation y = mx + b.
  3. The angle of inclination and perpendicular slope are also shown.

Formula & calculation method

Slope & line equation formulas

m = (y₂ − y₁) / (x₂ − x₁) · b = y₁ − m × x₁ · Equation: y = mx + b · θ = arctan(m)

m = slope, b = y-intercept, θ = angle of inclination. Perpendicular slope m⊥ = −1/m.

Step-by-step calculation example

Points (1, 2) and (4, 8): Δy = 6, Δx = 3, m = 2. b = 2 − 2×1 = 0. Equation: y = 2x.

Key insights to remember

How to interpret your results?

Slope m

Positive m: line rises left to right. Negative m: line falls. m = 0: flat line. Undefined: vertical line.

Y-intercept b

The y-value where the line crosses the y-axis (x = 0). From slope-intercept form: b = y₁ − m × x₁.

Angle of inclination

The angle θ between the line and the positive x-axis: θ = arctan(m). Ranges from 0° (horizontal) to 90° (vertical).

Frequently asked questions

How does the Slope Calculator calculator work?
It uses standard algebraic, geometric, or statistical theorems to return exact values.
How accurate are the results?
All calculations use double-precision floating-point arithmetic for exact accuracy.
Can I copy the step-by-step work?
Yes, step-by-step solutions are formatted clearly for homework or documentation.
How are undefined operations handled?
The calculator flags mathematical errors such as division by zero or negative square roots.
Is this tool suitable for students and engineers?
Yes, it is designed for students, teachers, engineers, and scientists.
Does it support negative numbers and decimals?
Yes, all real numbers (positive, negative, fractions, and decimals) are supported.

Related calculators

See all math calculators · Explore all online calculators