Slope Calculator Online
Find the slope, y-intercept, angle of incline and distance between two points, calculated instantly in your browser.
The Slope Calculator runs entirely in your browser. The coordinates you enter are computed locally and never leave your device or get uploaded to ArrayKit.
Open the Distance Calculator
About Slope Calculator
Slope Calculator finds the slope, y-intercept, angle of incline, and distance between two points on a line. Enter the coordinates of Point 1 (x₁, y₁) and Point 2 (x₂, y₂) and it computes the rise-over-run slope, the point where the line crosses the y-axis, the angle the line makes with the horizontal, the straight-line distance between the points, and the full slope-intercept equation of the line. When both points share the same x-coordinate, the line is vertical and the tool reports an undefined slope with an x = constant equation instead. It is useful for algebra homework, plotting a trend line, checking a roof pitch or ramp grade, or working out point-slope and slope-intercept forms by hand. Everything runs locally in your browser, and the coordinates you enter never leave your device.
Features
- Computes slope as rise over run from any two (x, y) coordinate pairs
- Finds the y-intercept and writes the full y = mx + b equation of the line
- Reports the angle of incline in degrees between the two points
- Calculates the straight-line (Euclidean) distance between the points
- Detects vertical lines and reports an undefined slope with an x = constant equation
- Correctly handles a zero slope for horizontal lines (y = b)
- Copy the full slope, intercept, angle, distance and equation as one summary
- Runs entirely in your browser with nothing uploaded
How to use the Slope Calculator
- Enter the coordinates of Point 1 (x₁, y₁)
- Enter the coordinates of Point 2 (x₂, y₂)
- Read the slope, y-intercept, angle, distance and equation in the Result section
- Copy the full result summary with one click
Example
Input
(0,0),(2,4)
Output
Slope 2 · y = 2x
Rise 4 over run 2 gives a slope of 2, and the line passes through the origin so b = 0.
Common errors & troubleshooting
- The Slope Calculator shows 'Undefined (vertical)' for the slope. — Both points share the same x-coordinate, so the line is vertical. Slope is undefined for a vertical line; the equation is shown as x = <that x-value> instead of y = mx + b.
- The equation reads 'y = 5' with no x term. — That is a horizontal line — the two points share the same y-coordinate, so the slope is 0 and the equation simplifies to y = b.
- The angle of incline looks negative. — A negative angle means the line falls from Point 1 to Point 2 (goes down and to the right). Swap the two points to read the angle in the other direction if you expect a positive value.
- Entering only one point, or leaving a field blank, shows no result. — The Slope Calculator needs all four coordinates — x₁, y₁, x₂ and y₂ — filled in before it can compute the slope and equation.
Frequently asked questions
- What is the Slope Calculator?
- It is a tool that takes two points, (x₁, y₁) and (x₂, y₂), and computes the slope, y-intercept, angle of incline, distance between the points, and the equation of the line through them.
- How does the Slope Calculator find the slope of a line?
- It divides the change in y by the change in x: slope = (y₂ − y₁) ÷ (x₂ − x₁). This is the classic 'rise over run' formula from point-slope geometry.
- What does the Slope Calculator do with a vertical line?
- When both points have the same x-coordinate, the change in x is zero and the slope is mathematically undefined. The Slope Calculator reports 'Undefined (vertical)' and gives the equation as x = <the shared x-value>.
- Does the Slope Calculator give the y-intercept and full line equation?
- Yes. Once it has the slope, it solves b = y₁ − slope × x₁ and writes the equation in y = mx + b form, simplifying to y = b for a horizontal line.
- Can the Slope Calculator also find the distance between two points?
- Yes. Alongside the slope, it uses the Pythagorean theorem — distance = √((x₂ − x₁)² + (y₂ − y₁)²) — to report the straight-line distance between Point 1 and Point 2.
- Does the Slope Calculator upload the coordinates I enter?
- No. The Slope Calculator computes everything in your browser. The coordinates you type never leave your device and are not sent to ArrayKit.
Related tools
All ArrayKit tools