Slope Calculator

Enter two coordinate points — x1, y1 and x2, y2 — and the Slope Calculator computes the slope (m), angle of inclination, y-intercept, x-intercept, and the full line equation in slope-intercept form. You also get the rise, run, and distance between the two points.

Results

Slope (m)

--

Angle of Inclination

--

Rise (Δy)

--

Run (Δx)

--

Distance Between Points

--

Y-Intercept (b)

--

X-Intercept

--

Line Equation (y = mx + b)

--

Rise vs Run

Frequently Asked Questions

What is slope and how is it calculated?

Slope (m) measures the steepness and direction of a line. It is calculated as the rise divided by the run: m = (y2 − y1) / (x2 − x1). A positive slope means the line goes upward from left to right, while a negative slope means it goes downward.

What does it mean if the slope is zero or undefined?

A slope of zero means the line is perfectly horizontal — y does not change as x changes. An undefined slope occurs when the two x-values are equal (vertical line), which would cause division by zero in the formula.

How do I find the slope if I only know one point and the slope value?

If you know one point (x1, y1) and the slope m, you can use the point-slope form: y − y1 = m(x − x1). Rearranging gives you the full line equation and lets you find any other point on the line.

What is the y-intercept and how is it found?

The y-intercept is the point where the line crosses the y-axis (when x = 0). Once you have the slope m and one coordinate point, use b = y1 − m × x1 to calculate it. The full line is then expressed as y = mx + b.

What is the x-intercept?

The x-intercept is the point where the line crosses the x-axis (when y = 0). Solving 0 = mx + b gives x = −b / m. This is undefined if the slope is zero (horizontal line never crosses the x-axis unless it lies on it).

What is the relationship between slope and the angle of inclination?

The angle of inclination θ is the angle the line makes with the positive x-axis. It is calculated as θ = arctan(m), where m is the slope. A steeper line has a larger angle, approaching 90° for near-vertical lines.

What are parallel and perpendicular slopes?

Parallel lines have equal slopes (m1 = m2). Perpendicular lines have slopes that are negative reciprocals of each other, meaning m1 × m2 = −1. For example, if one line has a slope of 2, a perpendicular line has a slope of −0.5.

Can the slope calculator handle fractions or negative coordinates?

Yes. You can enter any real number for the coordinates, including negative values and decimals. The calculator will correctly compute the slope, intercepts, and angle regardless of the sign or magnitude of the inputs.

More Math Tools