Slope Calculator

Calculate the slope of a line through two given points, or find the equation of a line given one point and the slope. Also calculates distance, angle, and other line properties.

Two Points
Point-Slope
Line Equation

Point 1 (x₁, y₁)

Point 2 (x₂, y₂)

Point (x₁, y₁)

Slope Calculation Results

Slope (m) 1
Angle (θ) 45°
Distance 2.828
Slope Percentage 100%
Equation y = x + 1

About Slope Calculator

The slope of a line is a measure of its steepness and direction. It's calculated as the ratio of the vertical change (rise) to the horizontal change (run) between two points on the line. Slope is fundamental in algebra, geometry, calculus, and many applied sciences.

How Slope is Calculated

Given two points (x₁, y₁) and (x₂, y₂) on a line, the slope m is calculated as:

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

Understanding Slope Values

Different slope values indicate different line characteristics:

Slope and Angle Relationship

The angle θ that a line makes with the positive x-axis is related to the slope by:

θ = arctan(m)

Where m is the slope and θ is measured in degrees or radians.

Distance Between Two Points

The distance d between two points (x₁, y₁) and (x₂, y₂) is calculated using the distance formula:

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

Line Equations

There are several forms of line equations: