How to use this calculator
Calculate the slope of a line from two coordinate points.
How the calculation works
- Enter x1, y1, x2, and y2.
- The y difference is divided by the x difference.
- Vertical lines are reported as undefined.
Formula
m = (y₂ - y₁) / (x₂ - x₁).
Example
Points (0,0) and (2,4) have slope 2.
Understanding your result
Use the output as a practical starting point, then review it before using it in an important workflow.
Assumptions and limitations
- If x1 equals x2, the line is vertical and slope is undefined.
- Use Distance Between Points for segment length.
Frequently asked questions
Does this require an account?
No. The core tool works without creating a Tool2Do account.
Is my input included in share links or analytics?
No. Tool2Do share actions use the tool page URL and safe metadata, not private values or uploaded files.