Slope Calculator

Calculate the slope between two points. Enter your values, review the formula, and use the worked result as a quick check for everyday planning.

Slope Calculator

Calculate the slope between two points.

Any numeric value

Any numeric value

Any numeric value (not equal to x₁)

Any numeric value

Results

Slope (m)

1.5

Angle

56.309932 °

Formula: Slope = (y₂-y₁) / (x₂-x₁)

Slope Between Two Points

Calculate the slope (gradient) of the line passing through two points, plus the angle of inclination in degrees. The slope represents the rate of change: how much y changes per unit change in x.

Formula

Slope m = (y₂ − y₁) ÷ (x₂ − x₁). If x₂ = x₁, the slope is undefined (vertical line). The angle = arctan(m) × 180/π degrees.

Worked example

Points (1, 2) and (5, 8): rise = 6, run = 4, slope = 1.5. Angle = arctan(1.5) = 56.3°. A line with slope 1 makes a 45° angle.

Practical guidance

Slope interpretation

Slope > 0: line goes upward left to right. Slope < 0: line goes downward. Slope = 0: horizontal line. Slope = 1: 45° angle. Slope undefined: vertical line.

Real-world slope applications

Roof pitch, road grade, wheelchair ramp specifications, drainage slope, and statistical trend lines all use slope. A 6% road grade means a slope of 0.06 (rise of 6 m per 100 m horizontal).

Frequently asked questions

How do I use the Slope Calculator?

Enter your values in the fields and the result updates instantly as you type.

What formula does this calculator use?

Slope = (y₂-y₁) / (x₂-x₁)

Can I use decimal values?

Yes. Decimal inputs are supported for most calculators. Integer-based tools use rounded integer values where appropriate.

Is this calculator free?

Yes. CalcuNimble calculators are free and optimized for fast everyday use.