Slope Calculator
Find the slope, line equation, and angle between two coordinate points.
- line slope calculator
- slope between two points calculator
- point slope calculator
Status: initial
Results
Awaiting calculation
Slope 2 from rise 4 and run 2
The line through (1, 2) and (3, 6) is y = 2x + 0, with a direction angle of 63.43°.
Check the line result
- 1Verify rise and run by subtracting the first point from the second point.
- 2Substitute either input point into the displayed equation to check the intercept.
- 3Keep an undefined vertical slope separate from a horizontal slope of zero.
Subtract coordinates in the same point order. A vertical line has zero run and therefore an undefined slope.
Slope Calculator for quick, reliable checks
Find the slope, line equation, and angle between two coordinate points. The point order can be reversed without changing the slope, provided the same order is used consistently in both the vertical and horizontal differences.
When to use this slope calculator
Use it for coordinate geometry, graphing checks, algebra homework, and line comparison. Use the equation output to graph the line or compare rates of change, and use the angle output only after confirming the coordinate axes use compatible scales.
How the calculation works
Slope m = (y2 - y1) ÷ (x2 - x1). The line equation is y = mx + b. After finding m, substitute either original point into y = mx + b to solve for the y-intercept b. Equal x-coordinates indicate a vertical line rather than a finite slope.
Variable explanations
Understand what each input and result means before calculating.
x1
Enter x1 carefully because this value directly affects the result.
y1
Enter y1 carefully because this value directly affects the result.
x2
Enter x2 carefully because this value directly affects the result.
y2
Enter y2 carefully because this value directly affects the result.
Slope
Enter slope carefully because this value directly affects the result.
Y-intercept
Enter y-intercept carefully because this value directly affects the result.
Reviewed by the Calculator.org.in Editorial Team
Formula behavior, validation cases, explanatory examples, and cited sources are checked before publication. This review supports educational accuracy and is not a substitute for qualified professional advice.
Last reviewed: 2026-08-25
Formula guide
See the calculation logic, variable definitions, and practical meaning.
Slope Calculator
Slope m = (y2 - y1) ÷ (x2 - x1). The line equation is y = mx + b.
- x1
- y1
- x2
- y2
- Slope
- Y-intercept
The calculator keeps the computation visible through labeled inputs, a primary result, and supporting checks so users can verify the answer before applying it.
Worked examples
Follow realistic inputs through the calculation step by step.
Worked example
Find slope from (1, 2) to (3, 6)
- 1Enter x1 = 1, y1 = 2, x2 = 3, y2 = 6.
- 2Rise is 4 and run is 2.
- 3Slope is 2.
Worked example
Find a negative slope
- 1Enter the points (1, 5) and (4, 2).
- 2Rise is 2 − 5 = −3 and run is 4 − 1 = 3.
- 3The slope is −1 and the line falls one unit for each unit moved right.
Worked example
Identify a vertical line
- 1Enter the points (3, 1) and (3, 7).
- 2The run is zero because both x-coordinates equal 3.
- 3The slope is undefined and the line equation is x = 3.
Common mistakes
Avoid these common input and interpretation errors.
Reversing the point order in only one coordinate
Review this point before using the result in coursework, planning, purchasing, or documentation.
Dividing by zero for vertical lines
Review this point before using the result in coursework, planning, purchasing, or documentation.
Rounding the slope before finding the intercept
Review this point before using the result in coursework, planning, purchasing, or documentation.
Frequently asked questions
Quick answers to the questions users ask most often.
What happens if x1 and x2 are the same?
Can slope be negative?
Does the order of the two points matter?
What does a slope of zero mean?
Is slope the same as an angle?
References
Sources used to support the calculator guidance.
Related calculators
Continue with calculators that solve nearby problems.
Version history
A transparent record of calculator content updates.
- 1.1.0 · 2026-08-25
Added a result-aware rise-over-run summary, line equation, direction angle, and vertical-line checks.
- 1.0.0 · 2026-08-03
Initial calculator release with formula tests and SEO-ready content.
