How it works
The calculator subtracts coordinates in consistent order so rise and run match the direction from point 1 to point 2. It may also compute b from one point and m.
Formula
How to use Slope Calculator
- Enter coordinates for two distinct points.
- Calculate slope m = rise over run.
- Read the line equation if the tool provides it.
- Note undefined slope when the line is vertical (x₁ = x₂).
Worked examples
Concrete numbers and cases you can check against the tool above.
Points (2, 3) and (10, 11)
Rise 8, run 8 → slope 1 → line y = x + 1 after solving for b.
When to use Slope Calculator
Slope drives rate-of-change problems in algebra and physics. Getting m wrong flips line direction or breaks parallel/perpendicular checks.
Common use cases
- Find pitch of a roof line from two plan coordinates.
- Check if two lines are parallel (equal slopes).
- Convert a graphed segment to an equation for homework.
Inputs and outputs
- Decimal or fractional coordinates
- Two-dimensional Cartesian points
Privacy
This tool runs entirely in your browser. Your data never leaves your device — nothing is uploaded to our servers.
Frequently asked questions
- What is slope of a horizontal line?
- Zero — y does not change as x increases.
- Can I enter the same point twice?
- Two identical points do not define a unique line; the tool should reject or warn.
- Does order of points matter for slope sign?
- Swapping points negates rise and run together, so m stays the same.