Slope Calculator

Calculate the slope of a line from two points.

Two Points

Point 1

1
2

Point 2

3
4

Points:

(1, 2) and (3, 4)

Slope Results

Slope (m)

1.0000

Line Type

Non-horizontal

Angle

45.00°(upward)

Measured from the positive x-axis (0°–180°). Signed slope angle: 45.00°.

Distance

2.8284

Equation:

y = 1.0000x + 1.0000

About This Calculator

The Slope Calculator helps you calculate the slope of a line given two points. Slope measures the steepness and direction of a line, indicating how much y changes for each unit change in x.

The calculator provides the slope value, the angle of the line, the distance between points, and the equation of the line in slope-intercept form. Positive slopes indicate upward lines, negative slopes indicate downward lines, and zero slope indicates a horizontal line.

Formula & Calculation Method

Slope Formula:

Slope (m):
m = (y₂ - y₁) / (x₂ - x₁) = Δy / Δx = rise / run

Slope-Intercept Form:
y = mx + b
where m is slope and b is y-intercept

Angle:
θ = arctan(m)

Distance:
d = √[(x₂ - x₁)² + (y₂ - y₁)²]

Slope represents the rate of change. A slope of 1 means the line rises 1 unit for every 1 unit of horizontal movement. A slope of -1 means it falls 1 unit for every 1 unit of horizontal movement. If x₁ = x₂, the line is vertical and the slope is undefined.

How to Use This Calculator

  1. Enter Point 1: Input the x and y coordinates of the first point.
  2. Enter Point 2: Input the x and y coordinates of the second point.
  3. View Results: See the slope, angle, distance, and line equation.
  4. Interpret: Positive slope = upward, negative = downward, zero = horizontal, undefined = vertical.

Frequently Asked Questions

What does slope tell us?

Slope indicates the steepness and direction of a line. Positive slopes go upward (left to right), negative slopes go downward, zero slope is horizontal, and undefined slope (when x₁ = x₂) is vertical.

What is a good slope value?

Slope values have no "good" or "bad" - they depend on context. A slope of 1 means a 45° angle, slopes greater than 1 are steeper, and slopes between 0 and 1 are gradual. The interpretation depends on what the line represents.

What happens when the slope is undefined?

When two points have the same x-coordinate (x₁ = x₂), the line is vertical and the slope is undefined because you cannot divide by zero. Vertical lines have equations of the form x = constant.

How is slope used in real life?

Slope is used in many applications: grade of roads (rise/run), rate of change in economics, velocity in physics, and trend analysis in data. It quantifies how one variable changes relative to another.

Calculator by

NumCalculators Editorial Team

Multi-disciplinary Expert Team

Updated Jan 2024