Math calculator

Slope Calculator

Enter two distinct points to see the direction and equation of the straight line through them.

Calculated privately on your device
No account. Formula and assumptions are shown below.

Calculator inputs

Slope between two points details

Formula & disclaimer

Slope m = (yβ‚‚ βˆ’ y₁) Γ· (xβ‚‚ βˆ’ x₁); Distance = √((xβ‚‚ βˆ’ x₁)Β² + (yβ‚‚ βˆ’ y₁)Β²)

View assumptions
Formula reviewCalcs at Hand Editorial TeamVerified 31 August 2026 Β· automated checks included

How to read this result

Three useful checks, kept deliberately short.

What this result includes

The slope is 2 and the line equation is y = 2x.

A practical example

Points (1, 2) and (5, 10): Calculate rise and run Β· Divide rise by run Β· Substitute into y = mx + b.

Common input mistake

A vertical line has undefined slope and is represented as x = constant.

Formula and assumptions

Slope m = (yβ‚‚ βˆ’ y₁) Γ· (xβ‚‚ βˆ’ x₁); Distance = √((xβ‚‚ βˆ’ x₁)Β² + (yβ‚‚ βˆ’ y₁)Β²)

A positive slope rises left to right, while a negative slope falls.

Keep in mind: Values are rounded for display; use full precision for downstream calculations.

Produced byCalcs at Hand Editorial Team
Last formula check31 August 2026
Review methodKnown examples + boundary cases
Editorial and correction policy β†’