The slope is 2 and the line equation is y = 2x.
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 assumptionsFormula reviewCalcs at Hand Editorial TeamVerified 31 August 2026 Β· automated checks included
Saved on this device
Resultβ
Projection
Move across the chart, drag the slider, or use the arrow keys.
Formula & details
Calculation
View period breakdown
More actions
Compare scenarios
How to read this result
Three useful checks, kept deliberately short.
Points (1, 2) and (5, 10): Calculate rise and run Β· Divide rise by run Β· Substitute into y = mx + b.
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 β
