FREE INTERACTIVE CALCULATOR

Slope Calculator

Find the slope, angle and equation of a line from two coordinates.

YOUR INPUTSLIVE RESULTS
CALCULATED RESULTSlope: 2

Equation: y = 2x · Angle: 63.4349°

How it works

Slope m = (y₂ − y₁) / (x₂ − x₁), when x₂ is not equal to x₁.

The results update in your browser as you change the inputs. You can test alternatives without creating an account.

Worked example

The points (1, 2) and (4, 8) create a slope of 2 and the equation y = 2x.

The default values in the tool are illustrative. Change them to match your situation.

Assumptions and limitations

A vertical line has undefined slope and an equation of the form x = constant.

Results are educational estimates, not professional financial advice or a lender quote.

Frequently asked questions

How does this slope calculator work?

Slope m = (y₂ − y₁) / (x₂ − x₁), when x₂ is not equal to x₁.

What is an example?

The points (1, 2) and (4, 8) create a slope of 2 and the equation y = 2x.

What assumptions or limitations apply?

A vertical line has undefined slope and an equation of the form x = constant.

More calculation tools

Browse the calculator library · Mortgage Calculator · Calculation methodology

Content created October 23, 2026. Methods and editorial standards.